Skip to content

Commit

Permalink
apache#79 do not modify
Browse files Browse the repository at this point in the history
  • Loading branch information
GuoYL123 committed Mar 11, 2020
1 parent 8b33085 commit add44e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions pkg/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const (
QueryParamRev = "revision"
QueryParamMatch = "match"
QueryParamKeyID = "kv_id"
QueryPageNum = "pageNum"
QueryPageSize = "pageSize"
QueryLimit = "limit"
QueryOffset = "offset"
)

//http headers
Expand Down
12 changes: 6 additions & 6 deletions server/resource/v1/doc_struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,17 @@ var (
ParamType: goRestful.QueryParameterKind,
Desc: "label pairs,for example &label=service:order&label=version:1.0.0",
}
DocQueryPageNumParameters = &restful.Parameters{
DocQueryLimitParameters = &restful.Parameters{
DataType: "string",
Name: common.QueryPageNum,
Name: common.QueryLimit,
ParamType: goRestful.QueryParameterKind,
Desc: "pageNum,for example &pageNum=10",
Desc: "limit,for example &limit=10",
}
DocQueryPageSizeParameters = &restful.Parameters{
DocQueryOffsetParameters = &restful.Parameters{
DataType: "string",
Name: common.QueryPageSize,
Name: common.QueryOffset,
ParamType: goRestful.QueryParameterKind,
Desc: "PageSize,for example &pageSize=10",
Desc: "offset,for example &offset=10",
}
)

Expand Down

0 comments on commit add44e9

Please sign in to comment.