Documentation ¶
Index ¶
- func AdminEps() (eps interface{})
- type BaseSysDepartmentService
- type BaseSysLoginService
- func (*BaseSysLoginService) Captcha(req *v1.BaseOpenCaptchaReq) (interface{}, error)
- func (*BaseSysLoginService) GenerateToken(ctx context.Context, user *model.BaseSysUser, roleIds []int, exprire int64, ...) (token string)
- func (s *BaseSysLoginService) Login(ctx context.Context, req *v1.BaseOpenLoginReq) (data interface{}, err error)
- type BaseSysMenuService
- type BaseSysParamService
- type BaseSysPermsService
- type BaseSysRoleService
- type BaseSysUserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseSysDepartmentService ¶
func NewBaseSysDepartmentService ¶
func NewBaseSysDepartmentService() *BaseSysDepartmentService
NewBaseSysDepartmentService 创建一个BaseSysDepartmentService实例
func (*BaseSysDepartmentService) GetByRoleIds ¶
func (s *BaseSysDepartmentService) GetByRoleIds(roleIds []int, isAdmin bool) (res []int64)
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 []int, exprire int64, 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 []int, isAdmin bool) (result gdb.Result)
GetMenus 获取菜单
func (*BaseSysMenuService) GetPerms ¶
func (s *BaseSysMenuService) GetPerms(roleIds []int) []string
GetPerms 获取菜单的权限
type BaseSysParamService ¶
func NewBaseSysParamService ¶
func NewBaseSysParamService() *BaseSysParamService
type BaseSysPermsService ¶
type BaseSysPermsService struct { }
func NewBaseSysPermsService ¶
func NewBaseSysPermsService() *BaseSysPermsService
type BaseSysRoleService ¶
func NewBaseSysRoleService ¶
func NewBaseSysRoleService() *BaseSysRoleService
NewBaseSysRoleService create a new BaseSysRoleService
func (*BaseSysRoleService) GetByUser ¶
func (s *BaseSysRoleService) GetByUser(userId uint) []int
GetByUser get array roleId by userId
type BaseSysUserService ¶
func NewBaseSysUserService ¶
func NewBaseSysUserService() *BaseSysUserService
NewBaseSysUserService 创建一个新的BaseSysUserService实例
Click to show internal directories.
Click to hide internal directories.