修改了menu的查询次数 增强了菜单查询时的性能

This commit is contained in:
pixel
2020-05-06 11:19:35 +08:00
parent b44c5f76e1
commit 7e9d32651b
8 changed files with 58 additions and 26 deletions

View File

@@ -39,7 +39,7 @@ func GetMenu(c *gin.Context) {
func GetMenuList(c *gin.Context) {
var pageInfo request.PageInfo
_ = c.ShouldBindJSON(&pageInfo)
err, menuList, total := service.GetInfoList(pageInfo)
err, menuList, total := service.GetInfoList()
if err != nil {
response.FailWithMessage(fmt.Sprintf("获取数据失败,%v", err), c)
} else {