diff --git a/api/swagger.yaml b/api/swagger.yaml index 0e06b9158e804b83a37076acd1e3e696fbd00378..008b9a2bb68d1ff6d6321e145be03be794d03a00 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -3364,6 +3364,24 @@ paths: required: true type: "string" x-exportParamName: "Repo" + - name: "page" + in: "query" + description: "当前的页码" + required: false + type: "integer" + default: 1 + format: "int32" + x-exportParamName: "Page" + x-optionalDataType: "Int32" + - name: "per_page" + in: "query" + description: "每页的数量,最大为 100" + required: false + type: "integer" + default: 20 + format: "int32" + x-exportParamName: "PerPage" + x-optionalDataType: "Int32" responses: 200: description: "返回格式" diff --git a/docs/RepositoriesApi.md b/docs/RepositoriesApi.md index dbac098743fd464969a198147fe7865b024f398f..b0b065e5b9ecf0c7b54d6aaba9830f772722021a 100644 --- a/docs/RepositoriesApi.md +++ b/docs/RepositoriesApi.md @@ -620,6 +620,8 @@ Name | Type | Description | Notes **accessToken** | **optional.String**| 用户授权码 | + **page** | **optional.Int32**| 当前的页码 | [default to 1] + **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] ### Return type diff --git a/gitee/api_repositories.go b/gitee/api_repositories.go index 26ed36707775c629a3c946d5a504e51d71f8e7ee..1b5ab7e6935b6dbfbfe44771c8197c6ef637639b 100644 --- a/gitee/api_repositories.go +++ b/gitee/api_repositories.go @@ -1284,12 +1284,16 @@ RepositoriesApiService 获取仓库的所有成员 * @param repo 仓库路径(path) * @param optional nil or *GetV5ReposOwnerRepoCollaboratorsOpts - Optional Parameters: * @param "AccessToken" (optional.String) - 用户授权码 + * @param "Page" (optional.Int32) - 当前的页码 + * @param "PerPage" (optional.Int32) - 每页的数量,最大为 100 @return []ProjectMember */ type GetV5ReposOwnerRepoCollaboratorsOpts struct { AccessToken optional.String + Page optional.Int32 + PerPage optional.Int32 } func (a *RepositoriesApiService) GetV5ReposOwnerRepoCollaborators(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoCollaboratorsOpts) ([]ProjectMember, *http.Response, error) { @@ -1313,6 +1317,12 @@ func (a *RepositoriesApiService) GetV5ReposOwnerRepoCollaborators(ctx context.Co if localVarOptionals != nil && localVarOptionals.AccessToken.IsSet() { localVarQueryParams.Add("access_token", parameterToString(localVarOptionals.AccessToken.Value(), "")) } + if localVarOptionals != nil && localVarOptionals.Page.IsSet() { + localVarQueryParams.Add("page", parameterToString(localVarOptionals.Page.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PerPage.IsSet() { + localVarQueryParams.Add("per_page", parameterToString(localVarOptionals.PerPage.Value(), "")) + } // to determine the Content-Type header localVarHttpContentTypes := []string{"application/json", "multipart/form-data"}