From 5e221b010a4303ce17b93e399bd21d8300414d5a Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Tue, 10 Dec 2024 17:13:05 +0800 Subject: [PATCH] update --- app/hdl/hdl_role.go | 2 +- app/md/md_module.go | 2 -- app/svc/svc_role.go | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/hdl/hdl_role.go b/app/hdl/hdl_role.go index 80cb578..6c66448 100644 --- a/app/hdl/hdl_role.go +++ b/app/hdl/hdl_role.go @@ -260,7 +260,7 @@ func RoleBindPermissionGroup(c *gin.Context) { e.OutErr(c, err1.Code, err1.Error()) return } - err = svc.RoleBindPermissionGroup(c, req) + err = svc.RoleBindPermissionGroup(req) if err != nil { e.OutErr(c, e.ERR, err.Error()) return diff --git a/app/md/md_module.go b/app/md/md_module.go index 3e7913c..46f1541 100644 --- a/app/md/md_module.go +++ b/app/md/md_module.go @@ -6,7 +6,6 @@ var Module = map[string]string{ "3": "bottom_bar", "4": "invitation_download_landing_page", "5": "invitation_poster", - "6": "about_us", "7": "down_channel", "8": "contribution", "9": "egg_score", @@ -23,7 +22,6 @@ var ModuleList = []map[string]interface{}{ {"name": "底部导航", "mod_name": "bottom_bar", "value": "3"}, {"name": "邀请下载落地页", "mod_name": "invitation_download_landing_page", "value": "4"}, {"name": "邀请海报", "mod_name": "invitation_poster", "value": "5"}, - {"name": "关于我们", "mod_name": "about_us", "value": "6"}, {"name": "下载渠道", "mod_name": "down_channel", "value": "7"}, {"name": "贡献值", "mod_name": "contribution", "value": "8"}, {"name": "蛋蛋分", "mod_name": "egg_score", "value": "9"}, diff --git a/app/svc/svc_role.go b/app/svc/svc_role.go index 0f96f68..87ad38f 100644 --- a/app/svc/svc_role.go +++ b/app/svc/svc_role.go @@ -101,7 +101,7 @@ func DeleteRole(c *gin.Context, roleId int) (err error) { return session.Commit() } -func RoleBindPermissionGroup(c *gin.Context, req md.RoleBindPermissionGroupReq) (err error) { +func RoleBindPermissionGroup(req md.RoleBindPermissionGroupReq) (err error) { engine := db.Db session := engine.NewSession() defer session.Close()