Documentation ¶
Index ¶
- type BaseOpenService
- type BaseSysDepartmentService
- type BaseSysLoginService
- func (*BaseSysLoginService) Captcha(req *v1.BaseOpenCaptchaReq) (interface{}, error)
- func (*BaseSysLoginService) GenerateToken(ctx context.Context, user *model.BaseSysUser, roleIds []uint, exprire uint, ...) (token string)
- func (s *BaseSysLoginService) Login(ctx context.Context, req *v1.BaseOpenLoginReq) (data interface{}, err error)
- func (*BaseSysLoginService) Logout(ctx context.Context) (err error)
- type BaseSysMenuService
- type BaseSysParamService
- type BaseSysPermsService
- type BaseSysRoleService
- type BaseSysUserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseOpenService ¶ added in v0.0.18
func NewBaseOpenService ¶ added in v0.0.18
func NewBaseOpenService() *BaseOpenService
type BaseSysDepartmentService ¶
func NewBaseSysDepartmentService ¶
func NewBaseSysDepartmentService() *BaseSysDepartmentService
NewBaseSysDepartmentService 创建一个BaseSysDepartmentService实例
func (*BaseSysDepartmentService) GetByRoleIds ¶
func (s *BaseSysDepartmentService) GetByRoleIds(roleIds []uint, isAdmin bool) (res []uint)
GetByRoleIds 获取部门
type BaseSysLoginService ¶
func NewBaseSysLoginService ¶
func NewBaseSysLoginService() *BaseSysLoginService
NewBaseSysLoginService 创建一个新的BaseSysLoginService
func (*BaseSysLoginService) Captcha ¶
func (*BaseSysLoginService) Captcha(req *v1.BaseOpenCaptchaReq) (interface{}, error)
Captcha 图形验证码
func (*BaseSysLoginService) GenerateToken ¶
func (*BaseSysLoginService) GenerateToken(ctx context.Context, user *model.BaseSysUser, roleIds []uint, exprire uint, isRefresh bool) (token string)
generateToken 生成token
func (*BaseSysLoginService) Login ¶
func (s *BaseSysLoginService) Login(ctx context.Context, req *v1.BaseOpenLoginReq) (data interface{}, err error)
login
type BaseSysMenuService ¶
func NewBaseSysMenuService ¶
func NewBaseSysMenuService() *BaseSysMenuService
NewBaseSysMenuService 创建一个BaseSysMenuService实例
func (*BaseSysMenuService) GetMenus ¶
func (s *BaseSysMenuService) GetMenus(roleIds []uint, isAdmin bool) (result gdb.Result)
GetMenus 获取菜单
func (*BaseSysMenuService) GetPerms ¶
func (s *BaseSysMenuService) GetPerms(roleIds []uint) []string
GetPerms 获取菜单的权限
func (*BaseSysMenuService) ModifyAfter ¶ added in v0.1.2
func (s *BaseSysMenuService) ModifyAfter(ctx context.Context, method string, param g.MapStrAny) (err error)
ModifyAfter 修改后
type BaseSysParamService ¶
func NewBaseSysParamService ¶
func NewBaseSysParamService() *BaseSysParamService
type BaseSysPermsService ¶
type BaseSysPermsService struct { }
func NewBaseSysPermsService ¶
func NewBaseSysPermsService() *BaseSysPermsService
func (*BaseSysPermsService) Permmenu ¶
func (c *BaseSysPermsService) Permmenu(ctx context.Context, roleIds []uint) (res interface{})
permmenu 方法
func (*BaseSysPermsService) RefreshPerms ¶ added in v0.0.17
func (c *BaseSysPermsService) RefreshPerms(ctx context.Context, userId uint) (err error)
refreshPerms(userId)
type BaseSysRoleService ¶
func NewBaseSysRoleService ¶
func NewBaseSysRoleService() *BaseSysRoleService
NewBaseSysRoleService create a new BaseSysRoleService
func (*BaseSysRoleService) GetByUser ¶
func (s *BaseSysRoleService) GetByUser(userId uint) []uint
GetByUser get array roleId by userId
func (*BaseSysRoleService) ModifyAfter ¶ added in v0.0.17
func (s *BaseSysRoleService) ModifyAfter(ctx context.Context, method string, param g.MapStrAny) (err error)
ModifyAfter modify after
func (*BaseSysRoleService) ServiceInfo ¶ added in v0.0.17
func (s *BaseSysRoleService) ServiceInfo(ctx context.Context, req *cool.InfoReq) (data interface{}, err error)
BaseSysRoleService Info 方法重构
type BaseSysUserService ¶
func NewBaseSysUserService ¶
func NewBaseSysUserService() *BaseSysUserService
NewBaseSysUserService 创建一个新的BaseSysUserService实例
func (*BaseSysUserService) Person ¶
func (s *BaseSysUserService) Person(userId uint) (res gdb.Record, err error)
Person 方法 返回不带密码的用户信息
func (*BaseSysUserService) PersonUpdate ¶ added in v0.1.4
func (s *BaseSysUserService) PersonUpdate(ctx g.Ctx) (err error)
PersonUpdate 方法 更新用户信息
func (*BaseSysUserService) ServiceInfo ¶ added in v0.0.18
func (s *BaseSysUserService) ServiceInfo(ctx g.Ctx, req *cool.InfoReq) (data interface{}, err error)
ServiceInfo 方法 返回服务信息
Click to show internal directories.
Click to hide internal directories.