fix openpitrix resource sort param

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2019-11-08 17:13:26 +08:00
parent 7a909e574e
commit 981669ca5a
5 changed files with 11 additions and 6 deletions

View File

@@ -190,7 +190,7 @@ func ListRepos(conditions *params.Conditions, orderBy string, reverse bool, limi
if orderBy != "" {
req.SortKey = &wrappers.StringValue{Value: orderBy}
}
req.Reverse = &wrappers.BoolValue{Value: reverse}
req.Reverse = &wrappers.BoolValue{Value: !reverse}
req.Limit = uint32(limit)
req.Offset = uint32(offset)
resp, err := client.Repo().DescribeRepos(openpitrix.SystemContext(), req)