Documentation ¶
Index ¶
- type Service
- func (s *Service) AppAdd(c context.Context, mid int64, ap *archive.ArcParam, ar *archive.AppRequest) (aid int64, err error)
- func (s *Service) AppEdit(c context.Context, ap *archive.ArcParam, mid int64) (err error)
- func (s *Service) AppEditFull(c context.Context, ap *archive.ArcParam, mid, buildNum int64, ...) (err error)
- func (s *Service) AppUpCover(c context.Context, fileType string, body []byte, mid int64) (url string, err error)
- func (s *Service) ClientAdd(c context.Context, mid int64, ap *archive.ArcParam) (aid int64, err error)
- func (s *Service) ClientEdit(c context.Context, ap *archive.ArcParam, mid int64) (err error)
- func (s *Service) ClientUpCover(c context.Context, fileType string, body []byte, mid int64) (url string, err error)
- func (s *Service) Close()
- func (s *Service) CreatorAdd(c context.Context, mid int64, ap *archive.ArcParam) (aid int64, err error)
- func (s *Service) CreatorEdit(c context.Context, mid int64, cp *archive.CreatorParam) (err error)
- func (s *Service) CreatorUpCover(c context.Context, fileType string, body []byte, mid int64) (url string, err error)
- func (s *Service) FRelations(c context.Context, mid int64, fids []int64, ip string) (res map[int64]int, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) SendArchiveLog(aid int64, build, buvid, action, platform string, ap *archive.ArcParam, ...)
- func (s *Service) Validate(c context.Context, geetest *archive.Geetest, upFormStr string, mid int64) (stat bool, err error)
- func (s *Service) VideoInfoc(c context.Context, ap *archive.ArcParam, ar *archive.AppRequest) (err error)
- func (s *Service) WebAdd(c context.Context, mid int64, ap *archive.ArcParam, validated bool) (aid int64, err error)
- func (s *Service) WebCmAdd(c context.Context, mid int64, ap *archive.ArcParam) (aid int64, err error)
- func (s *Service) WebEdit(c context.Context, ap *archive.ArcParam, mid int64) (err error)
- func (s *Service) WebFilterArcParam(c context.Context, ap *archive.ArcParam, ip string) (code int, msg string, data map[string]interface{})
- func (s *Service) WebSingleFilter(c context.Context, content string) (dt *archive.FilterData, hit []string, err error)
- func (s *Service) WebUpCover(c context.Context, fileType string, body []byte, mid int64) (url string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { PorderCfgs map[int64]*porder.Config PorderGames map[int64]*porder.Game // contains filtered or unexported fields }
Service is archive and videos service.
func (*Service) AppAdd ¶
func (s *Service) AppAdd(c context.Context, mid int64, ap *archive.ArcParam, ar *archive.AppRequest) (aid int64, err error)
AppAdd add archive by main app.
func (*Service) AppEditFull ¶
func (s *Service) AppEditFull(c context.Context, ap *archive.ArcParam, mid, buildNum int64, ar *archive.AppRequest) (err error)
AppEditFull fn
func (*Service) AppUpCover ¶
func (s *Service) AppUpCover(c context.Context, fileType string, body []byte, mid int64) (url string, err error)
AppUpCover main app upload cover.
func (*Service) ClientAdd ¶
func (s *Service) ClientAdd(c context.Context, mid int64, ap *archive.ArcParam) (aid int64, err error)
ClientAdd add archive by client.
func (*Service) ClientEdit ¶
ClientEdit edit archive by client.
func (*Service) ClientUpCover ¶
func (s *Service) ClientUpCover(c context.Context, fileType string, body []byte, mid int64) (url string, err error)
ClientUpCover client upload cover.
func (*Service) CreatorAdd ¶
func (s *Service) CreatorAdd(c context.Context, mid int64, ap *archive.ArcParam) (aid int64, err error)
CreatorAdd add archive by creator.
func (*Service) CreatorEdit ¶
CreatorEdit edit archive by creator.
func (*Service) CreatorUpCover ¶
func (s *Service) CreatorUpCover(c context.Context, fileType string, body []byte, mid int64) (url string, err error)
CreatorUpCover creator upload cover.
func (*Service) FRelations ¶
func (s *Service) FRelations(c context.Context, mid int64, fids []int64, ip string) (res map[int64]int, err error)
FRelations 获取用户与mid的关系(Relations的反向)
func (*Service) SendArchiveLog ¶
func (s *Service) SendArchiveLog(aid int64, build, buvid, action, platform string, ap *archive.ArcParam, videoerr error)
SendArchiveLog send to log service
func (*Service) Validate ¶
func (s *Service) Validate(c context.Context, geetest *archive.Geetest, upFormStr string, mid int64) (stat bool, err error)
Validate fn
func (*Service) VideoInfoc ¶
func (s *Service) VideoInfoc(c context.Context, ap *archive.ArcParam, ar *archive.AppRequest) (err error)
VideoInfoc fn
func (*Service) WebAdd ¶
func (s *Service) WebAdd(c context.Context, mid int64, ap *archive.ArcParam, validated bool) (aid int64, err error)
WebAdd add archive by web.
func (*Service) WebCmAdd ¶
func (s *Service) WebCmAdd(c context.Context, mid int64, ap *archive.ArcParam) (aid int64, err error)
WebCmAdd add archive by web client and from business order.
func (*Service) WebFilterArcParam ¶
func (s *Service) WebFilterArcParam(c context.Context, ap *archive.ArcParam, ip string) (code int, msg string, data map[string]interface{})
WebFilterArcParam fn.
func (*Service) WebSingleFilter ¶
func (s *Service) WebSingleFilter(c context.Context, content string) (dt *archive.FilterData, hit []string, err error)
WebSingleFilter fn.
Click to show internal directories.
Click to hide internal directories.