提交 3284d947 编写于 作者: I imjoey

Set new type for the property type of Tree

Add an extra TreeBasic object definition and change
relevant documents.
Signed-off-by: Nimjoey <junjie.ma@cs2c.com.cn>
上级 1146e247
...@@ -300,6 +300,7 @@ Class | Method | HTTP request | Description ...@@ -300,6 +300,7 @@ Class | Method | HTTP request | Description
- [SshKeyBasic](docs/SshKeyBasic.md) - [SshKeyBasic](docs/SshKeyBasic.md)
- [Tag](docs/Tag.md) - [Tag](docs/Tag.md)
- [Tree](docs/Tree.md) - [Tree](docs/Tree.md)
- [TreeBasic](docs/TreeBasic.md)
- [User](docs/User.md) - [User](docs/User.md)
- [UserBasic](docs/UserBasic.md) - [UserBasic](docs/UserBasic.md)
- [UserMessage](docs/UserMessage.md) - [UserMessage](docs/UserMessage.md)
......
...@@ -13476,6 +13476,22 @@ definitions: ...@@ -13476,6 +13476,22 @@ definitions:
sha: "sha" sha: "sha"
url: "url" url: "url"
content: "content" content: "content"
TreeBasic:
type: "object"
properties:
path:
type: "string"
mode:
type: "string"
type:
type: "string"
sha:
type: "string"
size:
type: "integer"
format: "int32"
url:
type: "string"
Tree: Tree:
type: "object" type: "object"
properties: properties:
...@@ -13484,7 +13500,9 @@ definitions: ...@@ -13484,7 +13500,9 @@ definitions:
url: url:
type: "string" type: "string"
tree: tree:
type: "string" type: "array"
items:
$ref: "#/definitions/TreeBasic"
truncated: truncated:
type: "string" type: "string"
description: "获取目录Tree" description: "获取目录Tree"
......
...@@ -5,7 +5,7 @@ Name | Type | Description | Notes ...@@ -5,7 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Sha** | **string** | | [optional] [default to null] **Sha** | **string** | | [optional] [default to null]
**Url** | **string** | | [optional] [default to null] **Url** | **string** | | [optional] [default to null]
**Tree** | **string** | | [optional] [default to null] **Tree** | [**[]TreeBasic**](TreeBasic.md) | | [optional] [default to null]
**Truncated** | **string** | | [optional] [default to null] **Truncated** | **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) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
......
# TreeBasic
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Path** | **string** | | [optional] [default to null]
**Mode** | **string** | | [optional] [default to null]
**Type_** | **string** | | [optional] [default to null]
**Sha** | **string** | | [optional] [default to null]
**Size** | **int32** | | [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)
...@@ -11,8 +11,8 @@ package gitee ...@@ -11,8 +11,8 @@ package gitee
// 获取目录Tree // 获取目录Tree
type Tree struct { type Tree struct {
Sha string `json:"sha,omitempty"` Sha string `json:"sha,omitempty"`
Url string `json:"url,omitempty"` Url string `json:"url,omitempty"`
Tree string `json:"tree,omitempty"` Tree []TreeBasic `json:"tree,omitempty"`
Truncated string `json:"truncated,omitempty"` Truncated string `json:"truncated,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 TreeBasic struct {
Path string `json:"path,omitempty"`
Mode string `json:"mode,omitempty"`
Type_ string `json:"type,omitempty"`
Sha string `json:"sha,omitempty"`
Size int32 `json:"size,omitempty"`
Url string `json:"url,omitempty"`
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册