Versions in this module Expand all Collapse all v0 v0.1.2 Aug 25, 2022 Changes in this version + const RoleGroupMGR + const RoleRoleMGR + const RoleTokenMGR + const RoleUserMGR + type GroupBIZ struct + func NewGroupBIZ(config *wa.Config, groupDAO wa.GroupDAO) *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 struct + func NewRoleBIZ(moduleMGR *wa.ModuleMGR, roleDAO wa.RoleDAO, userDAO wa.UserDAO) *RoleBIZ + func (a *RoleBIZ) Get(session wa.Session, mcode string, uid wa.ID) ([]int, error) + func (a *RoleBIZ) GetModules(session wa.Session) ([]*wa.Module, error) + func (a *RoleBIZ) Set(session wa.Session, mcode string, uid wa.ID, roles []int) error + type UserBIZ struct + func NewUserBIZ(config *wa.Config, sessionMGR *wa.SessionMGR, userDAO wa.UserDAO, ...) *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