提交 69a0300b 编写于 作者: E edisonxiang

change pullrequest field type

上级 74cb8fc9
......@@ -249,6 +249,7 @@ Class | Method | HTTP request | Description
## Documentation For Models
- [BasicInfo](docs/BasicInfo.md)
- [Blob](docs/Blob.md)
- [Branch](docs/Branch.md)
- [Code](docs/Code.md)
......
......@@ -14658,7 +14658,8 @@ definitions:
type: "object"
properties:
id:
type: "string"
type: "integer"
format: "int32"
url:
type: "string"
html_url:
......@@ -14680,7 +14681,8 @@ definitions:
statuses_url:
type: "string"
number:
type: "string"
type: "integer"
format: "int32"
state:
type: "string"
title:
......@@ -14712,15 +14714,15 @@ definitions:
merged_at:
type: "string"
mergeable:
type: "string"
type: "boolean"
head:
type: "string"
$ref: "#/definitions/BasicInfo"
base:
type: "string"
$ref: "#/definitions/BasicInfo"
_links:
type: "string"
user:
type: "string"
$ref: "#/definitions/UserBasic"
description: "取消用户测试 Pull Request"
example:
issue_url: "issue_url"
......@@ -15950,3 +15952,17 @@ definitions:
id: 6
content: "content"
url: "url"
BasicInfo:
type: "object"
properties:
label:
type: "string"
ref:
type: "string"
sha:
type: "string"
user:
$ref: "#/definitions/UserBasic"
repo:
$ref: "#/definitions/Project"
description: "basic information"
# BasicInfo
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Label** | **string** | | [optional] [default to null]
**Ref** | **string** | | [optional] [default to null]
**Sha** | **string** | | [optional] [default to null]
**User** | [***UserBasic**](UserBasic.md) | | [optional] [default to null]
**Repo** | [***Project**](Project.md) | | [optional] [default to null]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
......@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **string** | | [optional] [default to null]
**Id** | **int32** | | [optional] [default to null]
**Url** | **string** | | [optional] [default to null]
**HtmlUrl** | **string** | | [optional] [default to null]
**DiffUrl** | **string** | | [optional] [default to null]
......@@ -14,7 +14,7 @@ Name | Type | Description | Notes
**ReviewCommentUrl** | **string** | | [optional] [default to null]
**CommentsUrl** | **string** | | [optional] [default to null]
**StatusesUrl** | **string** | | [optional] [default to null]
**Number** | **string** | | [optional] [default to null]
**Number** | **int32** | | [optional] [default to null]
**State** | **string** | | [optional] [default to null]
**Title** | **string** | | [optional] [default to null]
**Body** | **string** | | [optional] [default to null]
......@@ -28,11 +28,11 @@ Name | Type | Description | Notes
**UpdatedAt** | **string** | | [optional] [default to null]
**ClosedAt** | **string** | | [optional] [default to null]
**MergedAt** | **string** | | [optional] [default to null]
**Mergeable** | **string** | | [optional] [default to null]
**Head** | **string** | | [optional] [default to null]
**Base** | **string** | | [optional] [default to null]
**Mergeable** | **bool** | | [optional] [default to null]
**Head** | [***BasicInfo**](BasicInfo.md) | | [optional] [default to null]
**Base** | [***BasicInfo**](BasicInfo.md) | | [optional] [default to null]
**Links** | **string** | | [optional] [default to null]
**User** | **string** | | [optional] [default to null]
**User** | [***UserBasic**](UserBasic.md) | | [optional] [default to null]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
......
/*
* 码云 Open API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: 5.3.2
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package gitee
// basic information
type BasicInfo struct {
Label string `json:"label,omitempty"`
Ref string `json:"ref,omitempty"`
Sha string `json:"sha,omitempty"`
User *UserBasic `json:"user,omitempty"`
Repo *Project `json:"repo,omitempty"`
}
......@@ -11,7 +11,7 @@ package gitee
// 取消用户测试 Pull Request
type PullRequest struct {
Id string `json:"id,omitempty"`
Id int32 `json:"id,omitempty"`
Url string `json:"url,omitempty"`
HtmlUrl string `json:"html_url,omitempty"`
DiffUrl string `json:"diff_url,omitempty"`
......@@ -22,7 +22,7 @@ type PullRequest struct {
ReviewCommentUrl string `json:"review_comment_url,omitempty"`
CommentsUrl string `json:"comments_url,omitempty"`
StatusesUrl string `json:"statuses_url,omitempty"`
Number string `json:"number,omitempty"`
Number int32 `json:"number,omitempty"`
State string `json:"state,omitempty"`
Title string `json:"title,omitempty"`
Body string `json:"body,omitempty"`
......@@ -36,9 +36,9 @@ type PullRequest struct {
UpdatedAt string `json:"updated_at,omitempty"`
ClosedAt string `json:"closed_at,omitempty"`
MergedAt string `json:"merged_at,omitempty"`
Mergeable string `json:"mergeable,omitempty"`
Head string `json:"head,omitempty"`
Base string `json:"base,omitempty"`
Mergeable bool `json:"mergeable,omitempty"`
Head *BasicInfo `json:"head,omitempty"`
Base *BasicInfo `json:"base,omitempty"`
Links string `json:"_links,omitempty"`
User string `json:"user,omitempty"`
User *UserBasic `json:"user,omitempty"`
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册