Documentation ¶
Index ¶
- type Service
- func (s *Service) ActivityList(c context.Context, business int8, cid int64) (acts *model.Activities, err error)
- func (s *Service) AddEvent(c context.Context, ep *param.EventParam) (eid int64, err error)
- func (s *Service) AddOrUpCallback(c context.Context, cbp *param.AddCallbackParam) (cbID int32, err error)
- func (s *Service) AddOrUpdateBusAttr(ctx context.Context, abap *param.AddBusAttrParam) (err error)
- func (s *Service) AllAuditLog(c context.Context, target int64, modules []int) (logs []*model.WLog, err error)
- func (s *Service) BatchAddEvent(c context.Context, bep *param.BatchEventParam) (eids []int64, err error)
- func (s *Service) BatchSetChallResult(c context.Context, bcrp *param.BatchChallResParam) (err error)
- func (s *Service) BatchSetGroupResult(c context.Context, bgrp *param.BatchGroupResParam) (err error)
- func (s *Service) BatchUpChallBusState(c context.Context, cids []int64, assigneeAdminid int64, ...) (err error)
- func (s *Service) BatchUpChallExtraV2(c context.Context, bcep *param.BatchChallExtraParam) (err error)
- func (s *Service) BusinessDesc(business int8) string
- func (s *Service) BusinessList(c context.Context, cids []int64) (cidToBus map[int64]*model.Business, err error)
- func (s *Service) ChallDetail(c context.Context, cid int64) (chall *model.Chall, err error)
- func (s *Service) ChallList(c context.Context, cond *search.ChallSearchCommonCond) (challPage *search.ChallListPageCommon, err error)
- func (s *Service) ChallListCommon(c context.Context, cond *search.ChallSearchCommonCond) (challPage *search.ChallListPageCommon, err error)
- func (s *Service) ChallListV3(c context.Context, cond *search.ChallSearchCommonCond) (challPage *search.ChallListPageCommon, err error)
- func (s *Service) ChallsWrap(c context.Context, cond *search.ChallSearchCommonCond) (challPageCommon *search.ChallListPageCommon, err error)
- func (s *Service) Close()
- func (s *Service) FlowDesc(fid int8) string
- func (s *Service) GroupListV3(c context.Context, cond *search.GroupSearchCommonCond) (grpPage *model.GroupListPage, err error)
- func (s *Service) GroupPendingCount(c context.Context, cond *search.GroupSearchCommonCond) (gpc *model.GroupPendingCount, err error)
- func (s *Service) LastLog(c context.Context, targets []int64, modules []int) (logs map[int64]string, err error)
- func (s *Service) LastLogStat(c context.Context, targets []int64, modules []int, fields []string) (logs map[int64]*search.ReportLog, err error)
- func (s *Service) ListBusAttr(ctx context.Context) (busAttr []*model.BusinessAttr, err error)
- func (s *Service) ListBusAttrV3(ctx context.Context) (busAttr []*model.BusinessAttr, err error)
- func (s *Service) ListCallback(c context.Context) (cbList model.CallbackSlice, err error)
- func (s *Service) ListEvent(c context.Context, cid int64) (eventList model.EventSlice, err error)
- func (s *Service) ListMeta(c context.Context, itemType string) (metaList []*model.Meta, err error)
- func (s *Service) ManagerTag(ctx context.Context) (map[int8]map[int64]*model.TagMeta, error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) PlatformChallCount(c context.Context, assigneeAdminID int64, permissionMap map[int8]int64) (challCount *search.ChallCount, err error)
- func (s *Service) PlatformChallListCreated(c context.Context, cond *search.ChallSearchCommonCond) (challPage *search.ChallListPageCommon, err error)
- func (s *Service) PlatformChallListHandlingDone(c *bm.Context, pchlp *param.ChallHandlingDoneListParam, ...) (challPage interface{}, err error)
- func (s *Service) PlatformChallListPending(c context.Context, assigneeAdminID int64, permissionMap map[int8]int64, ...) (challPage *search.ChallListPageCommon, err error)
- func (s *Service) PlatformCheckIn(c context.Context, assigneeAdminID int64) (err error)
- func (s *Service) PlatformOnlineList(c context.Context) (err error)
- func (s *Service) PlatformRelease(c context.Context, permissionMap map[int8]int64, assigneeAdminID int64) (err error)
- func (s *Service) RidDesc(bid, rid int8) string
- func (s *Service) RoleDesc(role int8) string
- func (s *Service) RstChallResult(c context.Context, crp *param.ChallRstParam) (err error)
- func (s *Service) SendCallbackRetry(c context.Context, cb *model.Callback, payload *model.Payload) (err error)
- func (s *Service) SetChallBusState(c context.Context, bcbsp *param.BatchChallBusStateParam) (err error)
- func (s *Service) SetChallResult(c context.Context, crp *param.ChallResParam) (err error)
- func (s *Service) SetExtAPI(ctx context.Context, ea *param.BusAttrExtAPI) (err error)
- func (s *Service) SetGroupResult(c context.Context, grp *param.GroupResParam) (err error)
- func (s *Service) SetGroupState(c context.Context, gssp *param.GroupStateSetParam) (err error)
- func (s *Service) SetPublicReferee(c context.Context, gspr *param.GroupStatePublicReferee) (err error)
- func (s *Service) SetShortCut(ctx context.Context, sc *param.BusAttrButtonShortCut) (err error)
- func (s *Service) SetSwitch(ctx context.Context, bs *param.BusAttrButtonSwitch) (err error)
- func (s *Service) SourceList(ctx context.Context, src *param.Source) (data map[string]interface{}, err error)
- func (s *Service) StateDescV3(business, fid, state int8) string
- func (s *Service) StateDescr(business, role, state int8) string
- func (s *Service) UpBusChallsBusState(c context.Context, business, busState int8, preBusStates []int8, oid int64, ...) (cids []int64, err error)
- func (s *Service) UpChall(c context.Context, cup *param.ChallUpParam) (err error)
- func (s *Service) UpChallBusState(c context.Context, cid int64, assigneeAdminid int64, assigneeAdminName string, ...) (err error)
- func (s *Service) UpChallExtraV2(c context.Context, cep *param.ChallExtraParam) (err error)
- func (s *Service) UpChallExtraV3(c context.Context, cep3 *param.ChallExtraParamV3) (err error)
- func (s *Service) UpGroup(c context.Context, gp *param.GroupParam) (err error)
- func (s *Service) UpGroupExtra(c context.Context, uep *param.UpExtraParam) (err error)
- func (s *Service) UpGroupRole(c context.Context, grsp *param.GroupRoleSetParam) (err error)
- func (s *Service) UserBlockInfo(ctx context.Context, bi *param.BlockInfo) (resp model.BlockInfoResp, err 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
}
Service is service.
func (*Service) ActivityList ¶
func (s *Service) ActivityList(c context.Context, business int8, cid int64) (acts *model.Activities, err error)
ActivityList will list activities by given conditions
func (*Service) AddOrUpCallback ¶
func (s *Service) AddOrUpCallback(c context.Context, cbp *param.AddCallbackParam) (cbID int32, err error)
AddOrUpCallback will add or update a callback
func (*Service) AddOrUpdateBusAttr ¶
AddOrUpdateBusAttr add or update business attr info
func (*Service) AllAuditLog ¶
func (s *Service) AllAuditLog(c context.Context, target int64, modules []int) (logs []*model.WLog, err error)
AllAuditLog search all audit log of target & modules
func (*Service) BatchAddEvent ¶
func (s *Service) BatchAddEvent(c context.Context, bep *param.BatchEventParam) (eids []int64, err error)
BatchAddEvent will add events to batch chall
func (*Service) BatchSetChallResult ¶
func (s *Service) BatchSetChallResult(c context.Context, bcrp *param.BatchChallResParam) (err error)
BatchSetChallResult will set a set of challenges result
func (*Service) BatchSetGroupResult ¶
func (s *Service) BatchSetGroupResult(c context.Context, bgrp *param.BatchGroupResParam) (err error)
BatchSetGroupResult will set a set of groups result
func (*Service) BatchUpChallBusState ¶
func (s *Service) BatchUpChallBusState(c context.Context, cids []int64, assigneeAdminid int64, assigneeAdminName string, busState int8) (err error)
BatchUpChallBusState will update business_state field of a set of challenges
func (*Service) BatchUpChallExtraV2 ¶
func (s *Service) BatchUpChallExtraV2(c context.Context, bcep *param.BatchChallExtraParam) (err error)
BatchUpChallExtraV2 update business object extra field by business oid
func (*Service) BusinessDesc ¶
BusinessDesc business description
func (*Service) BusinessList ¶
func (s *Service) BusinessList(c context.Context, cids []int64) (cidToBus map[int64]*model.Business, err error)
BusinessList will retrive business object by cids Deprecated
func (*Service) ChallDetail ¶
ChallDetail will retrive challenge by cid
func (*Service) ChallList ¶
func (s *Service) ChallList(c context.Context, cond *search.ChallSearchCommonCond) (challPage *search.ChallListPageCommon, err error)
ChallList will list challenges by several conditions Deprecated
func (*Service) ChallListCommon ¶
func (s *Service) ChallListCommon(c context.Context, cond *search.ChallSearchCommonCond) (challPage *search.ChallListPageCommon, err error)
ChallListCommon will list challenges by several conditions
func (*Service) ChallListV3 ¶
func (s *Service) ChallListV3(c context.Context, cond *search.ChallSearchCommonCond) (challPage *search.ChallListPageCommon, err error)
ChallListV3 .
func (*Service) ChallsWrap ¶
func (s *Service) ChallsWrap(c context.Context, cond *search.ChallSearchCommonCond) (challPageCommon *search.ChallListPageCommon, err error)
ChallsWrap warp challenges list result
func (*Service) GroupListV3 ¶
func (s *Service) GroupListV3(c context.Context, cond *search.GroupSearchCommonCond) (grpPage *model.GroupListPage, err error)
GroupListV3 .
func (*Service) GroupPendingCount ¶
func (s *Service) GroupPendingCount(c context.Context, cond *search.GroupSearchCommonCond) (gpc *model.GroupPendingCount, err error)
GroupPendingCount 当前 bid/rid 待办工单数
func (*Service) LastLog ¶
func (s *Service) LastLog(c context.Context, targets []int64, modules []int) (logs map[int64]string, err error)
LastLog .
func (*Service) LastLogStat ¶
func (s *Service) LastLogStat(c context.Context, targets []int64, modules []int, fields []string) (logs map[int64]*search.ReportLog, err error)
LastLogStat .
func (*Service) ListBusAttr ¶
ListBusAttr list business attr info
func (*Service) ListBusAttrV3 ¶
ListBusAttrV3 .
func (*Service) ListCallback ¶
ListCallback will list all enabled callbacks
func (*Service) ManagerTag ¶
ManagerTag .
func (*Service) PlatformChallCount ¶
func (s *Service) PlatformChallCount(c context.Context, assigneeAdminID int64, permissionMap map[int8]int64) (challCount *search.ChallCount, err error)
PlatformChallCount will return count of challenges which are backlog of an admin
func (*Service) PlatformChallListCreated ¶
func (s *Service) PlatformChallListCreated(c context.Context, cond *search.ChallSearchCommonCond) (challPage *search.ChallListPageCommon, err error)
PlatformChallListCreated list created challenges of admin
func (*Service) PlatformChallListHandlingDone ¶
func (s *Service) PlatformChallListHandlingDone(c *bm.Context, pchlp *param.ChallHandlingDoneListParam, permissionMap map[int8]int64, assigneeAdminID int64, feature int8) (challPage interface{}, err error)
PlatformChallListHandlingDone list handling challenges of admin
func (*Service) PlatformChallListPending ¶
func (s *Service) PlatformChallListPending(c context.Context, assigneeAdminID int64, permissionMap map[int8]int64, pclp *param.ChallListParam) (challPage *search.ChallListPageCommon, err error)
PlatformChallListPending will return challenges which are backlog of an admin
func (*Service) PlatformCheckIn ¶
PlatformCheckIn admin online
func (*Service) PlatformOnlineList ¶
PlatformOnlineList .
func (*Service) PlatformRelease ¶
func (s *Service) PlatformRelease(c context.Context, permissionMap map[int8]int64, assigneeAdminID int64) (err error)
PlatformRelease admin offline
func (*Service) RstChallResult ¶
RstChallResult will reset challenge and its linked group state as Pending
func (*Service) SendCallbackRetry ¶
func (s *Service) SendCallbackRetry(c context.Context, cb *model.Callback, payload *model.Payload) (err error)
SendCallbackRetry will try to send callback with specified attempts
func (*Service) SetChallBusState ¶
func (s *Service) SetChallBusState(c context.Context, bcbsp *param.BatchChallBusStateParam) (err error)
SetChallBusState will update business_state field of a set of challenges
func (*Service) SetChallResult ¶
SetChallResult will set a challenge result
func (*Service) SetGroupResult ¶
SetGroupResult will set a group result
func (*Service) SetGroupState ¶
SetGroupState 修改未处理的工单状态
func (*Service) SetPublicReferee ¶
func (s *Service) SetPublicReferee(c context.Context, gspr *param.GroupStatePublicReferee) (err error)
SetPublicReferee 移交众裁
func (*Service) SetShortCut ¶
SetShortCut .
func (*Service) SourceList ¶
func (s *Service) SourceList(ctx context.Context, src *param.Source) (data map[string]interface{}, err error)
SourceList .
func (*Service) StateDescV3 ¶
StateDescV3 .
func (*Service) StateDescr ¶
StateDescr state description
func (*Service) UpBusChallsBusState ¶
func (s *Service) UpBusChallsBusState(c context.Context, business, busState int8, preBusStates []int8, oid int64, assigneeAdminid int64, extra map[string]interface{}) (cids []int64, err error)
UpBusChallsBusState will update business_state field of a set of challenges with same business and oid
func (*Service) UpChallBusState ¶
func (s *Service) UpChallBusState(c context.Context, cid int64, assigneeAdminid int64, assigneeAdminName string, busState int8) (err error)
UpChallBusState will update business_state field of a challenge
func (*Service) UpChallExtraV2 ¶
UpChallExtraV2 will update extra data of a challenge by cid
func (*Service) UpChallExtraV3 ¶
UpChallExtraV3 .
func (*Service) UpGroupExtra ¶
UpGroupExtra update business extra of gid, only cover business extra field
func (*Service) UpGroupRole ¶
UpGroupRole will 流转工单
func (*Service) UserBlockInfo ¶
func (s *Service) UserBlockInfo(ctx context.Context, bi *param.BlockInfo) (resp model.BlockInfoResp, err error)
UserBlockInfo . http://info.bilibili.co/pages/viewpage.action?pageId=5417571 http://info.bilibili.co/pages/viewpage.action?pageId=7559616