like

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 38 Imported by: 0

Documentation

Index

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 New

func New(c *conf.Config) (s *Service)

New Service

func (*Service) ActProtocol

func (s *Service) ActProtocol(c context.Context, a *like.ArgActProtocol) (res *like.SubProtocol, err error)

ActProtocol .

func (*Service) ActSubject

func (s *Service) ActSubject(c context.Context, sid int64) (res *like.SubjectItem, err error)

ActSubject .

func (*Service) AddFollow

func (s *Service) AddFollow(c context.Context, mid int64, teams []string) (err error)

AddFollow add match follow

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

func (s *Service) AddLikeActCache(c context.Context, sid, lid, score int64) (err error)

AddLikeActCache .

func (*Service) AddLikeCtimeCache

func (s *Service) AddLikeCtimeCache(c context.Context, lid int64) (err error)

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

func (s *Service) ClearCache(c context.Context, msg string) (err error)

ClearCache del match and object cache

func (*Service) ClearRetDot

func (s *Service) ClearRetDot(c context.Context, mid int64) (err error)

ClearRetDot clear red dot.

func (*Service) Close

func (s *Service) Close()

Close service

func (*Service) DelLikeCtimeCache

func (s *Service) DelLikeCtimeCache(c context.Context, lid, sid int64, likeType int) (err error)

DelLikeCtimeCache delete ctime cache.

func (*Service) EsList

func (s *Service) EsList(c context.Context, p *l.ParamList, mid int64) (res *l.ListInfo, err error)

EsList .

func (*Service) Follow

func (s *Service) Follow(c context.Context, mid int64) (res []string, err error)

Follow get match follow

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

func (s *Service) LikeActCache(c context.Context, sid, lid int64) (res int64, err error)

LikeActCache .

func (*Service) LikeActCountInitialize

func (s *Service) LikeActCountInitialize(c context.Context, sid int64) (err error)

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) LikeArc

func (s *Service) LikeArc(c context.Context, sub *l.Subject) (res *l.Subject, err error)

LikeArc service

func (*Service) LikeInitialize

func (s *Service) LikeInitialize(c context.Context, lid int64) (err error)

LikeInitialize initialize like cache data .

func (*Service) LikeMaxIDInitialize

func (s *Service) LikeMaxIDInitialize(c context.Context) (err error)

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) LikeUp

func (s *Service) LikeUp(c context.Context, lid int64) (err error)

LikeUp update likes cache and like maxID cache

func (*Service) ListGuess

func (s *Service) ListGuess(c context.Context, sid, mid int64) (rs []*match.UserLog, err error)

ListGuess get match guess list.

func (*Service) Ltime

func (s *Service) Ltime(c context.Context, sid int64) (res map[string]interface{}, err error)

Ltime service

func (*Service) Match

func (s *Service) Match(c context.Context, sid int64) (rs []*match.Match, err error)

Match get match.

func (*Service) MissionAchieve

func (s *Service) MissionAchieve(c context.Context, sid, id, mid int64) (res int64, err error)

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

func (s *Service) MissionLike(c context.Context, sid, mid int64) (lid int64, err error)

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

func (s *Service) MissionRank(c context.Context, sid, mid int64) (data *l.MissionRank, err error)

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

func (s *Service) MissionUser(c context.Context, sid, lid int64) (res *l.MissionFriends, err error)

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

func (s *Service) OnlineVote(c context.Context, mid, vote, stage, aid int64) (res bool, err error)

OnlineVote Service

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping service

func (*Service) RedDot

func (s *Service) RedDot(c context.Context, mid int64) (redDot *like.RedDot, err error)

RedDot get hot dot.

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) Reward

func (s *Service) Reward(c context.Context, mid int64, step int) (err error)

Reward get bnj preview reward.

func (*Service) SetLikeActSum

func (s *Service) SetLikeActSum(c context.Context, lidLikes map[int64]int64) (err error)

SetLikeActSum set like_extend sum data

func (*Service) SetLikeContent

func (s *Service) SetLikeContent(c context.Context, lid int64) (err error)

SetLikeContent .

func (*Service) SetSubjectStat

func (s *Service) SetSubjectStat(c context.Context, stat *likemdl.SubjectStat) (err error)

SetSubjectStat set subject stat .

func (*Service) SetViewRank

func (s *Service) SetViewRank(c context.Context, sid int64, aids []int64) (err error)

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

func (s *Service) StoryKingLeftTime(c context.Context, sid, mid int64) (res int64, err error)

StoryKingLeftTime .

func (*Service) StoryKingList

func (s *Service) StoryKingList(c context.Context, p *l.ParamList, mid int64) (res *l.ListInfo, err error)

StoryKingList .

func (*Service) Subject

func (s *Service) Subject(c context.Context, sid int64) (res *l.Subject, err error)

Subject service

func (*Service) SubjectInitialize

func (s *Service) SubjectInitialize(c context.Context, minSid int64) (err error)

SubjectInitialize act_subject data initialize .

func (*Service) SubjectLikeListInitialize

func (s *Service) SubjectLikeListInitialize(c context.Context, sid int64) (err error)

SubjectLikeListInitialize Initialize likes list .

func (*Service) SubjectMaxIDInitialize

func (s *Service) SubjectMaxIDInitialize(c context.Context) (err error)

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) SubjectUp

func (s *Service) SubjectUp(c context.Context, sid int64) (err error)

SubjectUp up act_subject cahce info .

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

func (s *Service) TagLikeCounts(c context.Context, sid int64) (data map[int64]int32, err error)

TagLikeCounts .

func (*Service) UpList

func (s *Service) UpList(c context.Context, p *l.ParamList, mid int64) (res *l.ListInfo, err error)

UpList .

func (*Service) ViewRank

func (s *Service) ViewRank(c context.Context, sid int64, pn, ps int) (list []*api.Arc, count int, err error)

ViewRank get view rank arcs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL