提交 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: ...@@ -9541,7 +9541,9 @@ paths:
200: 200:
description: "返回格式" description: "返回格式"
schema: schema:
$ref: "#/definitions/Project" type: "array"
items:
$ref: "#/definitions/Project"
post: post:
tags: tags:
- "Repositories" - "Repositories"
......
...@@ -438,7 +438,7 @@ No authorization required ...@@ -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) [[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** # **GetV5OrgsOrgRepos**
> Project GetV5OrgsOrgRepos(ctx, org, optional) > []Project GetV5OrgsOrgRepos(ctx, org, optional)
获取一个组织的仓库 获取一个组织的仓库
获取一个组织的仓库 获取一个组织的仓库
...@@ -464,7 +464,7 @@ Name | Type | Description | Notes ...@@ -464,7 +464,7 @@ Name | Type | Description | Notes
### Return type ### Return type
[**Project**](Project.md) [**[]Project**](Project.md)
### Authorization ### Authorization
......
...@@ -867,7 +867,7 @@ RepositoriesApiService 获取一个组织的仓库 ...@@ -867,7 +867,7 @@ RepositoriesApiService 获取一个组织的仓库
* @param "Page" (optional.Int32) - 当前的页码 * @param "Page" (optional.Int32) - 当前的页码
* @param "PerPage" (optional.Int32) - 每页的数量,最大为 100 * @param "PerPage" (optional.Int32) - 每页的数量,最大为 100
@return Project @return []Project
*/ */
type GetV5OrgsOrgReposOpts struct { type GetV5OrgsOrgReposOpts struct {
...@@ -877,13 +877,13 @@ type GetV5OrgsOrgReposOpts struct { ...@@ -877,13 +877,13 @@ type GetV5OrgsOrgReposOpts struct {
PerPage optional.Int32 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 ( var (
localVarHttpMethod = strings.ToUpper("Get") localVarHttpMethod = strings.ToUpper("Get")
localVarPostBody interface{} localVarPostBody interface{}
localVarFileName string localVarFileName string
localVarFileBytes []byte localVarFileBytes []byte
localVarReturnValue Project localVarReturnValue []Project
) )
// create path and map variables // create path and map variables
...@@ -954,7 +954,7 @@ func (a *RepositoriesApiService) GetV5OrgsOrgRepos(ctx context.Context, org stri ...@@ -954,7 +954,7 @@ func (a *RepositoriesApiService) GetV5OrgsOrgRepos(ctx context.Context, org stri
} }
if localVarHttpResponse.StatusCode == 200 { if localVarHttpResponse.StatusCode == 200 {
var v Project var v []Project
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
if err != nil { if err != nil {
newErr.error = err.Error() newErr.error = err.Error()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册