Documentation ¶
Index ¶
- type BaseOpenService
- type BaseSysConfService
- type BaseSysDepartmentService
- type BaseSysLogService
- type BaseSysLoginService
- func (*BaseSysLoginService) Captcha(req *v1.BaseOpenCaptchaReq) (interface{}, error)
- func (s *BaseSysLoginService) Login(ctx context.Context, req *v1.BaseOpenLoginReq) (result *TokenResult, err error)
- func (*BaseSysLoginService) Logout(ctx context.Context) (err error)
- func (s *BaseSysLoginService) RefreshToken(ctx context.Context, token string) (result *TokenResult, err error)
- type BaseSysMenuService
- func (s *BaseSysMenuService) GetMenus(roleIds []string, isAdmin bool) (result gdb.Result)
- func (s *BaseSysMenuService) GetPerms(roleIds []string) []string
- func (s *BaseSysMenuService) ModifyAfter(ctx context.Context, method string, param g.MapStrAny) (err error)
- func (s *BaseSysMenuService) ServiceAdd(ctx context.Context, req *cool.AddReq) (data interface{}, err error)
- type BaseSysParamService
- type BaseSysPermsService
- type BaseSysRoleService
- type BaseSysUserService
- func (s *BaseSysUserService) ModifyAfter(ctx context.Context, method string, param g.MapStrAny) (err error)
- func (s *BaseSysUserService) ModifyBefore(ctx context.Context, method string, param g.MapStrAny) (err error)
- func (s *BaseSysUserService) Move(ctx g.Ctx) (err error)
- func (s *BaseSysUserService) Person(userId uint) (res gdb.Record, err error)
- func (s *BaseSysUserService) ServiceAdd(ctx context.Context, req *cool.AddReq) (data interface{}, err error)
- func (s *BaseSysUserService) ServiceInfo(ctx g.Ctx, req *cool.InfoReq) (data interface{}, err error)
- func (s *BaseSysUserService) ServiceUpdate(ctx context.Context, req *cool.UpdateReq) (data interface{}, err error)
- type TokenResult
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 BaseSysConfService ¶ added in v0.1.6
func NewBaseSysConfService ¶ added in v0.1.6
func NewBaseSysConfService() *BaseSysConfService
func (*BaseSysConfService) GetValue ¶ added in v0.1.6
func (s *BaseSysConfService) GetValue(cKey string) string
GetValue 获取配置值
func (*BaseSysConfService) UpdateValue ¶ added in v0.1.6
func (s *BaseSysConfService) UpdateValue(cKey, cValue string) error
UpdateValue 更新配置值
type BaseSysDepartmentService ¶
func NewBaseSysDepartmentService ¶
func NewBaseSysDepartmentService() *BaseSysDepartmentService
NewBaseSysDepartmentService 创建一个BaseSysDepartmentService实例
func (*BaseSysDepartmentService) GetByRoleIds ¶
func (s *BaseSysDepartmentService) GetByRoleIds(roleIds []string, isAdmin bool) (res []uint)
GetByRoleIds 获取部门
type BaseSysLogService ¶ added in v0.1.6
func NewBaseSysLogService ¶ added in v0.1.6
func NewBaseSysLogService() *BaseSysLogService
func (*BaseSysLogService) Clear ¶ added in v0.1.6
func (s *BaseSysLogService) Clear(isAll bool) (err error)
Clear 清除日志
func (*BaseSysLogService) Record ¶ added in v0.1.6
func (s *BaseSysLogService) Record(ctx g.Ctx)
Record 记录日志
type BaseSysLoginService ¶
func NewBaseSysLoginService ¶
func NewBaseSysLoginService() *BaseSysLoginService
NewBaseSysLoginService 创建一个新的BaseSysLoginService
func (*BaseSysLoginService) Captcha ¶
func (*BaseSysLoginService) Captcha(req *v1.BaseOpenCaptchaReq) (interface{}, error)
Captcha 图形验证码
func (*BaseSysLoginService) Login ¶
func (s *BaseSysLoginService) Login(ctx context.Context, req *v1.BaseOpenLoginReq) (result *TokenResult, err error)
Login 登录
func (*BaseSysLoginService) Logout ¶ added in v0.0.16
func (*BaseSysLoginService) Logout(ctx context.Context) (err error)
Logout 退出登录
func (*BaseSysLoginService) RefreshToken ¶ added in v0.2.1
func (s *BaseSysLoginService) RefreshToken(ctx context.Context, token string) (result *TokenResult, err error)
RefreshToken 刷新token
type BaseSysMenuService ¶
func NewBaseSysMenuService ¶
func NewBaseSysMenuService() *BaseSysMenuService
NewBaseSysMenuService 创建一个BaseSysMenuService实例
func (*BaseSysMenuService) GetMenus ¶
func (s *BaseSysMenuService) GetMenus(roleIds []string, isAdmin bool) (result gdb.Result)
GetMenus 获取菜单
func (*BaseSysMenuService) GetPerms ¶
func (s *BaseSysMenuService) GetPerms(roleIds []string) []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 修改后
func (*BaseSysMenuService) ServiceAdd ¶ added in v1.0.10
func (s *BaseSysMenuService) ServiceAdd(ctx context.Context, req *cool.AddReq) (data interface{}, err error)
ServiceAdd 添加
type BaseSysParamService ¶
func NewBaseSysParamService ¶
func NewBaseSysParamService() *BaseSysParamService
func (*BaseSysParamService) HtmlByKey ¶ added in v0.2.1
func (s *BaseSysParamService) HtmlByKey(key string) string
HtmlByKey 根据配置参数key获取网页内容(富文本)
func (*BaseSysParamService) ModifyAfter ¶ added in v0.2.1
func (s *BaseSysParamService) ModifyAfter(ctx context.Context, method string, param g.MapStrAny) (err error)
ModifyAfter 修改后
type BaseSysPermsService ¶
type BaseSysPermsService struct { }
func NewBaseSysPermsService ¶
func NewBaseSysPermsService() *BaseSysPermsService
func (*BaseSysPermsService) Permmenu ¶
func (c *BaseSysPermsService) Permmenu(ctx context.Context, roleIds []string) (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) []string
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) ModifyAfter ¶ added in v0.3.2
func (*BaseSysUserService) ModifyBefore ¶ added in v0.3.2
func (*BaseSysUserService) Move ¶ added in v0.3.2
func (s *BaseSysUserService) Move(ctx g.Ctx) (err error)
Move 移动用户部门
func (*BaseSysUserService) Person ¶
func (s *BaseSysUserService) Person(userId uint) (res gdb.Record, err error)
Person 方法 返回不带密码的用户信息
func (*BaseSysUserService) ServiceAdd ¶ added in v1.0.14
func (s *BaseSysUserService) ServiceAdd(ctx context.Context, req *cool.AddReq) (data interface{}, err error)
ServiceAdd 方法 添加用户
func (*BaseSysUserService) ServiceInfo ¶ added in v0.0.18
func (s *BaseSysUserService) ServiceInfo(ctx g.Ctx, req *cool.InfoReq) (data interface{}, err error)
ServiceInfo 方法 返回服务信息
func (*BaseSysUserService) ServiceUpdate ¶ added in v0.3.2
func (s *BaseSysUserService) ServiceUpdate(ctx context.Context, req *cool.UpdateReq) (data interface{}, err error)
ServiceUpdate 方法 更新用户信息