add 字典管理
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user