|
@@ -17,11 +17,21 @@ import ( |
|
|
"strings" |
|
|
"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) { |
|
|
func MenuList(c *gin.Context) { |
|
|
engine := db.Db |
|
|
engine := db.Db |
|
|
admin := svc.GetUser(c) |
|
|
admin := svc.GetUser(c) |
|
|
qrcodeWithBatchRecordsDb := implement.NewPermissionGroupDb(engine) |
|
|
qrcodeWithBatchRecordsDb := implement.NewPermissionGroupDb(engine) |
|
|
groupList, err := qrcodeWithBatchRecordsDb.FindPermissionGroupV2() |
|
|
|
|
|
|
|
|
groupList, err := qrcodeWithBatchRecordsDb.FindPermissionGroup() |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
e.OutErr(c, e.ERR_DB_ORM, err.Error()) |
|
|
e.OutErr(c, e.ERR_DB_ORM, err.Error()) |
|
|
return |
|
|
return |
|
|