diff --git a/README.md b/README.md index 6e9107a2317bd9df5797d170b148cc0f06a90aa9..999d42242326942600aef2dcdf52af216530abcc 100644 --- a/README.md +++ b/README.md @@ -314,6 +314,7 @@ Class | Method | HTTP request | Description - [PullRequestMergePutParam](docs/PullRequestMergePutParam.md) - [PullRequestUpdateParam](docs/PullRequestUpdateParam.md) - [Release](docs/Release.md) + - [ReleaseAssetsItem](docs/ReleaseAssetsItem.md) - [RepoCommit](docs/RepoCommit.md) - [RepoPatchParam](docs/RepoPatchParam.md) - [RepositoryPostParam](docs/RepositoryPostParam.md) diff --git a/api/swagger.yaml b/api/swagger.yaml index 008b9a2bb68d1ff6d6321e145be03be794d03a00..ab1da47ec5e7bcf94216500a57a4d0ef0290dcca 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -14740,6 +14740,11 @@ definitions: blob_url: "blob_url" raw_url: "raw_url" status: "status" + ReleaseAssetsItem: + type: "object" + properties: + browser_download_url: + type: "string" Release: type: "object" properties: @@ -14751,18 +14756,21 @@ definitions: target_commitish: type: "string" prerelease: - type: "string" + type: "boolean" name: type: "string" body: type: "string" author: - type: "string" + $ref: "#/definitions/UserBasic" created_at: type: "string" format: "date-time" assets: - type: "string" + type: "array" + description: "附件列表" + items: + $ref: "#/definitions/ReleaseAssetsItem" description: "更新仓库Release" example: assets: "assets" diff --git a/docs/Release.md b/docs/Release.md index 67a149d0931a98afeca7a9cfb9d87aeac36172fd..4990412f8bae650e811f359163ba5f66237cee99 100644 --- a/docs/Release.md +++ b/docs/Release.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes **Id** | **int32** | | [optional] [default to null] **TagName** | **string** | | [optional] [default to null] **TargetCommitish** | **string** | | [optional] [default to null] -**Prerelease** | **string** | | [optional] [default to null] +**Prerelease** | **bool** | | [optional] [default to null] **Name** | **string** | | [optional] [default to null] **Body** | **string** | | [optional] [default to null] -**Author** | **string** | | [optional] [default to null] +**Author** | [***UserBasic**](UserBasic.md) | | [optional] [default to null] **CreatedAt** | [**time.Time**](time.Time.md) | | [optional] [default to null] -**Assets** | **string** | | [optional] [default to null] +**Assets** | [**[]ReleaseAssetsItem**](ReleaseAssetsItem.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) diff --git a/docs/ReleaseAssetsItem.md b/docs/ReleaseAssetsItem.md new file mode 100644 index 0000000000000000000000000000000000000000..432c93c59448c08d7fbc3d3b83fbeb99dc118509 --- /dev/null +++ b/docs/ReleaseAssetsItem.md @@ -0,0 +1,10 @@ +# ReleaseAssetsItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BrowserDownloadUrl** | **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) + + diff --git a/gitee/model_release.go b/gitee/model_release.go index 11b167473eb279739fb6dfba25f9d755fb8099ff..50ac298cb6f1d93f35eda17aafc50f80116cc8ab 100644 --- a/gitee/model_release.go +++ b/gitee/model_release.go @@ -15,13 +15,14 @@ import ( // 更新仓库Release type Release struct { - Id int32 `json:"id,omitempty"` - TagName string `json:"tag_name,omitempty"` - TargetCommitish string `json:"target_commitish,omitempty"` - Prerelease string `json:"prerelease,omitempty"` - Name string `json:"name,omitempty"` - Body string `json:"body,omitempty"` - Author string `json:"author,omitempty"` - CreatedAt time.Time `json:"created_at,omitempty"` - Assets string `json:"assets,omitempty"` + Id int32 `json:"id,omitempty"` + TagName string `json:"tag_name,omitempty"` + TargetCommitish string `json:"target_commitish,omitempty"` + Prerelease bool `json:"prerelease,omitempty"` + Name string `json:"name,omitempty"` + Body string `json:"body,omitempty"` + Author *UserBasic `json:"author,omitempty"` + CreatedAt time.Time `json:"created_at,omitempty"` + // 附件列表 + Assets []ReleaseAssetsItem `json:"assets,omitempty"` } diff --git a/gitee/model_release_assets_item.go b/gitee/model_release_assets_item.go new file mode 100644 index 0000000000000000000000000000000000000000..76baa5dbf24f60a5bae1db8a80fedceaf238af33 --- /dev/null +++ b/gitee/model_release_assets_item.go @@ -0,0 +1,14 @@ +/* + * 码云 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 ReleaseAssetsItem struct { + BrowserDownloadUrl string `json:"browser_download_url,omitempty"` +}