Documentation ¶
Index ¶
- Variables
- type GroupService
- type PermissionService
- type ResourceService
- type RoleService
- type UserProfileService
- type UserService
- func (this *UserService) Auth(userName string, password string) (*entity.User, error)
- func (this *UserService) EncryptPassword(user *entity.User)
- func (this *UserService) FindByRoleId(roleId string) ([]*entity.User, error)
- func (this *UserService) GetSeqName() string
- func (this *UserService) GetUser(userName string) *entity.User
- func (this *UserService) Login(userName string, password string) (*entity.User, error)
- func (this *UserService) Logout(userName string)
- func (this *UserService) NewEntities(data []byte) (interface{}, error)
- func (this *UserService) NewEntity(data []byte) (interface{}, error)
- func (this *UserService) Regist(user *entity.User) (*entity.User, error)
- func (this *UserService) UpdateStatus(userName string, status string)
Constants ¶
This section is empty.
Variables ¶
View Source
var MemCache = cache.NewMemCache("rbac", 60, 10)
Functions ¶
This section is empty.
Types ¶
type GroupService ¶
type GroupService struct {
service.OrmBaseService
}
* 同步表结构,服务继承基本服务的方法
func GetGroupService ¶
func GetGroupService() *GroupService
func (*GroupService) FindRolesByUserId ¶ added in v0.0.16
func (this *GroupService) FindRolesByUserId(userId string) (string, error)
func (*GroupService) GetSeqName ¶
func (this *GroupService) GetSeqName() string
func (*GroupService) NewEntities ¶
func (this *GroupService) NewEntities(data []byte) (interface{}, error)
func (*GroupService) NewEntity ¶
func (this *GroupService) NewEntity(data []byte) (interface{}, error)
type PermissionService ¶
type PermissionService struct {
service.OrmBaseService
}
* 同步表结构,服务继承基本服务的方法
func GetPermissionService ¶
func GetPermissionService() *PermissionService
func (*PermissionService) GetSeqName ¶
func (this *PermissionService) GetSeqName() string
func (*PermissionService) NewEntities ¶
func (this *PermissionService) NewEntities(data []byte) (interface{}, error)
func (*PermissionService) NewEntity ¶
func (this *PermissionService) NewEntity(data []byte) (interface{}, error)
type ResourceService ¶
type ResourceService struct {
service.OrmBaseService
}
* 同步表结构,服务继承基本服务的方法
func GetResourceService ¶
func GetResourceService() *ResourceService
func (*ResourceService) GetSeqName ¶
func (this *ResourceService) GetSeqName() string
func (*ResourceService) NewEntities ¶
func (this *ResourceService) NewEntities(data []byte) (interface{}, error)
func (*ResourceService) NewEntity ¶
func (this *ResourceService) NewEntity(data []byte) (interface{}, error)
type RoleService ¶
type RoleService struct {
service.OrmBaseService
}
* 同步表结构,服务继承基本服务的方法
func GetRoleService ¶
func GetRoleService() *RoleService
func (*RoleService) GetSeqName ¶
func (this *RoleService) GetSeqName() string
func (*RoleService) NewEntities ¶
func (this *RoleService) NewEntities(data []byte) (interface{}, error)
func (*RoleService) NewEntity ¶
func (this *RoleService) NewEntity(data []byte) (interface{}, error)
type UserProfileService ¶
type UserProfileService struct {
service.OrmBaseService
}
* 同步表结构,服务继承基本服务的方法
func GetUserProfileService ¶
func GetUserProfileService() *UserProfileService
func (*UserProfileService) GetSeqName ¶
func (this *UserProfileService) GetSeqName() string
func (*UserProfileService) NewEntities ¶
func (this *UserProfileService) NewEntities(data []byte) (interface{}, error)
func (*UserProfileService) NewEntity ¶
func (this *UserProfileService) NewEntity(data []byte) (interface{}, error)
type UserService ¶
type UserService struct {
service.OrmBaseService
}
* 同步表结构,服务继承基本服务的方法
func GetUserService ¶
func GetUserService() *UserService
func (*UserService) EncryptPassword ¶
func (this *UserService) EncryptPassword(user *entity.User)
func (*UserService) FindByRoleId ¶ added in v0.0.16
func (this *UserService) FindByRoleId(roleId string) ([]*entity.User, error)
func (*UserService) GetSeqName ¶
func (this *UserService) GetSeqName() string
func (*UserService) Logout ¶
func (this *UserService) Logout(userName string)
func (*UserService) NewEntities ¶
func (this *UserService) NewEntities(data []byte) (interface{}, error)
func (*UserService) NewEntity ¶
func (this *UserService) NewEntity(data []byte) (interface{}, error)
func (*UserService) UpdateStatus ¶
func (this *UserService) UpdateStatus(userName string, status string)
Click to show internal directories.
Click to hide internal directories.