Documentation ¶
Index ¶
- func NewAccountManagement[T primary.Key]() web.Constructor
- func NewFuncManagement[T primary.Key]() web.Constructor
- func NewMenuManagement[T primary.Key]() web.Constructor
- func NewOrgManagement[T primary.Key]() web.Constructor
- func NewRoleManagement[T primary.Key]() web.Constructor
- func NewToolManagement[T primary.Key]() web.Constructor
- type AccountManagement
- func (manage *AccountManagement[T]) Add(args *models.UserModel[T]) (rep.Response, error)
- func (manage *AccountManagement[T]) AllAccount(args map[string]int) (rep.Response, error)
- func (manage *AccountManagement[T]) Del(args *models.UserModel[T]) (rep.Response, error)
- func (manage *AccountManagement[T]) GetOrgList(args *models.UserModel[T]) (rep.Response, error)
- func (manage *AccountManagement[T]) GetUserInfo(args *models.UserModel[T]) (rep.Response, error)
- type FuncManagement
- func (manage *FuncManagement[T]) Add(args map[string]any) (rep.Response, error)
- func (manage *FuncManagement[T]) Del(args map[string]any) (rep.Response, error)
- func (manage *FuncManagement[T]) FuncList() (rep.Response, error)
- func (manage *FuncManagement[T]) FuncRoleList(args map[string]any, token *tokenutils.Token[T]) (rep.Response, error)
- func (manage *FuncManagement[T]) UpdateStatus(args map[string]any) (rep.Response, error)
- type MenuManagement
- func (manage *MenuManagement[T]) Add(route models.MenuRouter) (rep.Response, error)
- func (manage *MenuManagement[T]) Del(args map[string]int) (rep.Response, error)
- func (manage *MenuManagement[T]) GetOurTree(args map[string]any, token *tokenutils.Token[T]) (rep.Response, error)
- func (manage *MenuManagement[T]) GetRoleTree(args map[string]any, token *tokenutils.Token[T]) (rep.Response, error)
- func (manage *MenuManagement[T]) List(args map[string]int) (rep.Response, error)
- func (manage *MenuManagement[T]) MenuList(args map[string]any, token *tokenutils.Token[T]) (rep.Response, error)
- func (manage *MenuManagement[T]) ModifyStatus(args map[string]any) (rep.Response, error)
- func (manage *MenuManagement[T]) Tree(args map[string]int) (rep.Response, error)
- type OrgManagement
- func (manage *OrgManagement[T]) AddOneRole(args *models.Role) (rep.Response, error)
- func (manage *OrgManagement[T]) AddOrg(org *models.Org) (rep.Response, error)
- func (manage *OrgManagement[T]) AddUser(args *models.AddUser) (rep.Response, error)
- func (manage *OrgManagement[T]) AuthAddRole(args map[string]any) (rep.Response, error)
- func (manage *OrgManagement[T]) AuthDelRole(args map[string]int) (rep.Response, error)
- func (manage *OrgManagement[T]) DelOneRole(args map[string]int) (rep.Response, error)
- func (manage *OrgManagement[T]) DelOrg(org *models.Org) (rep.Response, error)
- func (manage *OrgManagement[T]) DelUser(args map[string]any, token *tokenutils.Token[T]) (rep.Response, error)
- func (manage *OrgManagement[T]) EditFuncAuth(args map[string]any) (rep.Response, error)
- func (manage *OrgManagement[T]) EditMenuAuth(args map[string]any) (rep.Response, error)
- func (manage *OrgManagement[T]) EditRole(role *models.Role) (rep.Response, error)
- func (manage *OrgManagement[T]) EditToolAuth(args map[string]any) (rep.Response, error)
- func (manage *OrgManagement[T]) GetFuncAuths(args map[string]int) (rep.Response, error)
- func (manage *OrgManagement[T]) GetMenuAuths(args map[string]int) (rep.Response, error)
- func (manage *OrgManagement[T]) GetOrg(orgId int) (rep.Response, error)
- func (manage *OrgManagement[T]) GetOrgRole(args map[string]int) (rep.Response, error)
- func (manage *OrgManagement[T]) GetOrgUser(args map[string]int) (rep.Response, error)
- func (manage *OrgManagement[T]) GetToolAuths(args map[string]int) (rep.Response, error)
- func (manage *OrgManagement[T]) GetUserRoleList(args map[string]int) (rep.Response, error)
- func (manage *OrgManagement[T]) OrgList(args map[string]int) (rep.Response, error)
- func (manage *OrgManagement[T]) UserFunc(args map[string]int) (rep.Response, error)
- func (manage *OrgManagement[T]) UserMenu(args map[string]int) (rep.Response, error)
- func (manage *OrgManagement[T]) UserTool(args map[string]int) (rep.Response, error)
- type RoleManagement
- func (manage *RoleManagement[T]) FuncAuthAdd(args map[string]any) (rep.Response, error)
- func (manage *RoleManagement[T]) FuncAuthDel(args map[string]any) (rep.Response, error)
- func (manage *RoleManagement[T]) GetFuncAuth(args map[string]any) (rep.Response, error)
- func (manage *RoleManagement[T]) GetOrgRole(args map[string]int)
- func (manage *RoleManagement[T]) GetRoleMenuAuth(args map[string]int) (rep.Response, error)
- func (manage *RoleManagement[T]) GetToolAuth(args map[string]any) (rep.Response, error)
- func (manage *RoleManagement[T]) MenuAuthAdd(args map[string]any) (rep.Response, error)
- func (manage *RoleManagement[T]) MenuAuthDel(args map[string]any) (rep.Response, error)
- func (manage *RoleManagement[T]) ToolAuthAdd(args map[string]any) (rep.Response, error)
- func (manage *RoleManagement[T]) ToolAuthDel(args map[string]any) (rep.Response, error)
- type ToolManagement
- func (manage *ToolManagement[T]) Add(args map[string]any) (rep.Response, error)
- func (manage *ToolManagement[T]) Del(args map[string]int) (rep.Response, error)
- func (manage *ToolManagement[T]) Edit(args map[string]any) (rep.Response, error)
- func (manage *ToolManagement[T]) List(args map[string]any) (rep.Response, error)
- func (manage *ToolManagement[T]) ToolRoleList(args map[string]any, token *tokenutils.Token[T]) (rep.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccountManagement ¶
func NewAccountManagement[T primary.Key]() web.Constructor
func NewFuncManagement ¶
func NewFuncManagement[T primary.Key]() web.Constructor
func NewMenuManagement ¶
func NewMenuManagement[T primary.Key]() web.Constructor
func NewOrgManagement ¶
func NewOrgManagement[T primary.Key]() web.Constructor
func NewRoleManagement ¶
func NewRoleManagement[T primary.Key]() web.Constructor
func NewToolManagement ¶
func NewToolManagement[T primary.Key]() web.Constructor
Types ¶
type AccountManagement ¶
type AccountManagement[T primary.Key] struct { *mappers.AccountManageMapper[T] }
func (*AccountManagement[T]) AllAccount ¶
AllAccount @Description : @Param args : [Get] => /api/configuration/user/accounts
func (*AccountManagement[T]) Del ¶
Del @Description : @Param args : [Post] => /api/configuration/user/del
func (*AccountManagement[T]) GetOrgList ¶
GetOrgList @Description : @Param args : [Get] => /api/configuration/user/orgList
func (*AccountManagement[T]) GetUserInfo ¶
type FuncManagement ¶
type FuncManagement[T primary.Key] struct { *mappers.FuncManageMapper[T] *mappers.RoleManageMapper[T] DB *sql.DB }
func (*FuncManagement[T]) Add ¶
Add @Description : @Param args : [Post] => /api/configuration/func/add
func (*FuncManagement[T]) Del ¶
Del @Description : @Param args : [Post] => /api/configuration/func/del
func (*FuncManagement[T]) FuncList ¶
func (manage *FuncManagement[T]) FuncList() (rep.Response, error)
FuncList @Description : [Get] => /api/configuration/func/list
func (*FuncManagement[T]) FuncRoleList ¶
func (manage *FuncManagement[T]) FuncRoleList(args map[string]any, token *tokenutils.Token[T]) (rep.Response, error)
FuncRoleList @Description : @Param args : [Get] => /api/configuration/func/role/list
func (*FuncManagement[T]) UpdateStatus ¶
UpdateStatus @Description : @Param args : [Post] => /api/configuration/func/update/status
type MenuManagement ¶
type MenuManagement[T primary.Key] struct { *mappers.MenuManageMapper[T] *mappers.RoleManageMapper[T] DB *sql.DB }
func (*MenuManagement[T]) Add ¶
func (manage *MenuManagement[T]) Add(route models.MenuRouter) (rep.Response, error)
Add @Description : @Param route : [Post] => /api/configuration/menu/add
func (*MenuManagement[T]) Del ¶
Delete @Description : @Param args : [Post] => /api/configuration/menu/del
func (*MenuManagement[T]) GetOurTree ¶
func (manage *MenuManagement[T]) GetOurTree(args map[string]any, token *tokenutils.Token[T]) (rep.Response, error)
GetOurTree @Description : 用于查询登录者菜单展示信息 @Param args : @Param token : [Get] => /api/configuration/menu/our/tree
func (*MenuManagement[T]) GetRoleTree ¶
func (manage *MenuManagement[T]) GetRoleTree(args map[string]any, token *tokenutils.Token[T]) (rep.Response, error)
GetRoleTree @Description : @Param args : @Param token : [Get] => /api/configuration/menu/role/tree
func (*MenuManagement[T]) List ¶
List @Description : 公共获取 全部路由信息便于前端加载路由 @Param args : [Get] => /public/menu
func (*MenuManagement[T]) MenuList ¶
func (manage *MenuManagement[T]) MenuList(args map[string]any, token *tokenutils.Token[T]) (rep.Response, error)
MenuList @Description : @Param args : @Param token : [Get] => /api/configuration/menu/our/menuList
func (*MenuManagement[T]) ModifyStatus ¶
ModifyStatus @Description : @Param args : [Post] => /api/configuration/menu/status
type OrgManagement ¶
type OrgManagement[T primary.Key] struct { *mappers.UserMapper[T] *mappers.OrgManageMapper[T] DB *sql.DB }
func (*OrgManagement[T]) AddOneRole ¶
AddOneRole @Description : @Param args : [Post] => /api/configuration/org/add/role
func (*OrgManagement[T]) AddOrg ¶
AddOrg @Description : @Param org : [Post] => /api/configuration/org/create
func (*OrgManagement[T]) AddUser ¶
AddUser @Description : @Param args : [Post] => /api/configuration/org/user/add
func (*OrgManagement[T]) AuthAddRole ¶
AuthAddRole @Description : @Param args : [Post] => /api/configuration/org/user/auth/add/role
func (*OrgManagement[T]) AuthDelRole ¶
AuthDelRole @Description : @Param args : [Post] => /api/configuration/org/user/auth/del/role
func (*OrgManagement[T]) DelOneRole ¶
DelOneRole @Description : @Param args : [Post] => /api/configuration/org/del/role
func (*OrgManagement[T]) DelOrg ¶
DelOrg @Description : @Param org : [Post] => /api/configuration/org/del
func (*OrgManagement[T]) DelUser ¶
func (manage *OrgManagement[T]) DelUser(args map[string]any, token *tokenutils.Token[T]) (rep.Response, error)
DelUser @Description : @Param args : [Post] => /api/configuration/org/user/del
func (*OrgManagement[T]) EditFuncAuth ¶
EditFuncAuth @Description : @Param args : [Post] => /api/configuration/org/user/edit/func
func (*OrgManagement[T]) EditMenuAuth ¶
EditMenuAuth @Description : @Param args : [Post] => /api/configuration/org/user/edit/menu
func (*OrgManagement[T]) EditToolAuth ¶
EditToolAuth @Description : @Param args : [Post] => /api/configuration/org/user/edit/tool
func (*OrgManagement[T]) GetFuncAuths ¶
GetFuncAuths @Description : @Param args : [Get] => /api/configuration/org/user/roleFuncList
func (*OrgManagement[T]) GetMenuAuths ¶
GetMenuAuths @Description : @Param args : [Get] => /api/configuration/org/user/roleMenuList
func (*OrgManagement[T]) GetOrg ¶
func (manage *OrgManagement[T]) GetOrg(orgId int) (rep.Response, error)
GetOrg @Description : @Param orgId : [Get] => /api/configuration/org/list
func (*OrgManagement[T]) GetOrgRole ¶
GetOrgRole @Description : @Param args : [Get] => /api/configuration/org/role/list
func (*OrgManagement[T]) GetOrgUser ¶
GetOrgUser @Description : @Param args : [Get] => /api/configuration/org/user
func (*OrgManagement[T]) GetToolAuths ¶
GetToolAuths @Description : @Param args : [Get] => /api/configuration/org/user/roleToolList
func (*OrgManagement[T]) GetUserRoleList ¶
GetUserRoleList @Description : @Param args : [Get] => /api/configuration/org/user/role
func (*OrgManagement[T]) OrgList ¶
OrgList @Description : @Param orgId : [Get] => /api/configuration/org/list/child
func (*OrgManagement[T]) UserFunc ¶
UserFunc @Description : @Param args : [Get] => /api/configuration/org/user/funcList
type RoleManagement ¶
type RoleManagement[T primary.Key] struct { *mappers.RoleManageMapper[T] }
func (*RoleManagement[T]) FuncAuthAdd ¶
FuncAuthAdd @Description : @Param args : [Post] => /api/configuration/role/auth/func/add
func (*RoleManagement[T]) FuncAuthDel ¶
FuncAuthDel @Description : @Param args : [Post] => /api/configuration/role/auth/func/del
func (*RoleManagement[T]) GetFuncAuth ¶
GetFuncAuth @Description : @Param args : [Get] => /api/configuration/role/func/list
func (*RoleManagement[T]) GetOrgRole ¶
func (manage *RoleManagement[T]) GetOrgRole(args map[string]int)
func (*RoleManagement[T]) GetRoleMenuAuth ¶
GetRoleMenuAuth @Description : @Param args : [Get] => /api/configuration/role/menu/list
func (*RoleManagement[T]) GetToolAuth ¶
GetToolAuth @Description : @Param args : [Get] => /api/configuration/role/tool/list
func (*RoleManagement[T]) MenuAuthAdd ¶
MenuAuthAdd @Description : @Param args : [Post] => /api/configuration/role/auth/menu/add
func (*RoleManagement[T]) MenuAuthDel ¶
MenuAuthDel @Description : @Param args : [Post] => /api/configuration/role/auth/menu/del
func (*RoleManagement[T]) ToolAuthAdd ¶
ToolAuthAdd @Description : @Param args : [Post] => /api/configuration/role/auth/tool/add
func (*RoleManagement[T]) ToolAuthDel ¶
ToolAuthDel @Description : @Param args : [Post] => /api/configuration/role/auth/tool/del
type ToolManagement ¶
type ToolManagement[T primary.Key] struct { *mappers.ToolManageMapper[T] *mappers.RoleManageMapper[T] DB *sql.DB }
func (*ToolManagement[T]) Add ¶
Add @Description : @Param args : [Post] => /api/configuration/tool/add
func (*ToolManagement[T]) Del ¶
Del @Description : @Param args : [Post] => /api/configuration/tool/del
func (*ToolManagement[T]) List ¶
List @Description : @Param args : [Get] => /api/configuration/tool/list
func (*ToolManagement[T]) ToolRoleList ¶
func (manage *ToolManagement[T]) ToolRoleList(args map[string]any, token *tokenutils.Token[T]) (rep.Response, error)
ToolRoleList @Description : @Param args : @Param token : [Get] => /api/configuration/tool/role/list