Documentation ¶
Index ¶
- Variables
- func Build(menus []*pb.MenuTree) []*pb.MenuTreeAuth
- func ConvertApiBaseFromList(list [][]string) []*pb.ApiBase
- func ConvertApiDataFromApiList(list []*model.SysAPI) []*pb.ApiData
- type ApiService
- func (a *ApiService) AllApi(ctx context.Context, _ *pb.AllApiRequest) (*pb.AllApiReply, error)
- func (a *ApiService) CreateApi(ctx context.Context, req *pb.CreateApiRequest) (*pb.CreateApiReply, error)
- func (a *ApiService) DeleteApi(ctx context.Context, req *pb.DeleteApiRequest) (*pb.DeleteApiReply, error)
- func (a *ApiService) GetApi(ctx context.Context, req *pb.GetApiRequest) (*pb.GetApiReply, error)
- func (a *ApiService) GetPolicyPathByRoleKey(ctx context.Context, req *pb.GetPolicyPathByRoleKeyRequest) (*pb.GetPolicyPathByRoleKeyReply, error)
- func (a *ApiService) GetSysApi(path string) *pb.ApiData
- func (a *ApiService) ListApi(ctx context.Context, req *pb.ListApiRequest) (*pb.ListApiReply, error)
- func (a *ApiService) ReloadSysApi()
- func (a *ApiService) UpdateApi(ctx context.Context, req *pb.UpdateApiRequest) (*pb.UpdateApiReply, error)
- type DeptService
- func (s *DeptService) CreateDept(ctx context.Context, req *pb.CreateDeptRequest) (*pb.CreateDeptReply, error)
- func (s *DeptService) DeleteDept(ctx context.Context, req *pb.DeleteDeptRequest) (*pb.DeleteDeptReply, error)
- func (s *DeptService) GetDeptTree(ctx context.Context, req *pb.GetDeptTreeRequest) (*pb.GetDeptTreeReply, error)
- func (s *DeptService) ListDept(ctx context.Context, req *pb.ListDeptRequest) (*pb.ListDeptReply, error)
- func (s *DeptService) RoleDeptTreeSelect(ctx context.Context, req *pb.RoleDeptTreeSelectRequest) (*pb.RoleDeptTreeSelectReply, error)
- func (s *DeptService) UpdateDept(ctx context.Context, req *pb.UpdateDeptRequest) (*pb.UpdateDeptReply, error)
- type DictDataService
- func (s *DictDataService) CreateDictData(ctx context.Context, req *pb.CreateDictDataRequest) (*pb.CreateDictDataReply, error)
- func (s *DictDataService) DeleteDictData(ctx context.Context, req *pb.DeleteDictDataRequest) (*pb.DeleteDictDataReply, error)
- func (s *DictDataService) ListDictData(ctx context.Context, req *pb.ListDictDataRequest) (*pb.ListDictDataReply, error)
- func (s *DictDataService) UpdateDictData(ctx context.Context, req *pb.UpdateDictDataRequest) (*pb.UpdateDictDataReply, error)
- type DictTypeService
- func (s *DictTypeService) CreateDictType(ctx context.Context, req *pb.CreateDictTypeRequest) (*pb.CreateDictTypeReply, error)
- func (s *DictTypeService) DeleteDictType(ctx context.Context, req *pb.DeleteDictTypeRequest) (*pb.DeleteDictTypeReply, error)
- func (s *DictTypeService) ListDictType(ctx context.Context, req *pb.ListDictTypeRequest) (*pb.ListDictTypeReply, error)
- func (s *DictTypeService) UpdateDictType(ctx context.Context, req *pb.UpdateDictTypeRequest) (*pb.UpdateDictTypeReply, error)
- type LogService
- type MenusService
- func (s *MenusService) CreateMenus(ctx context.Context, req *pb.CreateMenusRequest) (*pb.CreateMenusReply, error)
- func (s *MenusService) DeleteMenus(ctx context.Context, req *pb.DeleteMenusRequest) (*pb.DeleteMenusReply, error)
- func (s *MenusService) GetMenus(ctx context.Context, req *pb.GetMenusRequest) (*pb.GetMenusReply, error)
- func (s *MenusService) GetMenusTree(ctx context.Context, req *pb.GetMenusTreeRequest) (*pb.GetMenusTreeReply, error)
- func (s *MenusService) ListMenus(ctx context.Context, req *pb.ListMenusRequest) (*pb.ListMenusReply, error)
- func (s *MenusService) RoleMenuTreeSelect(ctx context.Context, req *pb.RoleMenuTreeSelectRequest) (*pb.RoleMenuTreeSelectReply, error)
- func (s *MenusService) UpdateMenus(ctx context.Context, req *pb.UpdateMenusRequest) (*pb.UpdateMenusReply, error)
- type PostService
- func (s *PostService) CreatePost(ctx context.Context, req *pb.CreatePostRequest) (*pb.CreatePostReply, error)
- func (s *PostService) DeletePost(ctx context.Context, req *pb.DeletePostRequest) (*pb.DeletePostReply, error)
- func (s *PostService) ListPost(ctx context.Context, req *pb.ListPostRequest) (*pb.ListPostReply, error)
- func (s *PostService) UpdatePost(ctx context.Context, req *pb.UpdatePostRequest) (*pb.UpdatePostReply, error)
- type RolesService
- func (r *RolesService) ChangeRoleStatus(ctx context.Context, req *pb.ChangeRoleStatusRequest) (*pb.ChangeRoleStatusReply, error)
- func (r *RolesService) CreateRoles(ctx context.Context, req *pb.CreateRolesRequest) (*pb.CreateRolesReply, error)
- func (r *RolesService) DataScope(ctx context.Context, req *pb.DataScopeRequest) (*pb.DataScopeReply, error)
- func (r *RolesService) DeleteRoles(ctx context.Context, req *pb.DeleteRolesRequest) (*pb.DeleteRolesReply, error)
- func (r *RolesService) GetRoles(ctx context.Context, req *pb.GetRolesRequest) (*pb.GetRolesReply, error)
- func (r *RolesService) ListRoles(ctx context.Context, req *pb.ListRolesRequest) (*pb.ListRolesReply, error)
- func (r *RolesService) Roles(ctx context.Context, req *pb.ListRolesRequest) (*pb.ListRolesReply, error)
- func (r *RolesService) UpdateRoles(ctx context.Context, req *pb.UpdateRolesRequest) (*pb.UpdateRolesReply, error)
- type SysuserService
- func (s *SysuserService) Auth(ctx context.Context, req *pb.AuthRequest) (*pb.AuthReply, error)
- func (s *SysuserService) ChangeStatus(ctx context.Context, req *pb.ChangeStatusRequest) (*pb.ChangeStatusReply, error)
- func (s *SysuserService) CreateSysuser(ctx context.Context, req *pb.CreateSysuserRequest) (*pb.CreateSysuserReply, error)
- func (s *SysuserService) DeleteSysuser(ctx context.Context, req *pb.DeleteSysuserRequest) (*pb.DeleteSysuserReply, error)
- func (s *SysuserService) GetCaptcha(context.Context, *pb.GetCaptchaRequest) (*pb.GetCaptchaReply, error)
- func (s *SysuserService) GetPostInit(ctx context.Context, req *pb.GetPostInitRequest) (*pb.GetPostInitReply, error)
- func (s *SysuserService) GetSysuser(ctx context.Context, req *pb.GetSysuserRequest) (*pb.GetSysuserReply, error)
- func (s *SysuserService) GetUserGoogleSecret(ctx context.Context, req *pb.GetUserGoogleSecretRequest) (*pb.GetUserGoogleSecretReply, error)
- func (s *SysuserService) GetUserRolePost(ctx context.Context, req *pb.GetUserRolePostRequest) (*pb.GetUserRolePostReply, error)
- func (s *SysuserService) ListSysuser(ctx context.Context, req *pb.ListSysuserRequest) (*pb.ListSysuserReply, error)
- func (s *SysuserService) Login(ctx context.Context, req *pb.LoginRequest) (*pb.LoginReply, error)
- func (s *SysuserService) Logout(ctx context.Context, req *pb.LogoutRequest) (*pb.LogoutReply, error)
- func (s *SysuserService) UpdateAvatar(ctx context.Context) error
- func (s *SysuserService) UpdatePassword(ctx context.Context, req *pb.UpdatePasswordRequest) (*pb.UpdatePasswordReply, error)
- func (s *SysuserService) UpdateSysuser(ctx context.Context, req *pb.UpdateSysuserRequest) (*pb.UpdateSysuserReply, error)
- func (s *SysuserService) UploadFile(ctx context.Context) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewSysuserService, NewMenusService, NewRolesService, NewApiService, NewDeptService, NewPostService, NewDictDataService, NewDictTypeService, NewLogService, )
ProviderSet is service providers.
Functions ¶
func ConvertApiBaseFromList ¶
Types ¶
type ApiService ¶
type ApiService struct { pb.UnimplementedApiServer // contains filtered or unexported fields }
func NewApiService ¶
func NewApiService(ac *biz.SysApiUseCase, logger log.Logger, casbinUseCase *biz.CasbinRuleUseCase) *ApiService
func (*ApiService) AllApi ¶
func (a *ApiService) AllApi(ctx context.Context, _ *pb.AllApiRequest) (*pb.AllApiReply, error)
func (*ApiService) CreateApi ¶
func (a *ApiService) CreateApi(ctx context.Context, req *pb.CreateApiRequest) (*pb.CreateApiReply, error)
func (*ApiService) DeleteApi ¶
func (a *ApiService) DeleteApi(ctx context.Context, req *pb.DeleteApiRequest) (*pb.DeleteApiReply, error)
func (*ApiService) GetApi ¶
func (a *ApiService) GetApi(ctx context.Context, req *pb.GetApiRequest) (*pb.GetApiReply, error)
func (*ApiService) GetPolicyPathByRoleKey ¶
func (a *ApiService) GetPolicyPathByRoleKey(ctx context.Context, req *pb.GetPolicyPathByRoleKeyRequest) (*pb.GetPolicyPathByRoleKeyReply, error)
func (*ApiService) ListApi ¶
func (a *ApiService) ListApi(ctx context.Context, req *pb.ListApiRequest) (*pb.ListApiReply, error)
func (*ApiService) ReloadSysApi ¶
func (a *ApiService) ReloadSysApi()
func (*ApiService) UpdateApi ¶
func (a *ApiService) UpdateApi(ctx context.Context, req *pb.UpdateApiRequest) (*pb.UpdateApiReply, error)
type DeptService ¶
type DeptService struct { pb.UnimplementedDeptServer // contains filtered or unexported fields }
func NewDeptService ¶
func NewDeptService(bc *biz.SysDeptUseCase, logger log.Logger) *DeptService
func (*DeptService) CreateDept ¶
func (s *DeptService) CreateDept(ctx context.Context, req *pb.CreateDeptRequest) (*pb.CreateDeptReply, error)
func (*DeptService) DeleteDept ¶
func (s *DeptService) DeleteDept(ctx context.Context, req *pb.DeleteDeptRequest) (*pb.DeleteDeptReply, error)
func (*DeptService) GetDeptTree ¶
func (s *DeptService) GetDeptTree(ctx context.Context, req *pb.GetDeptTreeRequest) (*pb.GetDeptTreeReply, error)
func (*DeptService) ListDept ¶
func (s *DeptService) ListDept(ctx context.Context, req *pb.ListDeptRequest) (*pb.ListDeptReply, error)
func (*DeptService) RoleDeptTreeSelect ¶
func (s *DeptService) RoleDeptTreeSelect(ctx context.Context, req *pb.RoleDeptTreeSelectRequest) (*pb.RoleDeptTreeSelectReply, error)
func (*DeptService) UpdateDept ¶
func (s *DeptService) UpdateDept(ctx context.Context, req *pb.UpdateDeptRequest) (*pb.UpdateDeptReply, error)
type DictDataService ¶
type DictDataService struct { pb.UnimplementedDictDataServer // contains filtered or unexported fields }
func NewDictDataService ¶
func NewDictDataService(pc *biz.SysDictDatumUseCase, logger log.Logger) *DictDataService
func (*DictDataService) CreateDictData ¶
func (s *DictDataService) CreateDictData(ctx context.Context, req *pb.CreateDictDataRequest) (*pb.CreateDictDataReply, error)
func (*DictDataService) DeleteDictData ¶
func (s *DictDataService) DeleteDictData(ctx context.Context, req *pb.DeleteDictDataRequest) (*pb.DeleteDictDataReply, error)
func (*DictDataService) ListDictData ¶
func (s *DictDataService) ListDictData(ctx context.Context, req *pb.ListDictDataRequest) (*pb.ListDictDataReply, error)
func (*DictDataService) UpdateDictData ¶
func (s *DictDataService) UpdateDictData(ctx context.Context, req *pb.UpdateDictDataRequest) (*pb.UpdateDictDataReply, error)
type DictTypeService ¶
type DictTypeService struct { pb.UnimplementedDictTypeServer // contains filtered or unexported fields }
func NewDictTypeService ¶
func NewDictTypeService(pc *biz.SysDictTypeUseCase, logger log.Logger) *DictTypeService
func (*DictTypeService) CreateDictType ¶
func (s *DictTypeService) CreateDictType(ctx context.Context, req *pb.CreateDictTypeRequest) (*pb.CreateDictTypeReply, error)
func (*DictTypeService) DeleteDictType ¶
func (s *DictTypeService) DeleteDictType(ctx context.Context, req *pb.DeleteDictTypeRequest) (*pb.DeleteDictTypeReply, error)
func (*DictTypeService) ListDictType ¶
func (s *DictTypeService) ListDictType(ctx context.Context, req *pb.ListDictTypeRequest) (*pb.ListDictTypeReply, error)
func (*DictTypeService) UpdateDictType ¶
func (s *DictTypeService) UpdateDictType(ctx context.Context, req *pb.UpdateDictTypeRequest) (*pb.UpdateDictTypeReply, error)
type LogService ¶
type LogService struct {
// contains filtered or unexported fields
}
func NewLogService ¶
func NewLogService(rc *biz.SysLogCase) *LogService
type MenusService ¶
type MenusService struct { pb.UnimplementedMenusServer // contains filtered or unexported fields }
func NewMenusService ¶
func NewMenusService(menuUseCase *biz.SysMenuUseCase, roleMenuUseCase *biz.SysRoleMenuUseCase, logger log.Logger) *MenusService
func (*MenusService) CreateMenus ¶
func (s *MenusService) CreateMenus(ctx context.Context, req *pb.CreateMenusRequest) (*pb.CreateMenusReply, error)
func (*MenusService) DeleteMenus ¶
func (s *MenusService) DeleteMenus(ctx context.Context, req *pb.DeleteMenusRequest) (*pb.DeleteMenusReply, error)
func (*MenusService) GetMenus ¶
func (s *MenusService) GetMenus(ctx context.Context, req *pb.GetMenusRequest) (*pb.GetMenusReply, error)
func (*MenusService) GetMenusTree ¶
func (s *MenusService) GetMenusTree(ctx context.Context, req *pb.GetMenusTreeRequest) (*pb.GetMenusTreeReply, error)
func (*MenusService) ListMenus ¶
func (s *MenusService) ListMenus(ctx context.Context, req *pb.ListMenusRequest) (*pb.ListMenusReply, error)
func (*MenusService) RoleMenuTreeSelect ¶
func (s *MenusService) RoleMenuTreeSelect(ctx context.Context, req *pb.RoleMenuTreeSelectRequest) (*pb.RoleMenuTreeSelectReply, error)
func (*MenusService) UpdateMenus ¶
func (s *MenusService) UpdateMenus(ctx context.Context, req *pb.UpdateMenusRequest) (*pb.UpdateMenusReply, error)
type PostService ¶
type PostService struct { pb.UnimplementedSysPostServer // contains filtered or unexported fields }
func NewPostService ¶
func NewPostService(pc *biz.SysPostUseCase, logger log.Logger) *PostService
func (*PostService) CreatePost ¶
func (s *PostService) CreatePost(ctx context.Context, req *pb.CreatePostRequest) (*pb.CreatePostReply, error)
func (*PostService) DeletePost ¶
func (s *PostService) DeletePost(ctx context.Context, req *pb.DeletePostRequest) (*pb.DeletePostReply, error)
func (*PostService) ListPost ¶
func (s *PostService) ListPost(ctx context.Context, req *pb.ListPostRequest) (*pb.ListPostReply, error)
func (*PostService) UpdatePost ¶
func (s *PostService) UpdatePost(ctx context.Context, req *pb.UpdatePostRequest) (*pb.UpdatePostReply, error)
type RolesService ¶
type RolesService struct { pb.UnimplementedRolesServer // contains filtered or unexported fields }
func NewRolesService ¶
func NewRolesService(rc *biz.SysRoleUseCase, logger log.Logger, casbin *biz.CasbinRuleUseCase) *RolesService
func (*RolesService) ChangeRoleStatus ¶
func (r *RolesService) ChangeRoleStatus(ctx context.Context, req *pb.ChangeRoleStatusRequest) (*pb.ChangeRoleStatusReply, error)
func (*RolesService) CreateRoles ¶
func (r *RolesService) CreateRoles(ctx context.Context, req *pb.CreateRolesRequest) (*pb.CreateRolesReply, error)
func (*RolesService) DataScope ¶
func (r *RolesService) DataScope(ctx context.Context, req *pb.DataScopeRequest) (*pb.DataScopeReply, error)
func (*RolesService) DeleteRoles ¶
func (r *RolesService) DeleteRoles(ctx context.Context, req *pb.DeleteRolesRequest) (*pb.DeleteRolesReply, error)
func (*RolesService) GetRoles ¶
func (r *RolesService) GetRoles(ctx context.Context, req *pb.GetRolesRequest) (*pb.GetRolesReply, error)
func (*RolesService) ListRoles ¶
func (r *RolesService) ListRoles(ctx context.Context, req *pb.ListRolesRequest) (*pb.ListRolesReply, error)
func (*RolesService) Roles ¶
func (r *RolesService) Roles(ctx context.Context, req *pb.ListRolesRequest) (*pb.ListRolesReply, error)
func (*RolesService) UpdateRoles ¶
func (r *RolesService) UpdateRoles(ctx context.Context, req *pb.UpdateRolesRequest) (*pb.UpdateRolesReply, error)
type SysuserService ¶
type SysuserService struct { pb.UnimplementedSysuserServer // contains filtered or unexported fields }
func NewSysuserService ¶
func NewSysuserService(serverConf *conf.Server, userCase *biz.SysUserUseCase, authCase *biz.AuthUseCase, roleCase *biz.SysRoleUseCase, roleMenuCase *biz.SysRoleMenuUseCase, postCase *biz.SysPostUseCase, deptCase *biz.SysDeptUseCase, logger log.Logger) *SysuserService
func (*SysuserService) Auth ¶
func (s *SysuserService) Auth(ctx context.Context, req *pb.AuthRequest) (*pb.AuthReply, error)
Auth 用户权限信息
func (*SysuserService) ChangeStatus ¶
func (s *SysuserService) ChangeStatus(ctx context.Context, req *pb.ChangeStatusRequest) (*pb.ChangeStatusReply, error)
func (*SysuserService) CreateSysuser ¶
func (s *SysuserService) CreateSysuser(ctx context.Context, req *pb.CreateSysuserRequest) (*pb.CreateSysuserReply, error)
func (*SysuserService) DeleteSysuser ¶
func (s *SysuserService) DeleteSysuser(ctx context.Context, req *pb.DeleteSysuserRequest) (*pb.DeleteSysuserReply, error)
func (*SysuserService) GetCaptcha ¶
func (s *SysuserService) GetCaptcha(context.Context, *pb.GetCaptchaRequest) (*pb.GetCaptchaReply, error)
func (*SysuserService) GetPostInit ¶
func (s *SysuserService) GetPostInit(ctx context.Context, req *pb.GetPostInitRequest) (*pb.GetPostInitReply, error)
GetPostInit 获取初始化角色岗位信息
func (*SysuserService) GetSysuser ¶
func (s *SysuserService) GetSysuser(ctx context.Context, req *pb.GetSysuserRequest) (*pb.GetSysuserReply, error)
func (*SysuserService) GetUserGoogleSecret ¶
func (s *SysuserService) GetUserGoogleSecret(ctx context.Context, req *pb.GetUserGoogleSecretRequest) (*pb.GetUserGoogleSecretReply, error)
func (*SysuserService) GetUserRolePost ¶
func (s *SysuserService) GetUserRolePost(ctx context.Context, req *pb.GetUserRolePostRequest) (*pb.GetUserRolePostReply, error)
GetUserRolePost 获取用户角色岗位信息
func (*SysuserService) ListSysuser ¶
func (s *SysuserService) ListSysuser(ctx context.Context, req *pb.ListSysuserRequest) (*pb.ListSysuserReply, error)
func (*SysuserService) Login ¶
func (s *SysuserService) Login(ctx context.Context, req *pb.LoginRequest) (*pb.LoginReply, error)
func (*SysuserService) Logout ¶
func (s *SysuserService) Logout(ctx context.Context, req *pb.LogoutRequest) (*pb.LogoutReply, error)
func (*SysuserService) UpdateAvatar ¶
func (s *SysuserService) UpdateAvatar(ctx context.Context) error
func (*SysuserService) UpdatePassword ¶
func (s *SysuserService) UpdatePassword(ctx context.Context, req *pb.UpdatePasswordRequest) (*pb.UpdatePasswordReply, error)
func (*SysuserService) UpdateSysuser ¶
func (s *SysuserService) UpdateSysuser(ctx context.Context, req *pb.UpdateSysuserRequest) (*pb.UpdateSysuserReply, error)
func (*SysuserService) UploadFile ¶
func (s *SysuserService) UploadFile(ctx context.Context) (string, error)
Click to show internal directories.
Click to hide internal directories.