Ver a proveniência

update

master
shenjiachi há 1 semana
ascendente
cometimento
313928950f
1 ficheiros alterados com 11 adições e 1 eliminações
  1. +11
    -1
      app/hdl/comm/hdl_comm.go

+ 11
- 1
app/hdl/comm/hdl_comm.go Ver ficheiro

@@ -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


Carregando…
Cancelar
Guardar