configuration

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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]) Add

func (manage *AccountManagement[T]) Add(args *models.UserModel[T]) (rep.Response, error)

func (*AccountManagement[T]) AllAccount

func (manage *AccountManagement[T]) AllAccount(args map[string]int) (rep.Response, error)

AllAccount @Description : @Param args : [Get] => /api/configuration/user/accounts

func (*AccountManagement[T]) Del

func (manage *AccountManagement[T]) Del(args *models.UserModel[T]) (rep.Response, error)

Del @Description : @Param args : [Post] => /api/configuration/user/del

func (*AccountManagement[T]) GetOrgList

func (manage *AccountManagement[T]) GetOrgList(args *models.UserModel[T]) (rep.Response, error)

GetOrgList @Description : @Param args : [Get] => /api/configuration/user/orgList

func (*AccountManagement[T]) GetUserInfo

func (manage *AccountManagement[T]) GetUserInfo(args *models.UserModel[T]) (rep.Response, error)

type FuncManagement

type FuncManagement[T primary.Key] struct {
	*mappers.FuncManageMapper[T]
	*mappers.RoleManageMapper[T]
	DB *sql.DB
}

func (*FuncManagement[T]) Add

func (manage *FuncManagement[T]) Add(args map[string]any) (rep.Response, error)

Add @Description : @Param args : [Post] => /api/configuration/func/add

func (*FuncManagement[T]) Del

func (manage *FuncManagement[T]) Del(args map[string]any) (rep.Response, error)

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

func (manage *FuncManagement[T]) UpdateStatus(args map[string]any) (rep.Response, error)

UpdateStatus @Description : @Param args : [Post] => /api/configuration/func/update/status

type MenuManagement[T primary.Key] struct {
	*mappers.MenuManageMapper[T]
	*mappers.RoleManageMapper[T]
	DB *sql.DB
}
func (manage *MenuManagement[T]) Add(route models.MenuRouter) (rep.Response, error)

Add @Description : @Param route : [Post] => /api/configuration/menu/add

func (manage *MenuManagement[T]) Del(args map[string]int) (rep.Response, error)

Delete @Description : @Param args : [Post] => /api/configuration/menu/del

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 (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 (manage *MenuManagement[T]) List(args map[string]int) (rep.Response, error)

List @Description : 公共获取 全部路由信息便于前端加载路由 @Param args : [Get] => /public/menu

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 (manage *MenuManagement[T]) ModifyStatus(args map[string]any) (rep.Response, error)

ModifyStatus @Description : @Param args : [Post] => /api/configuration/menu/status

func (manage *MenuManagement[T]) Tree(args map[string]int) (rep.Response, error)

Tree @Description : 用于加载初始化路由信息 @Param args : [Get] => /api/configuration/menu/list

type OrgManagement

type OrgManagement[T primary.Key] struct {
	*mappers.UserMapper[T]
	*mappers.OrgManageMapper[T]
	DB *sql.DB
}

func (*OrgManagement[T]) AddOneRole

func (manage *OrgManagement[T]) AddOneRole(args *models.Role) (rep.Response, error)

AddOneRole @Description : @Param args : [Post] => /api/configuration/org/add/role

func (*OrgManagement[T]) AddOrg

func (manage *OrgManagement[T]) AddOrg(org *models.Org) (rep.Response, error)

AddOrg @Description : @Param org : [Post] => /api/configuration/org/create

func (*OrgManagement[T]) AddUser

func (manage *OrgManagement[T]) AddUser(args *models.AddUser) (rep.Response, error)

AddUser @Description : @Param args : [Post] => /api/configuration/org/user/add

func (*OrgManagement[T]) AuthAddRole

func (manage *OrgManagement[T]) AuthAddRole(args map[string]any) (rep.Response, error)

AuthAddRole @Description : @Param args : [Post] => /api/configuration/org/user/auth/add/role

func (*OrgManagement[T]) AuthDelRole

func (manage *OrgManagement[T]) AuthDelRole(args map[string]int) (rep.Response, error)

AuthDelRole @Description : @Param args : [Post] => /api/configuration/org/user/auth/del/role

func (*OrgManagement[T]) DelOneRole

func (manage *OrgManagement[T]) DelOneRole(args map[string]int) (rep.Response, error)

DelOneRole @Description : @Param args : [Post] => /api/configuration/org/del/role

func (*OrgManagement[T]) DelOrg

func (manage *OrgManagement[T]) DelOrg(org *models.Org) (rep.Response, error)

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

func (manage *OrgManagement[T]) EditFuncAuth(args map[string]any) (rep.Response, error)

EditFuncAuth @Description : @Param args : [Post] => /api/configuration/org/user/edit/func

func (*OrgManagement[T]) EditMenuAuth

func (manage *OrgManagement[T]) EditMenuAuth(args map[string]any) (rep.Response, error)

EditMenuAuth @Description : @Param args : [Post] => /api/configuration/org/user/edit/menu

func (*OrgManagement[T]) EditRole

func (manage *OrgManagement[T]) EditRole(role *models.Role) (rep.Response, error)

func (*OrgManagement[T]) EditToolAuth

func (manage *OrgManagement[T]) EditToolAuth(args map[string]any) (rep.Response, error)

EditToolAuth @Description : @Param args : [Post] => /api/configuration/org/user/edit/tool

func (*OrgManagement[T]) GetFuncAuths

func (manage *OrgManagement[T]) GetFuncAuths(args map[string]int) (rep.Response, error)

GetFuncAuths @Description : @Param args : [Get] => /api/configuration/org/user/roleFuncList

func (*OrgManagement[T]) GetMenuAuths

func (manage *OrgManagement[T]) GetMenuAuths(args map[string]int) (rep.Response, error)

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

func (manage *OrgManagement[T]) GetOrgRole(args map[string]int) (rep.Response, error)

GetOrgRole @Description : @Param args : [Get] => /api/configuration/org/role/list

func (*OrgManagement[T]) GetOrgUser

func (manage *OrgManagement[T]) GetOrgUser(args map[string]int) (rep.Response, error)

GetOrgUser @Description : @Param args : [Get] => /api/configuration/org/user

func (*OrgManagement[T]) GetToolAuths

func (manage *OrgManagement[T]) GetToolAuths(args map[string]int) (rep.Response, error)

GetToolAuths @Description : @Param args : [Get] => /api/configuration/org/user/roleToolList

func (*OrgManagement[T]) GetUserRoleList

func (manage *OrgManagement[T]) GetUserRoleList(args map[string]int) (rep.Response, error)

GetUserRoleList @Description : @Param args : [Get] => /api/configuration/org/user/role

func (*OrgManagement[T]) OrgList

func (manage *OrgManagement[T]) OrgList(args map[string]int) (rep.Response, error)

OrgList @Description : @Param orgId : [Get] => /api/configuration/org/list/child

func (*OrgManagement[T]) UserFunc

func (manage *OrgManagement[T]) UserFunc(args map[string]int) (rep.Response, error)

UserFunc @Description : @Param args : [Get] => /api/configuration/org/user/funcList

func (*OrgManagement[T]) UserMenu

func (manage *OrgManagement[T]) UserMenu(args map[string]int) (rep.Response, error)

UserMenu @Description : @Param args : [Get] => /api/configuration/org/user/menuList

func (*OrgManagement[T]) UserTool

func (manage *OrgManagement[T]) UserTool(args map[string]int) (rep.Response, error)

UserTool @Description : @Param args : [Get] => /api/configuration/org/user/toolList

type RoleManagement

type RoleManagement[T primary.Key] struct {
	*mappers.RoleManageMapper[T]
}

func (*RoleManagement[T]) FuncAuthAdd

func (manage *RoleManagement[T]) FuncAuthAdd(args map[string]any) (rep.Response, error)

FuncAuthAdd @Description : @Param args : [Post] => /api/configuration/role/auth/func/add

func (*RoleManagement[T]) FuncAuthDel

func (manage *RoleManagement[T]) FuncAuthDel(args map[string]any) (rep.Response, error)

FuncAuthDel @Description : @Param args : [Post] => /api/configuration/role/auth/func/del

func (*RoleManagement[T]) GetFuncAuth

func (manage *RoleManagement[T]) GetFuncAuth(args map[string]any) (rep.Response, error)

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

func (manage *RoleManagement[T]) GetRoleMenuAuth(args map[string]int) (rep.Response, error)

GetRoleMenuAuth @Description : @Param args : [Get] => /api/configuration/role/menu/list

func (*RoleManagement[T]) GetToolAuth

func (manage *RoleManagement[T]) GetToolAuth(args map[string]any) (rep.Response, error)

GetToolAuth @Description : @Param args : [Get] => /api/configuration/role/tool/list

func (*RoleManagement[T]) MenuAuthAdd

func (manage *RoleManagement[T]) MenuAuthAdd(args map[string]any) (rep.Response, error)

MenuAuthAdd @Description : @Param args : [Post] => /api/configuration/role/auth/menu/add

func (*RoleManagement[T]) MenuAuthDel

func (manage *RoleManagement[T]) MenuAuthDel(args map[string]any) (rep.Response, error)

MenuAuthDel @Description : @Param args : [Post] => /api/configuration/role/auth/menu/del

func (*RoleManagement[T]) ToolAuthAdd

func (manage *RoleManagement[T]) ToolAuthAdd(args map[string]any) (rep.Response, error)

ToolAuthAdd @Description : @Param args : [Post] => /api/configuration/role/auth/tool/add

func (*RoleManagement[T]) ToolAuthDel

func (manage *RoleManagement[T]) ToolAuthDel(args map[string]any) (rep.Response, error)

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

func (manage *ToolManagement[T]) Add(args map[string]any) (rep.Response, error)

Add @Description : @Param args : [Post] => /api/configuration/tool/add

func (*ToolManagement[T]) Del

func (manage *ToolManagement[T]) Del(args map[string]int) (rep.Response, error)

Del @Description : @Param args : [Post] => /api/configuration/tool/del

func (*ToolManagement[T]) Edit

func (manage *ToolManagement[T]) Edit(args map[string]any) (rep.Response, error)

func (*ToolManagement[T]) List

func (manage *ToolManagement[T]) List(args map[string]any) (rep.Response, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL