service

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminEps

func AdminEps() (eps interface{})

返回AdminEPS信息,缓存部分还未写完

Types

type BaseSysDepartmentService

type BaseSysDepartmentService struct {
	*cool.Service
}

func NewBaseSysDepartmentService

func NewBaseSysDepartmentService() *BaseSysDepartmentService

NewBaseSysDepartmentService 创建一个BaseSysDepartmentService实例

func (*BaseSysDepartmentService) GetByRoleIds

func (s *BaseSysDepartmentService) GetByRoleIds(roleIds []int, isAdmin bool) (res []int64)

GetByRoleIds 获取部门

type BaseSysLoginService

type BaseSysLoginService struct {
	*cool.Service
}

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

type BaseSysMenuService struct {
	*cool.Service
}

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

type BaseSysParamService struct {
	*cool.Service
}

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 []int) (res interface{})

permmenu 方法

type BaseSysRoleService

type BaseSysRoleService struct {
	*cool.Service
}

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

type BaseSysUserService struct {
	*cool.Service
}

func NewBaseSysUserService

func NewBaseSysUserService() *BaseSysUserService

NewBaseSysUserService 创建一个新的BaseSysUserService实例

func (*BaseSysUserService) Person

func (s *BaseSysUserService) Person(userId uint) (res gdb.Record, err error)

Person 方法 返回不带密码的用户信息

Jump to

Keyboard shortcuts

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