From 313928950f61f21d5ef9d5e860c17377bfca0d0d Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Tue, 10 Dec 2024 15:19:53 +0800 Subject: [PATCH] update --- app/hdl/comm/hdl_comm.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/hdl/comm/hdl_comm.go b/app/hdl/comm/hdl_comm.go index 1589179..ad4ef3d 100644 --- a/app/hdl/comm/hdl_comm.go +++ b/app/hdl/comm/hdl_comm.go @@ -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