order test

This commit is contained in:
pixel
2020-04-07 18:02:29 +08:00
parent 2d7cd2e61a
commit 55d96245c2
4 changed files with 12330 additions and 12328 deletions

View File

@@ -45,11 +45,6 @@ func DeleteApi(c *gin.Context) {
}
}
type AuthAndPathIn struct {
AuthorityId string `json:"authorityId"`
ApiIds []uint `json:"apiIds"`
}
//条件搜索后端看此api
// @Tags SysApi
@@ -65,10 +60,12 @@ func GetApiList(c *gin.Context) {
type searchParams struct {
model.SysApi
model.PageInfo
OrderKey string `json:"orderKey"`
Desc bool `json:"desc"`
}
var sp searchParams
_ = c.ShouldBindJSON(&sp)
err, list, total := sp.SysApi.GetInfoList(sp.PageInfo)
err, list, total := sp.SysApi.GetInfoList(sp.PageInfo, sp.OrderKey, sp.Desc)
if err != nil {
response.Result(response.ERROR, gin.H{}, fmt.Sprintf("获取数据失败,%v", err), c)
} else {