Documentation ¶
Index ¶
- type AddApiLogic
- type AddMenuLogic
- type AddRoleLogic
- type CleanApiListLogic
- type CleanMenuListLogic
- type DeleteApiLogic
- type DeleteMenuLogic
- type DeleteRoleLogic
- type FindApiListLogic
- type FindMenuListLogic
- type FindRoleListLogic
- type FindRoleResourcesLogic
- type FindUserApisLogic
- type FindUserMenusLogic
- type FindUserRolesLogic
- type SyncApiListLogic
- type SyncMenuListLogic
- type UpdateApiLogic
- type UpdateMenuLogic
- type UpdateRoleApisLogic
- type UpdateRoleLogic
- type UpdateRoleMenusLogic
- type UpdateUserRoleLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddApiLogic ¶
func NewAddApiLogic ¶
func NewAddApiLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AddApiLogic
func (*AddApiLogic) AddApi ¶
func (l *AddApiLogic) AddApi(in *permissionrpc.ApiNewReq) (*permissionrpc.ApiDetails, error)
创建接口
type AddMenuLogic ¶
func NewAddMenuLogic ¶
func NewAddMenuLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AddMenuLogic
func (*AddMenuLogic) AddMenu ¶
func (l *AddMenuLogic) AddMenu(in *permissionrpc.MenuNewReq) (*permissionrpc.MenuDetails, error)
创建菜单
type AddRoleLogic ¶
func NewAddRoleLogic ¶
func NewAddRoleLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AddRoleLogic
func (*AddRoleLogic) AddRole ¶
func (l *AddRoleLogic) AddRole(in *permissionrpc.RoleNewReq) (*permissionrpc.RoleDetails, error)
创建角色
type CleanApiListLogic ¶
func NewCleanApiListLogic ¶
func NewCleanApiListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CleanApiListLogic
func (*CleanApiListLogic) CleanApiList ¶
func (l *CleanApiListLogic) CleanApiList(in *permissionrpc.EmptyReq) (*permissionrpc.BatchResp, error)
清空接口列表
type CleanMenuListLogic ¶
func NewCleanMenuListLogic ¶
func NewCleanMenuListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CleanMenuListLogic
func (*CleanMenuListLogic) CleanMenuList ¶
func (l *CleanMenuListLogic) CleanMenuList(in *permissionrpc.EmptyReq) (*permissionrpc.BatchResp, error)
清空菜单列表
type DeleteApiLogic ¶
func NewDeleteApiLogic ¶
func NewDeleteApiLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteApiLogic
func (*DeleteApiLogic) DeleteApi ¶
func (l *DeleteApiLogic) DeleteApi(in *permissionrpc.IdsReq) (*permissionrpc.BatchResp, error)
删除接口
type DeleteMenuLogic ¶
func NewDeleteMenuLogic ¶
func NewDeleteMenuLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteMenuLogic
func (*DeleteMenuLogic) DeleteMenu ¶
func (l *DeleteMenuLogic) DeleteMenu(in *permissionrpc.IdsReq) (*permissionrpc.BatchResp, error)
删除菜单
type DeleteRoleLogic ¶
func NewDeleteRoleLogic ¶
func NewDeleteRoleLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteRoleLogic
func (*DeleteRoleLogic) DeleteRole ¶
func (l *DeleteRoleLogic) DeleteRole(in *permissionrpc.IdsReq) (*permissionrpc.BatchResp, error)
删除角色
type FindApiListLogic ¶
func NewFindApiListLogic ¶
func NewFindApiListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindApiListLogic
func (*FindApiListLogic) FindApiList ¶
func (l *FindApiListLogic) FindApiList(in *permissionrpc.FindApiListReq) (*permissionrpc.FindApiListResp, error)
分页获取接口列表
type FindMenuListLogic ¶
func NewFindMenuListLogic ¶
func NewFindMenuListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindMenuListLogic
func (*FindMenuListLogic) FindMenuList ¶
func (l *FindMenuListLogic) FindMenuList(in *permissionrpc.FindMenuListReq) (*permissionrpc.FindMenuListResp, error)
分页获取菜单列表
type FindRoleListLogic ¶
func NewFindRoleListLogic ¶
func NewFindRoleListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindRoleListLogic
func (*FindRoleListLogic) FindRoleList ¶
func (l *FindRoleListLogic) FindRoleList(in *permissionrpc.FindRoleListReq) (*permissionrpc.FindRoleListResp, error)
分页获取角色列表
type FindRoleResourcesLogic ¶
func NewFindRoleResourcesLogic ¶
func NewFindRoleResourcesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindRoleResourcesLogic
func (*FindRoleResourcesLogic) FindRoleResources ¶
func (l *FindRoleResourcesLogic) FindRoleResources(in *permissionrpc.IdReq) (*permissionrpc.RoleResourcesResp, error)
查询角色
type FindUserApisLogic ¶
func NewFindUserApisLogic ¶
func NewFindUserApisLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindUserApisLogic
func (*FindUserApisLogic) FindUserApis ¶
func (l *FindUserApisLogic) FindUserApis(in *permissionrpc.UserIdReq) (*permissionrpc.FindApiListResp, error)
获取用户接口权限
type FindUserMenusLogic ¶
func NewFindUserMenusLogic ¶
func NewFindUserMenusLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindUserMenusLogic
func (*FindUserMenusLogic) FindUserMenus ¶
func (l *FindUserMenusLogic) FindUserMenus(in *permissionrpc.UserIdReq) (*permissionrpc.FindMenuListResp, error)
获取用户菜单权限
type FindUserRolesLogic ¶
func NewFindUserRolesLogic ¶
func NewFindUserRolesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindUserRolesLogic
func (*FindUserRolesLogic) FindUserRoles ¶
func (l *FindUserRolesLogic) FindUserRoles(in *permissionrpc.UserIdReq) (*permissionrpc.FindRoleListResp, error)
获取用户角色信息
type SyncApiListLogic ¶
func NewSyncApiListLogic ¶
func NewSyncApiListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SyncApiListLogic
func (*SyncApiListLogic) SyncApiList ¶
func (l *SyncApiListLogic) SyncApiList(in *permissionrpc.SyncApiReq) (*permissionrpc.BatchResp, error)
同步接口列表
type SyncMenuListLogic ¶
func NewSyncMenuListLogic ¶
func NewSyncMenuListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SyncMenuListLogic
func (*SyncMenuListLogic) SyncMenuList ¶
func (l *SyncMenuListLogic) SyncMenuList(in *permissionrpc.SyncMenuReq) (*permissionrpc.BatchResp, error)
同步菜单列表
type UpdateApiLogic ¶
func NewUpdateApiLogic ¶
func NewUpdateApiLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateApiLogic
func (*UpdateApiLogic) UpdateApi ¶
func (l *UpdateApiLogic) UpdateApi(in *permissionrpc.ApiNewReq) (*permissionrpc.ApiDetails, error)
更新接口
type UpdateMenuLogic ¶
func NewUpdateMenuLogic ¶
func NewUpdateMenuLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateMenuLogic
func (*UpdateMenuLogic) UpdateMenu ¶
func (l *UpdateMenuLogic) UpdateMenu(in *permissionrpc.MenuNewReq) (*permissionrpc.MenuDetails, error)
更新菜单
type UpdateRoleApisLogic ¶
func NewUpdateRoleApisLogic ¶
func NewUpdateRoleApisLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateRoleApisLogic
func (*UpdateRoleApisLogic) UpdateRoleApis ¶
func (l *UpdateRoleApisLogic) UpdateRoleApis(in *permissionrpc.UpdateRoleApisReq) (*permissionrpc.EmptyResp, error)
更新角色资源
type UpdateRoleLogic ¶
func NewUpdateRoleLogic ¶
func NewUpdateRoleLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateRoleLogic
func (*UpdateRoleLogic) UpdateRole ¶
func (l *UpdateRoleLogic) UpdateRole(in *permissionrpc.RoleNewReq) (*permissionrpc.RoleDetails, error)
type UpdateRoleMenusLogic ¶
func NewUpdateRoleMenusLogic ¶
func NewUpdateRoleMenusLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateRoleMenusLogic
func (*UpdateRoleMenusLogic) UpdateRoleMenus ¶
func (l *UpdateRoleMenusLogic) UpdateRoleMenus(in *permissionrpc.UpdateRoleMenusReq) (*permissionrpc.EmptyResp, error)
更新角色菜单
type UpdateUserRoleLogic ¶
func NewUpdateUserRoleLogic ¶
func NewUpdateUserRoleLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateUserRoleLogic
func (*UpdateUserRoleLogic) UpdateUserRole ¶
func (l *UpdateUserRoleLogic) UpdateUserRole(in *permissionrpc.UpdateUserRoleReq) (*permissionrpc.EmptyResp, error)
修改用户角色
Source Files ¶
- add_api_logic.go
- add_menu_logic.go
- add_role_logic.go
- clean_api_list_logic.go
- clean_menu_list_logic.go
- convert_api.go
- convert_menu.go
- convert_role.go
- delete_api_logic.go
- delete_menu_logic.go
- delete_role_logic.go
- find_api_list_logic.go
- find_menu_list_logic.go
- find_role_list_logic.go
- find_role_resources_logic.go
- find_user_apis_logic.go
- find_user_menus_logic.go
- find_user_roles_logic.go
- sync_api_list_logic.go
- sync_menu_list_logic.go
- update_api_logic.go
- update_menu_logic.go
- update_role_apis_logic.go
- update_role_logic.go
- update_role_menus_logic.go
- update_user_role_logic.go
Click to show internal directories.
Click to hide internal directories.