archive

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: 34 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 {
	ArcTip string
	// contains filtered or unexported fields
}

Service struct

func New

func New(c *conf.Config, rpcdaos *service.RPCDaos, p *service.Public) *Service

New get service

func (*Service) Activities

func (s *Service) Activities(c context.Context) (acts []*activity.Activity)

Activities get activity list.

func (*Service) AddNetSafeMd5

func (s *Service) AddNetSafeMd5(c context.Context, nid int64, md5 string) (err error)

AddNetSafeMd5 fn

func (*Service) AllowCommercial

func (s *Service) AllowCommercial(c context.Context, mid int64) (ok int)

AllowCommercial fn

func (*Service) AllowOrderUps

func (s *Service) AllowOrderUps(mid int64) (ok bool)

AllowOrderUps 检查用户商单信息

func (*Service) AppFormats

func (s *Service) AppFormats(c context.Context) (af []*archive.AppFormat, err error)

AppFormats for app portal list.

func (*Service) AppModuleShowMap

func (s *Service) AppModuleShowMap(mid int64, lotteryCheck bool) (ret map[string]bool)

AppModuleShowMap fn 编辑的时候暂时不允许重新开启动态抽奖或者修改动态抽奖

func (*Service) AppTypes

func (s *Service) AppTypes(c context.Context, lang string) (tps []*archive.Type)

AppTypes 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) Close

func (s *Service) Close()

Close dao

func (*Service) Del

func (s *Service) Del(c context.Context, mid, aid int64, ip string) (err error)

Del fn 1,unbind act;2,decrease coin;3,unbind order;4,clean memcache

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

func (s *Service) Dpub() (dpub *archive.Dpub)

Dpub for app view.

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

func (s *Service) Fav(c context.Context, mid int64) (res map[string]interface{})

Fav 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

func (s *Service) NotifyNetSafe(c context.Context, nid int64) (err error)

NotifyNetSafe fn

func (*Service) Oasis

func (s *Service) Oasis(c context.Context, mid int64, ip string) (oa *order.Oasis, err error)

Oasis for orders.

func (*Service) Ping

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

Ping service

func (*Service) Porder

func (s *Service) Porder(c context.Context, aid int64) (pd *archive.Porder, err error)

Porder 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

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

StaffValidate func

func (*Service) TagCheck

func (s *Service) TagCheck(c context.Context, mid int64, tagName string) (code int, msg string)

TagCheck fn

func (*Service) TopAct

func (s *Service) TopAct() (ret []*actmdl.Activity)

TopAct fn

func (*Service) Types

func (s *Service) Types(c context.Context, lang string) (tps []*archive.Type)

Types get typelist.

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

func (s *Service) VideoJam(c context.Context, ip string) (j *archive.VideoJam, err error)

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 创作中心高能看点接口

Jump to

Keyboard shortcuts

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