gitee.com/openeuler/go-gitee@v0.0.0-20220530104019-3af895bc380c/gitee/model_user_notification.go (about)

     1  /*
     2   * 码云 Open API
     3   *
     4   * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
     5   *
     6   * API version: 5.3.2
     7   * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
     8   */
     9  
    10  package gitee
    11  
    12  // 获取一条通知
    13  type UserNotification struct {
    14  	Id        int32  `json:"id,omitempty"`
    15  	Content   string `json:"content,omitempty"`
    16  	Type_     string `json:"type,omitempty"`
    17  	Unread    string `json:"unread,omitempty"`
    18  	Mute      string `json:"mute,omitempty"`
    19  	UpdatedAt string `json:"updated_at,omitempty"`
    20  	Url       string `json:"url,omitempty"`
    21  	HtmlUrl   string `json:"html_url,omitempty"`
    22  	// 通知发送者
    23  	Actor      *UserBasic    `json:"actor,omitempty"`
    24  	Repository *ProjectBasic `json:"repository,omitempty"`
    25  	// 通知直接关联对象
    26  	Subject *UserNotificationSubject `json:"subject,omitempty"`
    27  	// 通知次级关联对象
    28  	Namespaces []UserNotificationNamespace `json:"namespaces,omitempty"`
    29  }