Documentation
¶
Index ¶
- type Service
- func (s *Service) AddAssociation(c context.Context, arg *model.Association) (err error)
- func (s *Service) AddBusiness(c context.Context, b *model.Business) (err error)
- func (s *Service) AddCateSecExt(c context.Context, arg *model.CateSecExt) (err error)
- func (s *Service) AddControl(c context.Context, tc *model.TagControl) (err error)
- func (s *Service) AddRankGroup(c context.Context, g *model.RankGroup, auths []int64) (id int64, err error)
- func (s *Service) AddRankUser(c context.Context, uid int64) (err error)
- func (s *Service) AddReason(c context.Context, arg *model.Reason) (err error)
- func (s *Service) AddRole(c context.Context, br *model.BusinessRole) (err error)
- func (s *Service) AddTag(c context.Context, t *model.Tag) (err error)
- func (s *Service) AddType(c context.Context, tt *model.TagType) (err error)
- func (s *Service) AddUser(c context.Context, bur *model.BusinessUserRole) (err error)
- func (s *Service) AllRoles(c context.Context, pid, uid int64) (res []*model.UserRole, err error)
- func (s *Service) AssociationList(c context.Context, e *model.Association) (res []*model.Association, err error)
- func (s *Service) AttrList(c context.Context, tba *model.TagBusinessAttr) (res *model.TagBusinessAttr, err error)
- func (s *Service) AttrUpdate(c context.Context, tba *model.TagBusinessAttr) (err error)
- func (s *Service) Auth(c context.Context, username string) (res *model.Auth, err error)
- func (s *Service) BanAssociation(c context.Context, arg *model.Association) (err error)
- func (s *Service) BanCateSecExt(c context.Context, arg *model.CateSecExt) (err error)
- func (s *Service) BatchUpdateReasonState(c context.Context, b *model.BatchUpdateReasonState) (err error)
- func (s *Service) BatchUpdateState(c context.Context, b *model.BatchUpdateState) (err error)
- func (s *Service) BusinessAttr(c context.Context, b *model.BusinessAttr) (res map[string]bool, err error)
- func (s *Service) BusinessList(c context.Context, bp *model.BusinessListParams) (res []*model.BusinessList, err error)
- func (s *Service) CateSecExtList(c context.Context, e *model.CateSecExt) (res []*model.CateSecExt, err error)
- func (s *Service) Close()
- func (s *Service) DelRankGroup(c context.Context, id int64) (err error)
- func (s *Service) DelRankUser(c context.Context, uid int64) (err error)
- func (s *Service) DeleteType(c context.Context, td *model.TagTypeDel) (err error)
- func (s *Service) DeleteUser(c context.Context, bur *model.BusinessUserRole) (err error)
- func (s *Service) Departments(c *bm.Context) (res []*model.DepartCustom, err error)
- func (s *Service) DropDownList(c context.Context, e *model.Association) (res []*model.DropList, err error)
- func (s *Service) FlowList(c context.Context, bp *model.BusinessListParams) (res []*model.BusinessList, err error)
- func (s *Service) Heartbeat(c context.Context, username string) (err error)
- func (s *Service) IsAdmin(c context.Context, bid, uid int64) bool
- func (s *Service) Login(ctx context.Context, mngsid, dsbsid string) (sid, uname string, err error)
- func (s *Service) Permissions(c context.Context, username string) (res *model.Permissions, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) RankGroup(c context.Context, id int64) (res *model.RankGroup, err error)
- func (s *Service) RankGroups(c context.Context, pn, ps int) (res []*model.RankGroup, total int, err error)
- func (s *Service) RankUsers(c context.Context, pn, ps int, username string) (res []*model.RankUserScores, total int, err error)
- func (s *Service) ReasonList(c context.Context, e *model.SearchReasonParams) (res []*model.Reason, total int64, err error)
- func (s *Service) RoleList(c context.Context, br *model.BusinessRole) (res []*model.BusinessRole, err error)
- func (s *Service) Roles(c *bm.Context) (res []*model.RoleCustom, err error)
- func (s *Service) SaveRankUser(c context.Context, uid int64, ranks map[int64]int) (err error)
- func (s *Service) SearchLogAction(c *bm.Context) (result []byte, err error)
- func (s *Service) SearchLogAudit(c *bm.Context) (result []byte, err error)
- func (s *Service) StateUp(c context.Context, p *model.UserStateUp) (err error)
- func (s *Service) TagControl(c context.Context, tc *model.TagControlParam) (res []*model.TagControl, err error)
- func (s *Service) TagList(c context.Context, t *model.SearchTagParams) (res []*model.Tag, total int64, err error)
- func (s *Service) TypeList(c context.Context, tt *model.TagTypeList) (res []*model.TagType, err error)
- func (s *Service) UIds(c context.Context, unames []string) (res map[string]int64)
- func (s *Service) Udepts(c context.Context, uids []int64) (res map[int64]string)
- func (s *Service) Unames(c context.Context, uids []int64) (res map[int64]string)
- func (s *Service) UpdateAssociation(c context.Context, arg *model.Association) (err error)
- func (s *Service) UpdateBusiness(c context.Context, b *model.Business) (err error)
- func (s *Service) UpdateCateSecExt(c context.Context, arg *model.CateSecExt) (err error)
- func (s *Service) UpdateControl(c context.Context, tc *model.TagControl) (err error)
- func (s *Service) UpdateRankGroup(c context.Context, g *model.RankGroup, auths []int64) (err error)
- func (s *Service) UpdateReason(c context.Context, arg *model.Reason) (err error)
- func (s *Service) UpdateRole(c context.Context, br *model.BusinessRole) (err error)
- func (s *Service) UpdateState(c context.Context, su *model.StateUpdate) (err error)
- func (s *Service) UpdateTag(c context.Context, t *model.Tag) (err error)
- func (s *Service) UpdateType(c context.Context, tt *model.TagType) (err error)
- func (s *Service) UpdateUser(c context.Context, bur *model.BusinessUserRole) (err error)
- func (s *Service) UserList(c context.Context, u *model.UserListParams) (res []*model.BusinessUserRoleList, total int64, err error)
- func (s *Service) UserRole(c context.Context, brl *model.BusinessUserRoleList) (res []*model.UserRole, err error)
- func (s *Service) UserRoles(c context.Context, uid int64) (res []*model.UserRole, err error)
- func (s *Service) Users(c context.Context, pn, ps int) (res *model.UserPager, err error)
- func (s *Service) UsersByDepartment(c *bm.Context, ID int64) (res []*model.UserCustom, err error)
- func (s *Service) UsersByRole(c *bm.Context, ID int64) (res []*model.UserCustom, err error)
- func (s *Service) UsersTotal(c context.Context) (total int64, err error)
- func (s *Service) Wait()
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
}
Service biz service def.
func (*Service) AddAssociation ¶
AddAssociation .
func (*Service) AddBusiness ¶
AddBusiness .
func (*Service) AddCateSecExt ¶
AddCateSecExt .
func (*Service) AddControl ¶
AddControl .
func (*Service) AddRankGroup ¶
func (s *Service) AddRankGroup(c context.Context, g *model.RankGroup, auths []int64) (id int64, err error)
AddRankGroup adds rank group.
func (*Service) AddRankUser ¶
AddRankUser adds rank user.
func (*Service) AssociationList ¶
func (s *Service) AssociationList(c context.Context, e *model.Association) (res []*model.Association, err error)
AssociationList .
func (*Service) AttrList ¶
func (s *Service) AttrList(c context.Context, tba *model.TagBusinessAttr) (res *model.TagBusinessAttr, err error)
AttrList .
func (*Service) AttrUpdate ¶
AttrUpdate .
func (*Service) BanAssociation ¶
BanAssociation .
func (*Service) BanCateSecExt ¶
BanCateSecExt .
func (*Service) BatchUpdateReasonState ¶
func (s *Service) BatchUpdateReasonState(c context.Context, b *model.BatchUpdateReasonState) (err error)
BatchUpdateReasonState .
func (*Service) BatchUpdateState ¶
BatchUpdateState .
func (*Service) BusinessAttr ¶
func (s *Service) BusinessAttr(c context.Context, b *model.BusinessAttr) (res map[string]bool, err error)
BusinessAttr .
func (*Service) BusinessList ¶
func (s *Service) BusinessList(c context.Context, bp *model.BusinessListParams) (res []*model.BusinessList, err error)
BusinessList .
func (*Service) CateSecExtList ¶
func (s *Service) CateSecExtList(c context.Context, e *model.CateSecExt) (res []*model.CateSecExt, err error)
CateSecExtList .
func (*Service) DelRankGroup ¶
DelRankGroup deletes rank group...
func (*Service) DelRankUser ¶
DelRankUser deletes user.
func (*Service) DeleteType ¶
DeleteType .
func (*Service) DeleteUser ¶
DeleteUser .
func (*Service) Departments ¶
Departments .
func (*Service) DropDownList ¶
func (s *Service) DropDownList(c context.Context, e *model.Association) (res []*model.DropList, err error)
DropDownList .
func (*Service) FlowList ¶
func (s *Service) FlowList(c context.Context, bp *model.BusinessListParams) (res []*model.BusinessList, err error)
FlowList .
func (*Service) Permissions ¶
func (s *Service) Permissions(c context.Context, username string) (res *model.Permissions, err error)
Permissions return user's permissions.
func (*Service) RankGroups ¶
func (s *Service) RankGroups(c context.Context, pn, ps int) (res []*model.RankGroup, total int, err error)
RankGroups gets archive groups.
func (*Service) RankUsers ¶
func (s *Service) RankUsers(c context.Context, pn, ps int, username string) (res []*model.RankUserScores, total int, err error)
RankUsers gets rank user list.
func (*Service) ReasonList ¶
func (s *Service) ReasonList(c context.Context, e *model.SearchReasonParams) (res []*model.Reason, total int64, err error)
ReasonList .
func (*Service) RoleList ¶
func (s *Service) RoleList(c context.Context, br *model.BusinessRole) (res []*model.BusinessRole, err error)
RoleList .
func (*Service) SaveRankUser ¶
SaveRankUser saves user group's rank.
func (*Service) SearchLogAction ¶
SearchLogAction .
func (*Service) SearchLogAudit ¶
SearchLogAudit .
func (*Service) TagControl ¶
func (s *Service) TagControl(c context.Context, tc *model.TagControlParam) (res []*model.TagControl, err error)
TagControl .
func (*Service) TagList ¶
func (s *Service) TagList(c context.Context, t *model.SearchTagParams) (res []*model.Tag, total int64, err error)
TagList .
func (*Service) TypeList ¶
func (s *Service) TypeList(c context.Context, tt *model.TagTypeList) (res []*model.TagType, err error)
TypeList .
func (*Service) UpdateAssociation ¶
UpdateAssociation .
func (*Service) UpdateBusiness ¶
UpdateBusiness .
func (*Service) UpdateCateSecExt ¶
UpdateCateSecExt .
func (*Service) UpdateControl ¶
UpdateControl .
func (*Service) UpdateRankGroup ¶
UpdateRankGroup udpates rank group.
func (*Service) UpdateReason ¶
UpdateReason .
func (*Service) UpdateRole ¶
UpdateRole .
func (*Service) UpdateState ¶
UpdateState .
func (*Service) UpdateType ¶
UpdateType .
func (*Service) UpdateUser ¶
UpdateUser .
func (*Service) UserList ¶
func (s *Service) UserList(c context.Context, u *model.UserListParams) (res []*model.BusinessUserRoleList, total int64, err error)
UserList .
func (*Service) UserRole ¶
func (s *Service) UserRole(c context.Context, brl *model.BusinessUserRoleList) (res []*model.UserRole, err error)
UserRole .
func (*Service) UsersByDepartment ¶
UsersByDepartment .
func (*Service) UsersByRole ¶
UsersByRole .
func (*Service) UsersTotal ¶
UsersTotal get user total