add 字典管理

This commit is contained in:
TsMask
2023-09-06 10:47:16 +08:00
parent 3f35f2bc96
commit 5079a1b782
9 changed files with 1587 additions and 0 deletions

View File

@@ -19,6 +19,8 @@ import (
"ems.agt/features/security"
"ems.agt/features/state"
sysconfig "ems.agt/features/sys_config"
sysdictdata "ems.agt/features/sys_dict_data"
sysdicttype "ems.agt/features/sys_dict_type"
sysmenu "ems.agt/features/sys_menu"
sysrole "ems.agt/features/sys_role"
sysuser "ems.agt/features/sys_user"
@@ -293,6 +295,16 @@ func init() {
Register(v.Method, v.Pattern, v.Handler, v.Middleware)
}
// 字典类型信息接口添加到路由
for _, v := range sysdicttype.Routers() {
Register(v.Method, v.Pattern, v.Handler, v.Middleware)
}
// 字典类型对应的字典数据信息接口添加到路由
for _, v := range sysdictdata.Routers() {
Register(v.Method, v.Pattern, v.Handler, v.Middleware)
}
// 菜单接口添加到路由
for _, v := range sysmenu.Routers() {
Register(v.Method, v.Pattern, v.Handler, v.Middleware)