增加排序参数

This commit is contained in:
dushixiang
2021-03-05 17:33:13 +08:00
parent 0ef8f4276e
commit 1472ec73a7
18 changed files with 206 additions and 29 deletions

View File

@ -34,7 +34,10 @@ func CommandPagingEndpoint(c echo.Context) error {
content := c.QueryParam("content")
account, _ := GetCurrentAccount(c)
items, total, err := model.FindPageCommand(pageIndex, pageSize, name, content, account)
order := c.QueryParam("order")
field := c.QueryParam("field")
items, total, err := model.FindPageCommand(pageIndex, pageSize, name, content, order, field, account)
if err != nil {
return err
}