mysql

package
v0.0.0-...-2383c70 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleServiceImpl

type RoleServiceImpl struct {
	ioc.ObjectImpl
}

func (*RoleServiceImpl) AddApiPermission

func (i *RoleServiceImpl) AddApiPermission(ctx context.Context, in *role.AddApiPermissionRequest) ([]*role.ApiPermission, error)

添加角色关联API

func (*RoleServiceImpl) AddViewPermission

添加角色关联菜单

func (*RoleServiceImpl) CreateRole

func (i *RoleServiceImpl) CreateRole(ctx context.Context, in *role.CreateRoleRequest) (*role.Role, error)

创建角色

func (*RoleServiceImpl) DeleteRole

func (i *RoleServiceImpl) DeleteRole(ctx context.Context, in *role.DeleteRoleRequest) (*role.Role, error)

删除角色

func (*RoleServiceImpl) DescribeRole

func (i *RoleServiceImpl) DescribeRole(ctx context.Context, in *role.DescribeRoleRequest) (*role.Role, error)

详情查询

func (*RoleServiceImpl) Init

func (i *RoleServiceImpl) Init() error

func (*RoleServiceImpl) Name

func (i *RoleServiceImpl) Name() string

func (*RoleServiceImpl) QueryApiPermission

func (i *RoleServiceImpl) QueryApiPermission(ctx context.Context, in *role.QueryApiPermissionRequest) ([]*role.ApiPermission, error)

移除角色关联API

func (*RoleServiceImpl) QueryMatchedEndpoint

查询匹配到的Api接口列表

func (*RoleServiceImpl) QueryMatchedMenu

func (i *RoleServiceImpl) QueryMatchedMenu(ctx context.Context, in *role.QueryMatchedMenuRequest) (*types.Set[*view.Menu], error)

查询能匹配到视图菜单

func (*RoleServiceImpl) QueryRole

func (i *RoleServiceImpl) QueryRole(ctx context.Context, in *role.QueryRoleRequest) (*types.Set[*role.Role], error)

列表查询

func (*RoleServiceImpl) QueryViewPermission

func (i *RoleServiceImpl) QueryViewPermission(ctx context.Context, in *role.QueryViewPermissionRequest) ([]*role.ViewPermission, error)

查询角色关联的视图权限

func (*RoleServiceImpl) RemoveApiPermission

func (i *RoleServiceImpl) RemoveApiPermission(ctx context.Context, in *role.RemoveApiPermissionRequest) ([]*role.ApiPermission, error)

移除角色关联API

func (*RoleServiceImpl) RemoveViewPermission

func (i *RoleServiceImpl) RemoveViewPermission(ctx context.Context, in *role.RemoveViewPermissionRequest) ([]*role.ViewPermission, error)

移除角色关联菜单

func (*RoleServiceImpl) UpdateRole

func (i *RoleServiceImpl) UpdateRole(ctx context.Context, in *role.UpdateRoleRequest) (*role.Role, error)

更新角色

Jump to

Keyboard shortcuts

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