提供restful示例 参考 customer 客户管理(资源示例)版块 涉及到权限变动 请更新数据库 sys_api和casbin表

This commit is contained in:
pixel
2020-04-10 14:15:29 +08:00
parent c11f6d428a
commit b35169ca20
4 changed files with 11 additions and 1 deletions
+4
View File
@@ -61,6 +61,10 @@ func GetAPIInfoList(api model.SysApi, info request.PageInfo, order string, desc
db = db.Where("method = ?", api.Method)
}
if api.ApiGroup != "" {
db = db.Where("api_group = ?", api.ApiGroup)
}
err = db.Find(&apiList).Count(&total).Error
if err != nil {