diff --git a/api/swagger.yaml b/api/swagger.yaml index cb9400c2ab5f6da4d6fc59c8e9bc423a30887ac8..78140cec02879d6f8550650675b1cc9ec34ffaa7 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -13973,7 +13973,7 @@ definitions: body_html: type: "string" user: - type: "string" + $ref: "#/definitions/UserBasic" labels: type: "array" items: @@ -13981,7 +13981,9 @@ definitions: assignee: $ref: "#/definitions/UserBasic" collaborators: - $ref: "#/definitions/UserBasic" + type: "array" + items: + $ref: "#/definitions/UserBasic" repository: type: "string" milestone: diff --git a/docs/Issue.md b/docs/Issue.md index 9fef7e4a2c650ff100d06ca7d753142da162fb79..9d43cf520b94981215b13cdd47d17813165efa8a 100644 --- a/docs/Issue.md +++ b/docs/Issue.md @@ -15,10 +15,10 @@ Name | Type | Description | Notes **Title** | **string** | | [optional] [default to null] **Body** | **string** | | [optional] [default to null] **BodyHtml** | **string** | | [optional] [default to null] -**User** | **string** | | [optional] [default to null] +**User** | [***UserBasic**](UserBasic.md) | | [optional] [default to null] **Labels** | [**[]Label**](Label.md) | | [optional] [default to null] **Assignee** | [***UserBasic**](UserBasic.md) | | [optional] [default to null] -**Collaborators** | [***UserBasic**](UserBasic.md) | | [optional] [default to null] +**Collaborators** | [**[]UserBasic**](UserBasic.md) | | [optional] [default to null] **Repository** | **string** | | [optional] [default to null] **Milestone** | [***Milestone**](Milestone.md) | | [optional] [default to null] **CreatedAt** | [**time.Time**](time.Time.md) | | [optional] [default to null] diff --git a/gitee/model_issue.go b/gitee/model_issue.go index ad3637b37f8a3d2abcf57c2d8ffe2c60ff228b9f..d1cebfdd7768fc4e288d0fc4b559c1ea4bde715b 100644 --- a/gitee/model_issue.go +++ b/gitee/model_issue.go @@ -27,10 +27,10 @@ type Issue struct { Title string `json:"title,omitempty"` Body string `json:"body,omitempty"` BodyHtml string `json:"body_html,omitempty"` - User string `json:"user,omitempty"` + User *UserBasic `json:"user,omitempty"` Labels []Label `json:"labels,omitempty"` Assignee *UserBasic `json:"assignee,omitempty"` - Collaborators *UserBasic `json:"collaborators,omitempty"` + Collaborators []UserBasic `json:"collaborators,omitempty"` Repository string `json:"repository,omitempty"` Milestone *Milestone `json:"milestone,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"`