Documentation ¶
Index ¶
- type Service
- func (s *Service) ActProtocol(c context.Context, a *like.ArgActProtocol) (res *like.SubProtocol, err error)
- func (s *Service) ActSubject(c context.Context, sid int64) (res *like.SubjectItem, err error)
- func (s *Service) AddFollow(c context.Context, mid int64, teams []string) (err error)
- func (s *Service) AddGuess(c context.Context, mid int64, p *match.ParamAddGuess) (rs int64, err error)
- func (s *Service) AddLikeActCache(c context.Context, sid, lid, score int64) (err error)
- func (s *Service) AddLikeCtimeCache(c context.Context, lid int64) (err error)
- func (s *Service) BatchInsertLikeExtend(c context.Context, extends []*likemdl.Extend) (res int64, err error)
- func (s *Service) CalculateAchievement(c context.Context, sid, mid int64, missionCount int64) (err error)
- func (s *Service) ClearCache(c context.Context, msg string) (err error)
- func (s *Service) ClearRetDot(c context.Context, mid int64) (err error)
- func (s *Service) Close()
- func (s *Service) DelLikeCtimeCache(c context.Context, lid, sid int64, likeType int) (err error)
- func (s *Service) EsList(c context.Context, p *l.ParamList, mid int64) (res *l.ListInfo, err error)
- func (s *Service) Follow(c context.Context, mid int64) (res []string, err error)
- func (s *Service) Guess(c context.Context, mid int64, p *match.ParamSid) (rs *match.UserGuess, err error)
- func (s *Service) LikeAct(c context.Context, p *l.ParamAddLikeAct, mid int64) (res int64, err error)
- func (s *Service) LikeActCache(c context.Context, sid, lid int64) (res int64, err error)
- func (s *Service) LikeActCountInitialize(c context.Context, sid int64) (err error)
- func (s *Service) LikeActList(c context.Context, sid, mid int64, lids []int64) (res map[int64]interface{}, err error)
- func (s *Service) LikeArc(c context.Context, sub *l.Subject) (res *l.Subject, err error)
- func (s *Service) LikeInitialize(c context.Context, lid int64) (err error)
- func (s *Service) LikeMaxIDInitialize(c context.Context) (err error)
- func (s *Service) LikeOidsInfo(c context.Context, sType int, oids []int64) (res map[int64]*likemdl.Item, err error)
- func (s *Service) LikeUp(c context.Context, lid int64) (err error)
- func (s *Service) ListGuess(c context.Context, sid, mid int64) (rs []*match.UserLog, err error)
- func (s *Service) Ltime(c context.Context, sid int64) (res map[string]interface{}, err error)
- func (s *Service) Match(c context.Context, sid int64) (rs []*match.Match, err error)
- func (s *Service) MissionAchieve(c context.Context, sid, id, mid int64) (res int64, err error)
- func (s *Service) MissionAward(c context.Context, sid, mid int64) (data []*l.MissionAward, err error)
- func (s *Service) MissionFriendsList(c context.Context, p *l.ParamMissionFriends, mid int64) (data []*l.MissionFriends, err error)
- func (s *Service) MissionInfo(c context.Context, sid, lid, mid int64) (res *l.MissionInfo, err error)
- func (s *Service) MissionLike(c context.Context, sid, mid int64) (lid int64, err error)
- func (s *Service) MissionLikeAct(c context.Context, p *l.ParamMissionLikeAct, mid int64) (data *l.MissionLikeAct, err error)
- func (s *Service) MissionRank(c context.Context, sid, mid int64) (data *l.MissionRank, err error)
- func (s *Service) MissionTops(c context.Context, sid int64, num int) (data []*l.MissionFriends, err error)
- func (s *Service) MissionUser(c context.Context, sid, lid int64) (res *l.MissionFriends, err error)
- func (s *Service) ObjectGroup(c context.Context, sid int64, ck string) (data map[int64][]*likemdl.GroupItem, err error)
- func (s *Service) ObjectsUnStart(c context.Context, mid int64, p *match.ParamObject) (rs []*match.Object, count int, err error)
- func (s *Service) OnlineVote(c context.Context, mid, vote, stage, aid int64) (res bool, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) RedDot(c context.Context, mid int64) (redDot *like.RedDot, err error)
- func (s *Service) RegionArcList(c context.Context, sid int64, rid int16, pn, ps int, typ, ip string) (list []*likemdl.Like, cnt int, err error)
- func (s *Service) Reward(c context.Context, mid int64, step int) (err error)
- func (s *Service) SetLikeActSum(c context.Context, lidLikes map[int64]int64) (err error)
- func (s *Service) SetLikeContent(c context.Context, lid int64) (err error)
- func (s *Service) SetSubjectStat(c context.Context, stat *likemdl.SubjectStat) (err error)
- func (s *Service) SetViewRank(c context.Context, sid int64, aids []int64) (err error)
- func (s *Service) StoryKingAct(c context.Context, p *l.ParamStoryKingAct, mid int64) (res map[string]int64, err error)
- func (s *Service) StoryKingLeftTime(c context.Context, sid, mid int64) (res int64, err error)
- func (s *Service) StoryKingList(c context.Context, p *l.ParamList, mid int64) (res *l.ListInfo, err error)
- func (s *Service) Subject(c context.Context, sid int64) (res *l.Subject, err error)
- func (s *Service) SubjectInitialize(c context.Context, minSid int64) (err error)
- func (s *Service) SubjectLikeListInitialize(c context.Context, sid int64) (err error)
- func (s *Service) SubjectMaxIDInitialize(c context.Context) (err error)
- func (s *Service) SubjectStat(c context.Context, sid int64) (score *likemdl.SubjectScore, err error)
- func (s *Service) SubjectUp(c context.Context, sid int64) (err error)
- func (s *Service) TagArcList(c context.Context, sid, tagID int64, pn, ps int, typ, ip string) (list []*likemdl.Like, cnt int, err error)
- func (s *Service) TagLikeCounts(c context.Context, sid int64) (data map[int64]int32, err error)
- func (s *Service) UpList(c context.Context, p *l.ParamList, mid int64) (res *l.ListInfo, err error)
- func (s *Service) ViewRank(c context.Context, sid int64, pn, ps int) (list []*api.Arc, count int, 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 struct
func (*Service) ActProtocol ¶
func (s *Service) ActProtocol(c context.Context, a *like.ArgActProtocol) (res *like.SubProtocol, err error)
ActProtocol .
func (*Service) ActSubject ¶
ActSubject .
func (*Service) AddGuess ¶
func (s *Service) AddGuess(c context.Context, mid int64, p *match.ParamAddGuess) (rs int64, err error)
AddGuess add match guess.
func (*Service) AddLikeActCache ¶
AddLikeActCache .
func (*Service) AddLikeCtimeCache ¶
AddLikeCtimeCache add cache .
func (*Service) BatchInsertLikeExtend ¶
func (s *Service) BatchInsertLikeExtend(c context.Context, extends []*likemdl.Extend) (res int64, err error)
BatchInsertLikeExtend batch insert like_extend table.
func (*Service) CalculateAchievement ¶
func (s *Service) CalculateAchievement(c context.Context, sid, mid int64, missionCount int64) (err error)
CalculateAchievement .
func (*Service) ClearCache ¶
ClearCache del match and object cache
func (*Service) ClearRetDot ¶
ClearRetDot clear red dot.
func (*Service) DelLikeCtimeCache ¶
DelLikeCtimeCache delete ctime cache.
func (*Service) Guess ¶
func (s *Service) Guess(c context.Context, mid int64, p *match.ParamSid) (rs *match.UserGuess, err error)
Guess user guess
func (*Service) LikeAct ¶
func (s *Service) LikeAct(c context.Context, p *l.ParamAddLikeAct, mid int64) (res int64, err error)
LikeAct service
func (*Service) LikeActCache ¶
LikeActCache .
func (*Service) LikeActCountInitialize ¶
LikeActCountInitialize Initialize like_action cache data .
func (*Service) LikeActList ¶
func (s *Service) LikeActList(c context.Context, sid, mid int64, lids []int64) (res map[int64]interface{}, err error)
LikeActList get sid&lid likeact list .
func (*Service) LikeInitialize ¶
LikeInitialize initialize like cache data .
func (*Service) LikeMaxIDInitialize ¶
LikeMaxIDInitialize likes max id initialize
func (*Service) LikeOidsInfo ¶
func (s *Service) LikeOidsInfo(c context.Context, sType int, oids []int64) (res map[int64]*likemdl.Item, err error)
LikeOidsInfo .
func (*Service) MissionAchieve ¶
MissionAchieve .
func (*Service) MissionAward ¶
func (s *Service) MissionAward(c context.Context, sid, mid int64) (data []*l.MissionAward, err error)
MissionAward .
func (*Service) MissionFriendsList ¶
func (s *Service) MissionFriendsList(c context.Context, p *l.ParamMissionFriends, mid int64) (data []*l.MissionFriends, err error)
MissionFriendsList .
func (*Service) MissionInfo ¶
func (s *Service) MissionInfo(c context.Context, sid, lid, mid int64) (res *l.MissionInfo, err error)
MissionInfo .
func (*Service) MissionLike ¶
MissionLike launch buff activity .
func (*Service) MissionLikeAct ¶
func (s *Service) MissionLikeAct(c context.Context, p *l.ParamMissionLikeAct, mid int64) (data *l.MissionLikeAct, err error)
MissionLikeAct help to mission group .
func (*Service) MissionRank ¶
MissionRank get user rank .
func (*Service) MissionTops ¶
func (s *Service) MissionTops(c context.Context, sid int64, num int) (data []*l.MissionFriends, err error)
MissionTops get the top list .
func (*Service) MissionUser ¶
MissionUser .
func (*Service) ObjectGroup ¶
func (s *Service) ObjectGroup(c context.Context, sid int64, ck string) (data map[int64][]*likemdl.GroupItem, err error)
ObjectGroup group like data.
func (*Service) ObjectsUnStart ¶
func (s *Service) ObjectsUnStart(c context.Context, mid int64, p *match.ParamObject) (rs []*match.Object, count int, err error)
ObjectsUnStart get unstart object list.
func (*Service) OnlineVote ¶
OnlineVote Service
func (*Service) RegionArcList ¶
func (s *Service) RegionArcList(c context.Context, sid int64, rid int16, pn, ps int, typ, ip string) (list []*likemdl.Like, cnt int, err error)
RegionArcList region arc list.
func (*Service) SetLikeActSum ¶
SetLikeActSum set like_extend sum data
func (*Service) SetLikeContent ¶
SetLikeContent .
func (*Service) SetSubjectStat ¶
SetSubjectStat set subject stat .
func (*Service) SetViewRank ¶
SetViewRank set view rank arcs.
func (*Service) StoryKingAct ¶
func (s *Service) StoryKingAct(c context.Context, p *l.ParamStoryKingAct, mid int64) (res map[string]int64, err error)
StoryKingAct .
func (*Service) StoryKingLeftTime ¶
StoryKingLeftTime .
func (*Service) StoryKingList ¶
func (s *Service) StoryKingList(c context.Context, p *l.ParamList, mid int64) (res *l.ListInfo, err error)
StoryKingList .
func (*Service) SubjectInitialize ¶
SubjectInitialize act_subject data initialize .
func (*Service) SubjectLikeListInitialize ¶
SubjectLikeListInitialize Initialize likes list .
func (*Service) SubjectMaxIDInitialize ¶
SubjectMaxIDInitialize Initialize act_subject max id data .
func (*Service) SubjectStat ¶
func (s *Service) SubjectStat(c context.Context, sid int64) (score *likemdl.SubjectScore, err error)
SubjectStat get subject stat .
func (*Service) TagArcList ¶
func (s *Service) TagArcList(c context.Context, sid, tagID int64, pn, ps int, typ, ip string) (list []*likemdl.Like, cnt int, err error)
TagArcList tag arc list.
func (*Service) TagLikeCounts ¶
TagLikeCounts .