提交 acd20a22 编写于 作者: Z zengchen1024

fix response of get single commit

上级 ced5a4d6
......@@ -264,6 +264,7 @@ Class | Method | HTTP request | Description
- [CodeForksHistory](docs/CodeForksHistory.md)
- [Commit](docs/Commit.md)
- [CommitContent](docs/CommitContent.md)
- [CommitTree](docs/CommitTree.md)
- [Compare](docs/Compare.md)
- [CompleteBranch](docs/CompleteBranch.md)
- [Content](docs/Content.md)
......@@ -309,6 +310,7 @@ Class | Method | HTTP request | Description
- [RepoCommit](docs/RepoCommit.md)
- [RepoPatchParam](docs/RepoPatchParam.md)
- [RepositoryPostParam](docs/RepositoryPostParam.md)
- [SingleCommit](docs/SingleCommit.md)
- [SshKey](docs/SshKey.md)
- [SshKeyBasic](docs/SshKeyBasic.md)
- [Tag](docs/Tag.md)
......
......@@ -13293,7 +13293,7 @@ definitions:
comments_url:
type: "string"
commit:
type: "string"
$ref: "#/definitions/SingleCommit"
author:
type: "string"
committer:
......@@ -13313,6 +13313,18 @@ definitions:
sha: "sha"
url: "url"
parents: "parents"
SingleCommit:
type: "object"
properties:
tree:
$ref: "#/definitions/CommitTree"
CommitTree:
type: "object"
properties:
sha:
type: "string"
url:
type: "string"
Compare:
type: "object"
properties:
......
# CommitTree
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Sha** | **string** | | [optional] [default to null]
**Url** | **string** | | [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)
......@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Sha** | **string** | | [optional] [default to null]
**HtmlUrl** | **string** | | [optional] [default to null]
**CommentsUrl** | **string** | | [optional] [default to null]
**Commit** | **string** | | [optional] [default to null]
**Commit** | [***SingleCommit**](SingleCommit.md) | | [optional] [default to null]
**Author** | **string** | | [optional] [default to null]
**Committer** | **string** | | [optional] [default to null]
**Parents** | **string** | | [optional] [default to null]
......
# SingleCommit
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Tree** | [***CommitTree**](CommitTree.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
type CommitTree struct {
Sha string `json:"sha,omitempty"`
Url string `json:"url,omitempty"`
}
......@@ -11,13 +11,13 @@ package gitee
// 仓库的某个提交
type RepoCommit struct {
Url string `json:"url,omitempty"`
Sha string `json:"sha,omitempty"`
HtmlUrl string `json:"html_url,omitempty"`
CommentsUrl string `json:"comments_url,omitempty"`
Commit string `json:"commit,omitempty"`
Author string `json:"author,omitempty"`
Committer string `json:"committer,omitempty"`
Parents string `json:"parents,omitempty"`
Stats string `json:"stats,omitempty"`
Url string `json:"url,omitempty"`
Sha string `json:"sha,omitempty"`
HtmlUrl string `json:"html_url,omitempty"`
CommentsUrl string `json:"comments_url,omitempty"`
Commit *SingleCommit `json:"commit,omitempty"`
Author string `json:"author,omitempty"`
Committer string `json:"committer,omitempty"`
Parents string `json:"parents,omitempty"`
Stats string `json:"stats,omitempty"`
}
/*
* 码云 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
type SingleCommit struct {
Tree *CommitTree `json:"tree,omitempty"`
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册