Documentation ¶
Index ¶
- type DeptSvc
- type DictSvc
- type IJob
- type JobSvc
- type ResourceSvc
- type RoleSvc
- type ServerSvc
- type UpgradeSvc
- type UserSvc
- func (s *UserSvc) ListUserRoles(id string) ([]int64, error)
- func (s *UserSvc) ListUsers(conds map[string]any) ([]mdl.User, int64, error)
- func (s *UserSvc) Login(userName, password string) (*mdl.User, error)
- func (s *UserSvc) RemoveUsers(ids []string) error
- func (s *UserSvc) SaveUser(user mdl.User) error
- func (s *UserSvc) SaveUserRoles(id string, roles []int64) error
- type VisitSvc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IJob ¶ added in v1.0.0
type IJob interface {
cron.Job
SetParams(params string) // 设置参数集合
}
作业接口
type JobSvc ¶ added in v1.0.0
type JobSvc struct { *svc.Svc[mdl.Job] Jobs map[string]IJob // 作业集合 // contains filtered or unexported fields }
作业服务
type ResourceSvc ¶
资源服务
func NewResourceSvc ¶ added in v1.0.0
func NewResourceSvc(i *do.Injector) (*ResourceSvc, error)
构造函数
func (*ResourceSvc) ListMenus ¶ added in v1.0.0
func (s *ResourceSvc) ListMenus(userId string) ([]mdl.Resource, error)
列举菜单集合
func (*ResourceSvc) ListResources ¶ added in v1.0.0
列举资源集合
type UserSvc ¶
type UserSvc struct { *svc.Svc[mdl.User] Perm *casbin.SyncedEnforcer // 权限 SignedKey []byte // 签名密钥 }
用户服务
func (*UserSvc) ListUserRoles ¶ added in v1.0.0
列举用户角色集合
func (*UserSvc) RemoveUsers ¶ added in v1.0.0
移除用户集合
Click to show internal directories.
Click to hide internal directories.