service

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: 19 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 new Tag service.

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

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

Ping check server ok

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

func (s *Service) UpdateSessionState(c context.Context, state int, sid int64) (err error)

UpdateSessionState up session state.

func (*Service) Upload

func (s *Service) Upload(c context.Context, fileName, fileType string, t time.Time, body []byte) (location string, err error)

Upload upload.

func (*Service) WebReplys

func (s *Service) WebReplys(c context.Context, sid, mid int64) (mp []*model.Reply, err error)

WebReplys web replys.

Jump to

Keyboard shortcuts

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