From 2decf43b4ced0f1e6b5ecf1c92c2ffa157592c57 Mon Sep 17 00:00:00 2001 From: zhangwenjian Date: Tue, 10 Aug 2021 03:35:36 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix=F0=9F=90=9B:=20=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E7=94=9F=E6=88=90=E5=90=8E=E7=9A=84=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/v4/no_actions/router_check_role.go.template | 2 +- template/v4/no_actions/router_no_check_role.go.template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/template/v4/no_actions/router_check_role.go.template b/template/v4/no_actions/router_check_role.go.template index 0ba64272..249c61c4 100644 --- a/template/v4/no_actions/router_check_role.go.template +++ b/template/v4/no_actions/router_check_role.go.template @@ -15,7 +15,7 @@ func init() { // register{{.ClassName}}Router func register{{.ClassName}}Router(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) { api := apis.{{.ClassName}}{} - r := v1.Group("/{{.MLTBName}}").Use(authMiddleware.MiddlewareFunc()).Use(middleware.AuthCheckRole()) + r := v1.Group("/{{.ModuleName}}").Use(authMiddleware.MiddlewareFunc()).Use(middleware.AuthCheckRole()) { r.GET("", api.GetPage) r.GET("/:id", api.Get) diff --git a/template/v4/no_actions/router_no_check_role.go.template b/template/v4/no_actions/router_no_check_role.go.template index 429e274c..fc26fe60 100644 --- a/template/v4/no_actions/router_no_check_role.go.template +++ b/template/v4/no_actions/router_no_check_role.go.template @@ -14,7 +14,7 @@ func init() { // register{{.ClassName}}Router func register{{.ClassName}}Router(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) { api := apis.{{.ClassName}}{} - r := v1.Group("/{{.MLTBName}}").Use(authMiddleware.MiddlewareFunc()) + r := v1.Group("/{{.ModuleName}}").Use(authMiddleware.MiddlewareFunc()) { r.GET("", api.GetPage) r.GET("/:id", api.Get) From b5a57e6dd9b20c4273096109fecd3634e078304d Mon Sep 17 00:00:00 2001 From: zhangwenjian Date: Tue, 10 Aug 2021 03:36:20 +0800 Subject: [PATCH 2/4] =?UTF-8?q?refactor=F0=9F=8E=A8:=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=94=9F=E6=88=90=E5=8A=9F=E8=83=BD=E7=9A=84=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=92=8C=E5=88=A0=E9=99=A4=E8=AF=A2=E9=97=AE=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/v4/vue.go.template | 40 +++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/template/v4/vue.go.template b/template/v4/vue.go.template index 201c3b5d..b6eaaf41 100644 --- a/template/v4/vue.go.template +++ b/template/v4/vue.go.template @@ -118,22 +118,36 @@ {{- end }} From 5d3b1c3d0f21296f2918597c73b67d312b3e3252 Mon Sep 17 00:00:00 2001 From: zhangwenjian Date: Tue, 10 Aug 2021 03:37:02 +0800 Subject: [PATCH 3/4] =?UTF-8?q?docs=F0=9F=93=9D:=20=E6=9B=B4=E6=96=B02.0.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/global/adm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/global/adm.go b/common/global/adm.go index e06b63e0..d9bd3249 100644 --- a/common/global/adm.go +++ b/common/global/adm.go @@ -2,7 +2,7 @@ package global const ( // Version go-admin version info - Version = "2.0.3" + Version = "2.0.4" ) var ( From 3e20e93797097a42adb3a4f211c461ead6e79a55 Mon Sep 17 00:00:00 2001 From: zhangwenjian Date: Tue, 10 Aug 2021 03:47:31 +0800 Subject: [PATCH 4/4] =?UTF-8?q?fix=F0=9F=90=9B:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E7=BC=96=E8=BE=91=E6=9C=AA=E8=B5=8B=E6=9D=83?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/db.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/config/db.sql b/config/db.sql index a4a5421b..25e2349f 100644 --- a/config/db.sql +++ b/config/db.sql @@ -303,6 +303,7 @@ INSERT INTO `sys_menu_api_rule` VALUES (228, 27); INSERT INTO `sys_menu_api_rule` VALUES (230, 28); INSERT INTO `sys_menu_api_rule` VALUES (226, 29); INSERT INTO `sys_menu_api_rule` VALUES (51, 39); +INSERT INTO `sys_menu_api_rule` VALUES (51, 135); INSERT INTO `sys_menu_api_rule` VALUES (222, 39); INSERT INTO `sys_menu_api_rule` VALUES (221, 41); INSERT INTO `sys_menu_api_rule` VALUES (52, 44);