Documentation ¶
Index ¶
- type Service
- func (s *Service) AddRole(name string, titleMap map[string]interface{}, ...) (map[string]interface{}, error)
- func (s *Service) AddRole2(className string, classPK int64, name string, titleMap map[string]interface{}, ...) (map[string]interface{}, error)
- func (s *Service) AddUserRoles(userId int64, roleIds []interface{}) error
- func (s *Service) DeleteRole(roleId int64) error
- func (s *Service) GetGroupRoles(groupId int64) ([]interface{}, error)
- func (s *Service) GetRole(roleId int64) (map[string]interface{}, error)
- func (s *Service) GetRole2(companyId int64, name string) (map[string]interface{}, error)
- func (s *Service) GetUserGroupGroupRoles(userId int64, groupId int64) ([]interface{}, error)
- func (s *Service) GetUserGroupRoles(userId int64, groupId int64) ([]interface{}, error)
- func (s *Service) GetUserRelatedRoles(userId int64, groups []interface{}) ([]interface{}, error)
- func (s *Service) GetUserRoles(userId int64) ([]interface{}, error)
- func (s *Service) HasUserRole(userId int64, companyId int64, name string, inherited bool) (bool, error)
- func (s *Service) HasUserRoles(userId int64, companyId int64, names []interface{}, inherited bool) (bool, error)
- func (s *Service) UnsetUserRoles(userId int64, roleIds []interface{}) error
- func (s *Service) UpdateRole(roleId int64, name string, titleMap map[string]interface{}, ...) (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) AddUserRoles ¶
func (*Service) DeleteRole ¶
func (*Service) GetGroupRoles ¶
func (*Service) GetUserGroupGroupRoles ¶
func (*Service) GetUserGroupRoles ¶
func (*Service) GetUserRelatedRoles ¶
func (*Service) GetUserRoles ¶
func (*Service) HasUserRole ¶
func (*Service) HasUserRoles ¶
func (*Service) UnsetUserRoles ¶
Click to show internal directories.
Click to hide internal directories.