Documentation ¶
Index ¶
- type Service
- func (s *Service) Activities(c context.Context) (acts []*activity.Activity)
- func (s *Service) AddNetSafeMd5(c context.Context, nid int64, md5 string) (err error)
- func (s *Service) AllowCommercial(c context.Context, mid int64) (ok int)
- func (s *Service) AllowOrderUps(mid int64) (ok bool)
- func (s *Service) AppFormats(c context.Context) (af []*archive.AppFormat, err error)
- func (s *Service) AppModuleShowMap(mid int64, lotteryCheck bool) (ret map[string]bool)
- func (s *Service) AppTypes(c context.Context, lang string) (tps []*archive.Type)
- func (s *Service) ApplySearch(c context.Context, mid int64, tid int16, keyword, state string, pn, ps int) (res *search.StaffApplyResult, err error)
- func (s *Service) ArcCommercial(c context.Context, aid int64, ip string) (cm *archive.Commercial, err error)
- func (s *Service) ArcOrderGameInfo(c context.Context, aid int64, platform int, ip string) (gameInfo *game.Info, err error)
- func (s *Service) Archives(c context.Context, mid int64, tid int16, kw, order, class, ip string, ...) (res *search.Result, err error)
- func (s *Service) ArchivesFromService(c context.Context, mid int64, class, ip string, pn, ps int) (sres *search.Result, err error)
- func (s *Service) BIZsByTime(c context.Context, start, end *time.Time, tp int8) (bizs []*model.BIZ, err error)
- func (s *Service) Close()
- func (s *Service) Del(c context.Context, mid, aid int64, ip string) (err error)
- func (s *Service) DescFormat(c context.Context, typeid, copyright int64, langStr, ip string) (desc *archive.DescFormat, err error)
- func (s *Service) DescFormatForApp(c context.Context, typeid, copyright int64, langStr, ip string) (desc *archive.DescFormat, length int, err error)
- func (s *Service) Dpub() (dpub *archive.Dpub)
- func (s *Service) EditRules(c context.Context, white int, state int8, lotteryBind bool) (rules map[string]bool)
- func (s *Service) ExecuteOrders(c context.Context, mid int64, ip string) (orders []*order.Order, err error)
- func (s *Service) Fav(c context.Context, mid int64) (res map[string]interface{})
- func (s *Service) FlowJudge(c context.Context, business, groupID int64, oids []int64) (hitOids []int64, err error)
- func (s *Service) HistoryList(c context.Context, mid, aid int64, ip string) (historys []*archive.ArcHistory, err error)
- func (s *Service) HistoryView(c context.Context, mid, hid int64, ip string) (history *archive.ArcHistory, err error)
- func (s *Service) MissionOnlineByTid(c context.Context, tid, plat int16) (res []*activity.ActWithTP, err error)
- func (s *Service) MissionProtocol(c context.Context, missionID int64) (p *activity.Protocol, err error)
- func (s *Service) NotifyNetSafe(c context.Context, nid int64) (err error)
- func (s *Service) Oasis(c context.Context, mid int64, ip string) (oa *order.Oasis, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) Porder(c context.Context, aid int64) (pd *archive.Porder, err error)
- func (s *Service) Search(c context.Context, mid int64, tid int16, keyword, order, class, ip string, ...) (res *search.Result, err error)
- func (s *Service) SimpleArcVideos(c context.Context, mid int64, tid int16, kw, order, class, ip string, ...) (res *search.SimpleResult, err error)
- func (s *Service) SimpleArchiveVideos(c context.Context, mid, aid int64, ak, ck, ip string) (ap *archive.SimpleArchiveVideos, err error)
- func (s *Service) StaffApplySubmit(c context.Context, id, aid, mid, state, atype int64, ...) (err error)
- func (s *Service) StaffTitles(c context.Context) (titles []*tag.StaffTitle)
- func (s *Service) StaffValidate(c context.Context, mid int64) (uv int, err error)
- func (s *Service) TagCheck(c context.Context, mid int64, tagName string) (code int, msg string)
- func (s *Service) TopAct() (ret []*actmdl.Activity)
- func (s *Service) Types(c context.Context, lang string) (tps []*archive.Type)
- func (s *Service) UpValidate(c context.Context, mid int64, ip string) (uv *order.UpValidate, err error)
- func (s *Service) Video(c context.Context, mid, aid, cid int64, ip string) (video *api.Page, err error)
- func (s *Service) VideoJam(c context.Context, ip string) (j *archive.VideoJam, err error)
- func (s *Service) VideoPoints(c context.Context, aid, cid int64) (vp *archive.ViewPointRow, err error)
- func (s *Service) Videos(c context.Context, mid, aid int64, ip string) (sa archive.SimpleArchive, svs []*archive.SimpleVideo, err error)
- func (s *Service) View(c context.Context, mid, aid int64, ip, platform string) (av *archive.ArcVideo, err error)
- func (s *Service) WebArchives(c context.Context, mid int64, tid int16, keyword, order, class, ip string, ...) (res *search.Result, err error)
- func (s *Service) WebViewPoints(c context.Context, aid, cid, mid int64, ip string) (vps []*archive.ViewPointRow, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { ArcTip string // contains filtered or unexported fields }
Service struct
func (*Service) Activities ¶
Activities get activity list.
func (*Service) AddNetSafeMd5 ¶
AddNetSafeMd5 fn
func (*Service) AllowCommercial ¶
AllowCommercial fn
func (*Service) AllowOrderUps ¶
AllowOrderUps 检查用户商单信息
func (*Service) AppFormats ¶
AppFormats for app portal list.
func (*Service) AppModuleShowMap ¶
AppModuleShowMap fn 编辑的时候暂时不允许重新开启动态抽奖或者修改动态抽奖
func (*Service) ApplySearch ¶
func (s *Service) ApplySearch(c context.Context, mid int64, tid int16, keyword, state string, pn, ps int) (res *search.StaffApplyResult, err error)
ApplySearch all achive.
func (*Service) ArcCommercial ¶
func (s *Service) ArcCommercial(c context.Context, aid int64, ip string) (cm *archive.Commercial, err error)
ArcCommercial fn
func (*Service) ArcOrderGameInfo ¶
func (s *Service) ArcOrderGameInfo(c context.Context, aid int64, platform int, ip string) (gameInfo *game.Info, err error)
ArcOrderGameInfo fn platform 1:android;2:ios
func (*Service) Archives ¶
func (s *Service) Archives(c context.Context, mid int64, tid int16, kw, order, class, ip string, pn, ps, coop int) (res *search.Result, err error)
Archives for app all achives.
func (*Service) ArchivesFromService ¶
func (s *Service) ArchivesFromService(c context.Context, mid int64, class, ip string, pn, ps int) (sres *search.Result, err error)
ArchivesFromService get archives from service
func (*Service) BIZsByTime ¶
func (s *Service) BIZsByTime(c context.Context, start, end *time.Time, tp int8) (bizs []*model.BIZ, err error)
BIZsByTime list bizs by time and type
func (*Service) DescFormat ¶
func (s *Service) DescFormat(c context.Context, typeid, copyright int64, langStr, ip string) (desc *archive.DescFormat, err error)
DescFormat get desc format
func (*Service) DescFormatForApp ¶
func (s *Service) DescFormatForApp(c context.Context, typeid, copyright int64, langStr, ip string) (desc *archive.DescFormat, length int, err error)
DescFormatForApp get desc format length
func (*Service) EditRules ¶
func (s *Service) EditRules(c context.Context, white int, state int8, lotteryBind bool) (rules map[string]bool)
EditRules fn
func (*Service) ExecuteOrders ¶
func (s *Service) ExecuteOrders(c context.Context, mid int64, ip string) (orders []*order.Order, err error)
ExecuteOrders fn
func (*Service) FlowJudge ¶
func (s *Service) FlowJudge(c context.Context, business, groupID int64, oids []int64) (hitOids []int64, err error)
FlowJudge fn
func (*Service) HistoryList ¶
func (s *Service) HistoryList(c context.Context, mid, aid int64, ip string) (historys []*archive.ArcHistory, err error)
HistoryList get the history of aid
func (*Service) HistoryView ¶
func (s *Service) HistoryView(c context.Context, mid, hid int64, ip string) (history *archive.ArcHistory, err error)
HistoryView get the history of hid
func (*Service) MissionOnlineByTid ¶
func (s *Service) MissionOnlineByTid(c context.Context, tid, plat int16) (res []*activity.ActWithTP, err error)
MissionOnlineByTid fn
func (*Service) MissionProtocol ¶
func (s *Service) MissionProtocol(c context.Context, missionID int64) (p *activity.Protocol, err error)
MissionProtocol fn
func (*Service) NotifyNetSafe ¶
NotifyNetSafe fn
func (*Service) Search ¶
func (s *Service) Search(c context.Context, mid int64, tid int16, keyword, order, class, ip string, pn, ps, coop int) (res *search.Result, err error)
Search all achive.
func (*Service) SimpleArcVideos ¶
func (s *Service) SimpleArcVideos(c context.Context, mid int64, tid int16, kw, order, class, ip string, pn, ps, coop int) (res *search.SimpleResult, err error)
SimpleArcVideos fn
func (*Service) SimpleArchiveVideos ¶
func (s *Service) SimpleArchiveVideos(c context.Context, mid, aid int64, ak, ck, ip string) (ap *archive.SimpleArchiveVideos, err error)
SimpleArchiveVideos fn
func (*Service) StaffApplySubmit ¶
func (s *Service) StaffApplySubmit(c context.Context, id, aid, mid, state, atype int64, flagAddBlack, flagRefuse int) (err error)
StaffApplySubmit fn
func (*Service) StaffTitles ¶
func (s *Service) StaffTitles(c context.Context) (titles []*tag.StaffTitle)
StaffTitles get staff titles.
func (*Service) StaffValidate ¶
StaffValidate func
func (*Service) UpValidate ¶
func (s *Service) UpValidate(c context.Context, mid int64, ip string) (uv *order.UpValidate, err error)
UpValidate func
func (*Service) Video ¶
func (s *Service) Video(c context.Context, mid, aid, cid int64, ip string) (video *api.Page, err error)
Video get video by aid and cid
func (*Service) VideoJam ¶
VideoJam get video traffic jam level from service level为0的时候,可以忽略错误处理,映射表里已经做了前端容错
func (*Service) VideoPoints ¶
func (s *Service) VideoPoints(c context.Context, aid, cid int64) (vp *archive.ViewPointRow, err error)
VideoPoints 获取视频最新生效的高能看点
func (*Service) Videos ¶
func (s *Service) Videos(c context.Context, mid, aid int64, ip string) (sa archive.SimpleArchive, svs []*archive.SimpleVideo, err error)
Videos get Simple Archive and Videos Info.
func (*Service) View ¶
func (s *Service) View(c context.Context, mid, aid int64, ip, platform string) (av *archive.ArcVideo, err error)
View get archive.
func (*Service) WebArchives ¶
func (s *Service) WebArchives(c context.Context, mid int64, tid int16, keyword, order, class, ip string, pn, ps, coop int) (res *search.Result, err error)
WebArchives achive list with appeal.
func (*Service) WebViewPoints ¶
func (s *Service) WebViewPoints(c context.Context, aid, cid, mid int64, ip string) (vps []*archive.ViewPointRow, err error)
WebViewPoints 创作中心高能看点接口