update: used gormv2 to handle permission process

This commit is contained in:
zhangwenjian committed 2020-08-29 23:25:53 +08:00
1 parent d53ba4ed7a
commit 671291d024
10 files changed
+64 -55

No files matched your search

+1 -6
View File
@@ -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获取字典类型