Documentation ¶
Index ¶
- type Service
- func (s *Service) AddReply(c context.Context, mid, tagID int64, ...) (r *model.Reply, err error)
- func (s *Service) AddWebReply(c context.Context, mid, sid, tagID int64, ...) (r *model.Reply, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) PlayerCheck(c context.Context, platform, ipChangeTimes int, ...) (err error)
- func (s *Service) Replys(c context.Context, ...) (rs []model.Reply, isEndReply bool, err error)
- func (s *Service) Sessions(c context.Context, mid int64, state string, tagID, platform string, ...) (total int, wssns []*model.WebSession, err error)
- func (s *Service) Tags(c context.Context, mid int64, mold int, platform string) (tag *model.UGCTag, err error)
- func (s *Service) UpdateSessionState(c context.Context, state int, sid int64) (err error)
- func (s *Service) Upload(c context.Context, fileName, fileType string, t time.Time, body []byte) (location string, err error)
- func (s *Service) WebReplys(c context.Context, sid, mid int64) (mp []*model.Reply, 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) AddReply ¶
func (s *Service) AddReply(c context.Context, mid, tagID int64, buvid, system, version, mobiApp, content, imgURL, logURL, device, channel, entrance, netState, netOperator, agencyArea, platform, browser, qq, email string, now time.Time) (r *model.Reply, err error)
AddReply add feedback raply and create session if session isn't exist
func (*Service) AddWebReply ¶
func (s *Service) AddWebReply(c context.Context, mid, sid, tagID int64, aid, content, imgURL, netState, netOperator, agencyArea, platform, version, buvid, browser, qq, email string, now time.Time) (r *model.Reply, err error)
AddWebReply add web reply.
func (*Service) PlayerCheck ¶
func (s *Service) PlayerCheck(c context.Context, platform, ipChangeTimes int, mid, checkTime, aid, connectSpeed, ioSpeed int64, region, school, cdnip string) (err error)
PlayerCheck check for player.
func (*Service) Replys ¶
func (s *Service) Replys(c context.Context, buvid, platform, mobiApp, device, system, version, entrance string, mid int64, pn, ps int) (rs []model.Reply, isEndReply bool, err error)
Replys show all feedback replays
func (*Service) Sessions ¶
func (s *Service) Sessions(c context.Context, mid int64, state string, tagID, platform string, start, end time.Time, ps, pn int) (total int, wssns []*model.WebSession, err error)
Sessions sessions.
func (*Service) Tags ¶
func (s *Service) Tags(c context.Context, mid int64, mold int, platform string) (tag *model.UGCTag, err error)
Tags tags.
func (*Service) UpdateSessionState ¶
UpdateSessionState up session state.
Click to show internal directories.
Click to hide internal directories.