From 93c367bedcb9b981aef7c3404fab53c979813480 Mon Sep 17 00:00:00 2001 From: xiangxinyong Date: Wed, 16 Oct 2019 09:35:34 +0800 Subject: [PATCH] update assignees and testers --- api/swagger.yaml | 4 +-- docs/PullRequest.md | 4 +-- gitee/model_pull_request.go | 60 ++++++++++++++++++------------------- 3 files changed, 34 insertions(+), 34 deletions(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index 3dc3aaa..e33ec5b 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -14225,11 +14225,11 @@ definitions: assignees: type: "array" items: - type: "string" + $ref: "#/definitions/UserBasic" testers: type: "array" items: - type: "string" + $ref: "#/definitions/UserBasic" milestone: $ref: "#/definitions/Milestone" labels: diff --git a/docs/PullRequest.md b/docs/PullRequest.md index 156fc07..b9807c9 100644 --- a/docs/PullRequest.md +++ b/docs/PullRequest.md @@ -19,8 +19,8 @@ Name | Type | Description | Notes **Title** | **string** | | [optional] [default to null] **Body** | **string** | | [optional] [default to null] **BodyHtml** | **string** | | [optional] [default to null] -**Assignees** | **[]string** | | [optional] [default to null] -**Testers** | **[]string** | | [optional] [default to null] +**Assignees** | [**[]UserBasic**](UserBasic.md) | | [optional] [default to null] +**Testers** | [**[]UserBasic**](UserBasic.md) | | [optional] [default to null] **Milestone** | [***Milestone**](Milestone.md) | | [optional] [default to null] **Labels** | [**[]Label**](Label.md) | | [optional] [default to null] **Locked** | **string** | | [optional] [default to null] diff --git a/gitee/model_pull_request.go b/gitee/model_pull_request.go index 4be8323..cdc9072 100644 --- a/gitee/model_pull_request.go +++ b/gitee/model_pull_request.go @@ -11,34 +11,34 @@ package gitee // 取消用户测试 Pull Request type PullRequest struct { - Id int32 `json:"id,omitempty"` - Url string `json:"url,omitempty"` - HtmlUrl string `json:"html_url,omitempty"` - DiffUrl string `json:"diff_url,omitempty"` - PatchUrl string `json:"patch_url,omitempty"` - IssueUrl string `json:"issue_url,omitempty"` - CommitsUrl string `json:"commits_url,omitempty"` - ReviewCommentsUrl string `json:"review_comments_url,omitempty"` - ReviewCommentUrl string `json:"review_comment_url,omitempty"` - CommentsUrl string `json:"comments_url,omitempty"` - StatusesUrl string `json:"statuses_url,omitempty"` - Number int32 `json:"number,omitempty"` - State string `json:"state,omitempty"` - Title string `json:"title,omitempty"` - Body string `json:"body,omitempty"` - BodyHtml string `json:"body_html,omitempty"` - Assignees []string `json:"assignees,omitempty"` - Testers []string `json:"testers,omitempty"` - Milestone *Milestone `json:"milestone,omitempty"` - Labels []Label `json:"labels,omitempty"` - Locked string `json:"locked,omitempty"` - CreatedAt string `json:"created_at,omitempty"` - UpdatedAt string `json:"updated_at,omitempty"` - ClosedAt string `json:"closed_at,omitempty"` - MergedAt string `json:"merged_at,omitempty"` - Mergeable bool `json:"mergeable,omitempty"` - Head *BasicInfo `json:"head,omitempty"` - Base *BasicInfo `json:"base,omitempty"` - Links string `json:"_links,omitempty"` - User *UserBasic `json:"user,omitempty"` + Id int32 `json:"id,omitempty"` + Url string `json:"url,omitempty"` + HtmlUrl string `json:"html_url,omitempty"` + DiffUrl string `json:"diff_url,omitempty"` + PatchUrl string `json:"patch_url,omitempty"` + IssueUrl string `json:"issue_url,omitempty"` + CommitsUrl string `json:"commits_url,omitempty"` + ReviewCommentsUrl string `json:"review_comments_url,omitempty"` + ReviewCommentUrl string `json:"review_comment_url,omitempty"` + CommentsUrl string `json:"comments_url,omitempty"` + StatusesUrl string `json:"statuses_url,omitempty"` + Number int32 `json:"number,omitempty"` + State string `json:"state,omitempty"` + Title string `json:"title,omitempty"` + Body string `json:"body,omitempty"` + BodyHtml string `json:"body_html,omitempty"` + Assignees []UserBasic `json:"assignees,omitempty"` + Testers []UserBasic `json:"testers,omitempty"` + Milestone *Milestone `json:"milestone,omitempty"` + Labels []Label `json:"labels,omitempty"` + Locked string `json:"locked,omitempty"` + CreatedAt string `json:"created_at,omitempty"` + UpdatedAt string `json:"updated_at,omitempty"` + ClosedAt string `json:"closed_at,omitempty"` + MergedAt string `json:"merged_at,omitempty"` + Mergeable bool `json:"mergeable,omitempty"` + Head *BasicInfo `json:"head,omitempty"` + Base *BasicInfo `json:"base,omitempty"` + Links string `json:"_links,omitempty"` + User *UserBasic `json:"user,omitempty"` } -- GitLab