提交 99ba2221 编写于 作者: I imjoey

Fix the returned type of GetV5OrgsOrgRepos

Use []Project as the returned type of RepositoriesApi.GetV5OrgsOrgRepos
and re-generated the docs and source codes.
Signed-off-by: Nimjoey <majunjiev@gmail.com>
上级 722ba5fa
......@@ -9541,7 +9541,9 @@ paths:
200:
description: "返回格式"
schema:
$ref: "#/definitions/Project"
type: "array"
items:
$ref: "#/definitions/Project"
post:
tags:
- "Repositories"
......
......@@ -438,7 +438,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **GetV5OrgsOrgRepos**
> Project GetV5OrgsOrgRepos(ctx, org, optional)
> []Project GetV5OrgsOrgRepos(ctx, org, optional)
获取一个组织的仓库
获取一个组织的仓库
......@@ -464,7 +464,7 @@ Name | Type | Description | Notes
### Return type
[**Project**](Project.md)
[**[]Project**](Project.md)
### Authorization
......
......@@ -867,7 +867,7 @@ RepositoriesApiService 获取一个组织的仓库
* @param "Page" (optional.Int32) - 当前的页码
* @param "PerPage" (optional.Int32) - 每页的数量,最大为 100
@return Project
@return []Project
*/
type GetV5OrgsOrgReposOpts struct {
......@@ -877,13 +877,13 @@ type GetV5OrgsOrgReposOpts struct {
PerPage optional.Int32
}
func (a *RepositoriesApiService) GetV5OrgsOrgRepos(ctx context.Context, org string, localVarOptionals *GetV5OrgsOrgReposOpts) (Project, *http.Response, error) {
func (a *RepositoriesApiService) GetV5OrgsOrgRepos(ctx context.Context, org string, localVarOptionals *GetV5OrgsOrgReposOpts) ([]Project, *http.Response, error) {
var (
localVarHttpMethod = strings.ToUpper("Get")
localVarPostBody interface{}
localVarFileName string
localVarFileBytes []byte
localVarReturnValue Project
localVarReturnValue []Project
)
// create path and map variables
......@@ -954,7 +954,7 @@ func (a *RepositoriesApiService) GetV5OrgsOrgRepos(ctx context.Context, org stri
}
if localVarHttpResponse.StatusCode == 200 {
var v Project
var v []Project
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册