Documentation ¶
Index ¶
- type Service
- func (s *Service) AddGiftReward(v *task.GiftReward, rewardsIDs []int64) (rows int64, err error)
- func (s *Service) AddReward(v *task.Reward) (id int64, err error)
- func (s *Service) AddSubtask(v *task.Task, rewardsIDs []int64) (id int64, err error)
- func (s *Service) AddTaskGroup(v *task.TaskGroup, rewardsIDs []int64) (id int64, err error)
- func (s *Service) Archive(c context.Context, aid int64) (res *api.Arc, err error)
- func (s *Service) Archives(c context.Context, aids []int64) (res map[int64]*api.Arc, err error)
- func (s *Service) ArchivesWithES(c context.Context, aca *academy.EsParam) (res *academy.SearchResult, err error)
- func (s *Service) Articles(c context.Context, aids []int64) (res map[int64]*model.Meta, err error)
- func (s *Service) BatchOnline(tgs []*task.TaskGroup) (err error)
- func (s *Service) BindWithCategory(c context.Context, MaterialID, CategoryID, index int64) (id int64, err error)
- func (s *Service) Cards(c context.Context, wls []*whitelist.Whitelist) (wlsWithAcc []*whitelist.Whitelist, err error)
- func (s *Service) CategoryByID(c context.Context, id int64) (cate *material.Category, err error)
- func (s *Service) Close()
- func (s *Service) EditGiftReward(v *task.GiftReward, rewardsIDs []int64) (rows int64, err error)
- func (s *Service) EditReward(v *task.Reward) (id int64, err error)
- func (s *Service) EditSubtask(v *task.Task, rewardsIDs []int64) (id int64, err error)
- func (s *Service) EditTaskGroup(v *task.TaskGroup, rewardsIDs []int64) (id int64, err error)
- func (s *Service) ListGiftReward() (res []*task.GiftReward, err error)
- func (s *Service) OrderSubTask(v *task.OrderTask) (err error)
- func (s *Service) OrderTaskGroup(v *task.OrderTask) (err error)
- func (s *Service) ParseFile(c context.Context, content []byte) (file *bfs.FileInfo, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) ProfileStat(c context.Context, mid int64) (pfl *accapi.ProfileStatReply, err error)
- func (s *Service) RewardTree() (res []*task.Reward)
- func (s *Service) SearchKeywords() (res []interface{}, err error)
- func (s *Service) SendAcademyLog(c *bm.Context, lp *academy.LogParam) (err error)
- func (s *Service) SendMusicLog(c *bm.Context, clientType int, ap *music.LogParam) (err error)
- func (s *Service) SendNotify(c *bm.Context, sendIds []int64, data map[int64]*music.SidNotify) (err error)
- func (s *Service) SendTaskLog(c *bm.Context, lp *task.LogParam) (err error)
- func (s *Service) Stats(c context.Context, aids []int64, ip string) (res map[int64]*api.Stat, err error)
- func (s *Service) SubSearchKeywords(vs []*academy.SearchKeywords) (err error)
- func (s *Service) Task(id int64) (res *task.Task, err error)
- func (s *Service) TaskGroup(id int64) (res *task.TaskGroup, err error)
- func (s *Service) TaskGroupRewards(ids []int64) (res map[int64][]*task.TaskGroupReward, err error)
- func (s *Service) TaskList(ty int8) (res []*task.TaskGroup, err error)
- func (s *Service) TaskRewards(ids []int64) (res map[int64][]*task.TaskReward, err error)
- func (s *Service) TasksByGroupIDsMap(gids []int64) (res map[int64][]*task.Task, err error)
- func (s *Service) TransferSubtask(id, gid int64) (err error)
- func (s *Service) UpGiftReward(v *task.GiftReward) (rows int64, err error)
- func (s *Service) UpStateGroup(id int64, state int8) (err error)
- func (s *Service) UpStateReward(id int64, state int8) (err error)
- func (s *Service) UpStateSubTask(id int64, state int8) (err error)
- func (s *Service) Upload(c context.Context, fileName string, fileType string, timing int64, body []byte) (location string, err error)
- func (s *Service) ViewGiftReward(v *task.GiftReward) (res *task.GiftReward, err error)
- func (s *Service) ViewReward(id int64) (res *task.Reward, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service str
func (*Service) AddGiftReward ¶
AddGiftReward for add gift rewards.
func (*Service) AddSubtask ¶
AddSubtask for add sub task.
func (*Service) AddTaskGroup ¶
AddTaskGroup for add task group.
func (*Service) ArchivesWithES ¶
func (s *Service) ArchivesWithES(c context.Context, aca *academy.EsParam) (res *academy.SearchResult, err error)
ArchivesWithES for es search
func (*Service) BatchOnline ¶
BatchOnline for subtask & grouptask with state,rank and so on.
func (*Service) BindWithCategory ¶
func (s *Service) BindWithCategory(c context.Context, MaterialID, CategoryID, index int64) (id int64, err error)
BindWithCategory .
func (*Service) Cards ¶
func (s *Service) Cards(c context.Context, wls []*whitelist.Whitelist) (wlsWithAcc []*whitelist.Whitelist, err error)
Cards fn
func (*Service) CategoryByID ¶
CategoryByID .
func (*Service) EditGiftReward ¶
EditGiftReward for edit gift rewards.
func (*Service) EditReward ¶
EditReward for edit one reward.
func (*Service) EditSubtask ¶
EditSubtask for edit sub task.
func (*Service) EditTaskGroup ¶
EditTaskGroup for edit task group.
func (*Service) ListGiftReward ¶
func (s *Service) ListGiftReward() (res []*task.GiftReward, err error)
ListGiftReward for get gift list.
func (*Service) OrderSubTask ¶
OrderSubTask for order sub task.
func (*Service) OrderTaskGroup ¶
OrderTaskGroup for order task group.
func (*Service) ProfileStat ¶
func (s *Service) ProfileStat(c context.Context, mid int64) (pfl *accapi.ProfileStatReply, err error)
ProfileStat fn
func (*Service) RewardTree ¶
RewardTree for reward tree.
func (*Service) SearchKeywords ¶
SearchKeywords for list search keywords.
func (*Service) SendAcademyLog ¶
SendAcademyLog academy log to manager.
func (*Service) SendMusicLog ¶
SendMusicLog send to log archive music
func (*Service) SendNotify ¶
func (s *Service) SendNotify(c *bm.Context, sendIds []int64, data map[int64]*music.SidNotify) (err error)
SendNotify .
func (*Service) SendTaskLog ¶
SendTaskLog task log to manager.
func (*Service) Stats ¶
func (s *Service) Stats(c context.Context, aids []int64, ip string) (res map[int64]*api.Stat, err error)
Stats get archives stat.
func (*Service) SubSearchKeywords ¶
func (s *Service) SubSearchKeywords(vs []*academy.SearchKeywords) (err error)
SubSearchKeywords for add search keywords.
func (*Service) TaskGroupRewards ¶
TaskGroupRewards for task group & rewards.
func (*Service) TaskRewards ¶
TaskRewards for task & rewards.
func (*Service) TasksByGroupIDsMap ¶
TasksByGroupIDsMap for task map
func (*Service) TransferSubtask ¶
TransferSubtask for transfer one sub task from some one group to another one.
func (*Service) UpGiftReward ¶
func (s *Service) UpGiftReward(v *task.GiftReward) (rows int64, err error)
UpGiftReward for update gift reward.
func (*Service) UpStateGroup ¶
UpStateGroup for update task group.
func (*Service) UpStateReward ¶
UpStateReward for update reward state.
func (*Service) UpStateSubTask ¶
UpStateSubTask for update sub task state.
func (*Service) Upload ¶
func (s *Service) Upload(c context.Context, fileName string, fileType string, timing int64, body []byte) (location string, err error)
Upload to bfs
func (*Service) ViewGiftReward ¶
func (s *Service) ViewGiftReward(v *task.GiftReward) (res *task.GiftReward, err error)
ViewGiftReward for view gift.