common

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: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//VideoStRecommend 精选,在APP端加权露出
	VideoStRecommend = 5
	//VideoStHighGrade 优质,回查被选为优质,在APP端普通露出
	VideoStHighGrade = 4
	//VideoStCanPlay 回查可放出,在APP端普通露出
	VideoStCanPlay = 3
	//VideoStCheckBack 待冷启动回查,在APP端部分区域露出
	VideoStCheckBack = 2
	//VideoStPassReview 新鲜,安全审核通过,在APP端普通露出
	VideoStPassReview = 1
	//VideoStPendingPassReview 新鲜,未安全审核,在APP端普通露出
	VideoStPendingPassReview = 0
	//VideoStPassReviewReject 待安全审核,在APP端仅自见
	VideoStPassReviewReject = -1
	//VideoStCheckBackPatialPlay 回查不放出,在APP部分放出
	VideoStCheckBackPatialPlay = -2
	//VideoInActive 安全审核不通过,在APP端不可见,待物理删除
	VideoInActive = -3
	//VideoDeleted Up主删除,在APP端不可见,待物理删除
	VideoDeleted = -4
)

视频状态集合

Variables

View Source
var FeedStates = xstr.JoinInts(svFeedOutStates)

FeedStates .

View Source
var SpaceFanStates = xstr.JoinInts(svSpaceFanOutStates)

SpaceFanStates .

View Source
var SpaceOwnerStates = xstr.JoinInts(svSpaceOwnerOutStates)

SpaceOwnerStates .

SvAllOutState APP全部可露出状态

Functions

func IsRecommendSvStateAvailable

func IsRecommendSvStateAvailable(state int64) (available bool)

IsRecommendSvStateAvailable 推荐页中的状态过滤

func IsSearchSvStateAvailable

func IsSearchSvStateAvailable(state int64) (available bool)

IsSearchSvStateAvailable 搜索页中的状态过滤

func IsSvStateAvailable

func IsSvStateAvailable(state int64) (available bool)

IsSvStateAvailable 广义上是否可见,包含用户自见state,用于获取详情,当前和owner available一致

func IsSvStateGuestAvailable

func IsSvStateGuestAvailable(state int64) (available bool)

IsSvStateGuestAvailable 客态可见的视频状态

func IsSvStateOwnerAvailable

func IsSvStateOwnerAvailable(state int64) (available bool)

IsSvStateOwnerAvailable 主态可见的视频状态

func IsTopicSvStateAvailable

func IsTopicSvStateAvailable(state int64) (available bool)

IsTopicSvStateAvailable 话题页中的状态过滤

Types

This section is empty.

Directories

Path Synopsis
db
bbq

Jump to

Keyboard shortcuts

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