Documentation ¶
Index ¶
- Constants
- type GroupBIZ
- func (a *GroupBIZ) Create(session wa.Session, group *wa.Group) (*wa.Group, error)
- func (a *GroupBIZ) Delete(session wa.Session, gid wa.ID) error
- func (a *GroupBIZ) Get(session wa.Session, gid wa.ID) (*wa.Group, error)
- func (a *GroupBIZ) GetExtra() []string
- func (a *GroupBIZ) GetMainGroup(session wa.Session, gid wa.ID) (*wa.Group, error)
- func (a *GroupBIZ) Query(session wa.Session, gid wa.ID, keyword string) ([]*wa.Group, error)
- func (a *GroupBIZ) Update(session wa.Session, group *wa.Group) error
- type RoleBIZ
- type UserBIZ
- func (a *UserBIZ) Create(session wa.Session, user *wa.User) (*wa.User, error)
- func (a *UserBIZ) Delete(session wa.Session, uid wa.ID) error
- func (a *UserBIZ) Get(session wa.Session, uid wa.ID) (*wa.User, error)
- func (a *UserBIZ) GetExtra() []string
- func (a *UserBIZ) Query(session wa.Session, gid wa.ID, keyword string) ([]*wa.User, error)
- func (a *UserBIZ) ResetPassword(session wa.Session, uid wa.ID) (string, error)
- func (a *UserBIZ) Update(session wa.Session, user *wa.User) error
Constants ¶
View Source
const ( RoleRoleMGR wa.Role = 1 << iota // 角色管理员 RoleGroupMGR // 组别管理员 RoleUserMGR // 用户管理员 RoleTokenMGR // 令牌管理员 )
Roles.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupBIZ ¶
type GroupBIZ struct {
// contains filtered or unexported fields
}
GroupBIZ represents the group BIZ.
func NewGroupBIZ ¶
NewGroupBIZ creates a new group BIZ.
func (*GroupBIZ) GetMainGroup ¶
GetMainGroup get the main group.
type RoleBIZ ¶
type RoleBIZ struct {
// contains filtered or unexported fields
}
RoleBIZ represents the role BIZ.
func NewRoleBIZ ¶
NewRoleBIZ creates a new role BIZ.
func (*RoleBIZ) GetModules ¶
GetModules returns the modules.
type UserBIZ ¶
type UserBIZ struct {
// contains filtered or unexported fields
}
UserBIZ represents the user BIZ.
func NewUserBIZ ¶
func NewUserBIZ(config *wa.Config, sessionMGR *wa.SessionMGR, userDAO wa.UserDAO, roleDAO wa.RoleDAO) *UserBIZ
NewUserBIZ creates a new user BIZ.
func (*UserBIZ) ResetPassword ¶
ResetPassword resets the user password.
Click to show internal directories.
Click to hide internal directories.