update: used gormv2 to handle permission process
This commit is contained in:
1 parent
d53ba4ed7a
commit
671291d024
10 files changed
+64
-55
No files matched your search
@@ -44,12 +44,7 @@ func GetDictTypeList(c *gin.Context) {
|
||||
result, count, err := data.GetPage(pageSize, pageIndex)
|
||||
tools.HasError(err, "", -1)
|
||||
|
||||
var res app.PageResponse
|
||||
res.Data.List = result
|
||||
res.Data.Count = count
|
||||
res.Data.PageIndex = pageIndex
|
||||
res.Data.PageSize = pageSize
|
||||
c.JSON(http.StatusOK, res.ReturnOK())
|
||||
app.PageOK(c,result,count,pageIndex,pageSize,"")
|
||||
}
|
||||
|
||||
// @Summary 通过字典id获取字典类型
|
||||
|
||||
Reference in new issue
Block a user