Documentation ¶
Index ¶
- type IRoleRepo
- type ISysUserRepo
- type RoleService
- func (s *RoleService) CreateRole(role *model.CreateSysRole, ctx *gin.Context) error
- func (s *RoleService) DeleteRoleById(roleId uint, ctx *gin.Context) error
- func (s *RoleService) DeleteRoleByIds(roles []uint, ctx *gin.Context) error
- func (s *RoleService) GetRoleList(req *model.SysRoleQueryPage, ctx *gin.Context) ([]*model.SysRole, error)
- func (s *RoleService) InitRole() error
- func (s *RoleService) UpdateRole(role *model.SysRole, ctx *gin.Context) error
- type SysUserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISysUserRepo ¶
type RoleService ¶
type RoleService struct {
// contains filtered or unexported fields
}
func NewRoleService ¶
func (*RoleService) CreateRole ¶
func (s *RoleService) CreateRole(role *model.CreateSysRole, ctx *gin.Context) error
func (*RoleService) DeleteRoleById ¶
func (s *RoleService) DeleteRoleById(roleId uint, ctx *gin.Context) error
func (*RoleService) DeleteRoleByIds ¶
func (s *RoleService) DeleteRoleByIds(roles []uint, ctx *gin.Context) error
func (*RoleService) GetRoleList ¶
func (s *RoleService) GetRoleList(req *model.SysRoleQueryPage, ctx *gin.Context) ([]*model.SysRole, error)
func (*RoleService) InitRole ¶
func (s *RoleService) InitRole() error
func (*RoleService) UpdateRole ¶
type SysUserService ¶
type SysUserService struct {
// contains filtered or unexported fields
}
func NewSysUserService ¶
func NewSysUserService(repo ISysUserRepo, rdb redisx.IRedis, conf *config.Config, logger log.Logger) *SysUserService
func (*SysUserService) InitSysUser ¶
func (s *SysUserService) InitSysUser() error
Click to show internal directories.
Click to hide internal directories.