|
|
@@ -17,11 +17,21 @@ import ( |
|
|
|
"strings" |
|
|
|
) |
|
|
|
|
|
|
|
// MenuList |
|
|
|
// @Summary 通用请求-权限列表-菜单栏列表(获取) |
|
|
|
// @Tags 权限列表 |
|
|
|
// @Description 菜单栏列表(获取) |
|
|
|
// @Accept json |
|
|
|
// @Produce json |
|
|
|
// @param Authorization header string true "验证参数Bearer和token空格拼接" |
|
|
|
// @Success 200 {object} "具体路由" |
|
|
|
// @Failure 400 {object} md.Response "具体错误" |
|
|
|
// @Router /api/comm/getMenuList [POST] |
|
|
|
func MenuList(c *gin.Context) { |
|
|
|
engine := db.Db |
|
|
|
admin := svc.GetUser(c) |
|
|
|
qrcodeWithBatchRecordsDb := implement.NewPermissionGroupDb(engine) |
|
|
|
groupList, err := qrcodeWithBatchRecordsDb.FindPermissionGroupV2() |
|
|
|
groupList, err := qrcodeWithBatchRecordsDb.FindPermissionGroup() |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR_DB_ORM, err.Error()) |
|
|
|
return |
|
|
|