Documentation ¶
Index ¶
- Constants
- func InCopyrights(cp int8) (ok bool)
- type AdInfo
- type Ancestor
- type AppRequest
- type ArcParam
- type Archive
- type CreatorParam
- type DescFormat
- type Editor
- type FilterData
- type Geetest
- type Location
- type Pay
- type PayAsset
- type PoiObj
- type Porder
- type Staff
- type StaffTypeConf
- type StaffView
- type Subtitle
- type Type
- type Video
- type VideoExpire
- type VideoParam
- type Vote
- type Watermark
Constants ¶
const ( // open state StateOpen = int8(0) StateOrange = int8(1) // forbit state StateForbidWait = int8(-1) StateForbidRecicle = int8(-2) StateForbidPolice = int8(-3) StateForbidLock = int8(-4) StateForbidFackLock = int8(-5) StateForbidFixed = int8(-6) StateForbidLater = int8(-7) // StateForbidPatched = int8(-8) StateForbidWaitXcode = int8(-9) StateForbidAdminDelay = int8(-10) StateForbidFixing = int8(-11) // StateForbidStorageFail = int8(-12) StateForbidOnlyComment = int8(-13) // StateForbidTmpRecicle = int8(-14) StateForbidDispatch = int8(-15) StateForbidXcodeFail = int8(-16) StateForbidSubmit = int8(-30) StateForbidUserDelay = int8(-40) StateForbidUpDelete = int8(-100) // attribute yes and no AttrYes = int32(1) AttrNo = int32(0) // attribute bit AttrBitNoRank = uint(0) AttrBitNoIndex = uint(1) AttrBitNoWeb = uint(2) AttrBitNoMobile = uint(3) AttrBitNoSearch = uint(4) AttrBitOverseaLock = uint(5) AttrBitNoRecommend = uint(6) // AttrBitHideCoins = uint(7) AttrBitHasHD5 = uint(8) // AttrBitVisitorDm = uint(9) AttrBitAllowBp = uint(10) AttrBitIsBangumi = uint(11) // AttrBitAllowDownload = uint(12) AttrBitHideClick = uint(13) AttrBitAllowTag = uint(14) AttrBitIsFromArcAPI = uint(15) AttrBitJumpURL = uint(16) AttrBitIsMovie = uint(17) AttrBitBadgepay = uint(18) AttrBitStaff = uint(24) //联合投稿 // copyright state CopyrightUnknow = int8(0) CopyrightOriginal = int8(1) CopyrightCopy = int8(2) //up_from UpFromWeb = int8(0) UpFromPGC = int8(1) UpFromWindows = int8(2) UpFromAPP = int8(3) UpFromMAC = int8(4) UpFromSecretPGC = int8(5) UpFromCoopera = int8(6) UpFromCreator = int8(7) // 创作姬 UpFromAPPAndroid = int8(8) // 安卓主APP UpFromAPPiOS = int8(9) // iOS主APP UpFromCM = int8(10) // Web商单用户投稿 UpFromIpad = int8(11) // ipad投稿的用户 AdvertisingTypeID = 166 // 广告分区的typeid )
State + Attr + Copyright + Upfrom
const ( // ArchiveAddLogID 投稿日志 ArchiveAddLogID = int(81) // UgcpayAddarcProtocol ugc新增稿件时候记录的协议版本 UgcpayAddarcProtocol = int(83) // LogTypeSuccess 投稿成功 LogTypeSuccess = int(0) // LogTypeFail 投稿失败 LogTypeFail = int(1) )
ArchiveAddLogID
const ( VideoUploadInfo = int8(0) VideoXcodeSDFail = int8(1) VideoXcodeSDFinish = int8(2) VideoXcodeHDFail = int8(3) VideoXcodeHDFinish = int8(4) VideoDispatchRunning = int8(5) VideoDispatchFinish = int8(6) VideoStatusOpen = int16(0) VideoStatusAccess = int16(10000) VideoStatusWait = int16(-1) VideoStatusRecicle = int16(-2) VideoStatusLock = int16(-4) VideoStatusXcodeFail = int16(-16) VideoStatusSubmit = int16(-30) VideoStatusDelete = int16(-100) XcodeFailZero = 0 )
VideoStatus
Variables ¶
This section is empty.
Functions ¶
func InCopyrights ¶
InCopyrights check copyright in all copyrights.
Types ¶
type AdInfo ¶
type AdInfo struct { Nation string `json:"nation"` Provin string `json:"province"` Distri string `json:"district"` City string `json:"city"` }
AdInfo str
type AppRequest ¶
AppRequest str
type ArcParam ¶
type ArcParam struct { Aid int64 `json:"aid"` Mid int64 `json:"mid"` Author string `json:"author"` TypeID int16 `json:"tid"` Title string `json:"title"` Cover string `json:"cover"` Tag string `json:"tag"` Copyright int8 `json:"copyright"` NoReprint int8 `json:"no_reprint"` OrderID int64 `json:"order_id"` Desc string `json:"desc"` Source string `json:"source"` Attribute int32 `json:"-"` // NOTE: not allow user OpenElec int8 `json:"open_elec"` MissionID int `json:"mission_id"` FromIP int64 `json:"from_ip"` IPv6 []byte `json:"ipv6"` UpFrom int8 `json:"up_from"` BizFrom int8 `json:"biz_from"` DTime time.Time `json:"dtime"` Videos []*VideoParam `json:"videos"` Body string `json:"body,omitempty"` CodeMode bool `json:"code_mode,omitempty"` DescFormatID int `json:"desc_format_id,omitempty"` Dynamic string `json:"dynamic,omitempty"` Porder *Porder `json:"porder"` Lang string `json:"lang"` Watermark *Watermark `json:"watermark"` Geetest *Geetest `json:"geetest"` LotteryID int64 `json:"lottery_id"` Subtitle *Subtitle `json:"subtitle"` Pay *Pay `json:"pay"` UgcPay int8 `json:"ugcpay"` // videoup-service 需要按照这个字段转成attribute FollowMids []int64 `json:"follow_mids"` PoiObj *PoiObj `json:"poi_object"` Staffs []*Staff `json:"staffs"` HandleStaff bool `json:"handle_staff"` Vote *Vote `json:"vote"` }
ArcParam str
func (*ArcParam) DisableVideoDesc ¶
DisableVideoDesc fn
func (*ArcParam) EmptyVideoEditInfo ¶
func (ap *ArcParam) EmptyVideoEditInfo()
EmptyVideoEditInfo fn
func (*ArcParam) ForbidAddVideoType ¶
ForbidAddVideoType fun 连载剧集:15 完结剧集:34 电视剧相关:128 电影相关:82
func (*ArcParam) ForbidCopyrightAndTypes ¶
ForbidCopyrightAndTypes fun // 32 完结动画; 33 连载动画
func (*ArcParam) ForbidMultiVideoType ¶
ForbidMultiVideoType fun 欧美电影,日本电影,国产电影,其他国家
type Archive ¶
type Archive struct { Aid int64 `json:"aid"` Mid int64 `json:"mid"` TypeID int16 `json:"tid"` // HumanRank int `json:"-"` Title string `json:"title"` Author string `json:"author"` Cover string `json:"cover"` Tag string `json:"tag"` Duration int64 `json:"duration"` Copyright int8 `json:"copyright"` Source string `json:"source"` NoReprint int8 `json:"no_reprint"` UgcPay int8 `json:"ugcpay"` OrderID int64 `json:"order_id"` Desc string `json:"desc"` MissionID int `json:"mission_id"` // Round int8 `json:"-"` // Forward int64 `json:"-"` Attribute int32 `json:"attribute"` // Access int16 `json:"-"` // desc_format DescFormatID int `json:"desc_format_id,omitempty"` State int8 `json:"state"` StateDesc string `json:"state_desc"` // dynamic Dynamic string `json:"dynamic"` Porder *Porder `json:"porder"` // time DTime time.Time `json:"dtime"` PTime time.Time `json:"ptime"` CTime time.Time `json:"ctime"` }
Archive is archive model.
func (*Archive) NotAllowUp ¶
NotAllowUp check archive is or not allow update state.
type CreatorParam ¶
type CreatorParam struct { Aid int64 `form:"aid" validate:"required"` Title string `form:"title" validate:"required"` Desc string `form:"desc" validate:"required"` Tag string `form:"tag" validate:"required"` OpenElec int8 `form:"open_elec"` Build string `form:"build" validate:"required"` Platform string `form:"platform" validate:"required"` }
CreatorParam struct
type DescFormat ¶
type DescFormat struct { ID int `json:"id"` TypeID int16 `json:"typeid"` Copyright int8 `json:"copyright"` Lang int8 `json:"lang"` }
DescFormat str
type Editor ¶
type Editor struct { CID int64 `json:"cid"` UpFrom int8 `json:"upfrom"` // filled by backend // ids set Filters interface{} `json:"filters"` // 滤镜 Fonts interface{} `json:"fonts"` //字体 Subtitles interface{} `json:"subtitles"` //字幕 Bgms interface{} `json:"bgms"` //bgm Stickers interface{} `json:"stickers"` //3d拍摄贴纸 VideoupStickers interface{} `json:"videoup_stickers"` //2d投稿贴纸 Transitions interface{} `json:"trans"` //视频转场特效 // add from app535 Themes interface{} `json:"themes"` //编辑器的主题使用相关 Cooperates interface{} `json:"cooperates"` //拍摄之稿件合拍 // switch env 0/1 AudioRecord int8 `json:"audio_record"` //录音 Camera int8 `json:"camera"` //拍摄 Speed int8 `json:"speed"` //变速 CameraRotate int8 `json:"camera_rotate"` //摄像头翻转 // count from app536 PicCount uint16 `json:"pic_count"` // 图片个数 VideoCount uint16 `json:"video_count"` // 视频个数 }
Editor str
type FilterData ¶
type FilterData struct { Level int64 `json:"level"` Limit int64 `json:"limit"` Msg string `json:"msg"` TypeID []int64 `json:"typeid"` Hit []string `json:"hit"` }
FilterData filter-service data
type Geetest ¶
type Geetest struct { Challenge string `json:"challenge"` Validate string `json:"validate"` Seccode string `json:"seccode"` Success int `json:"success"` }
Geetest str
type Pay ¶
type Pay struct { Open int8 `json:"open"` Price int `json:"price"` ProtocolID string `json:"protocol_id"` ProtocolAccept int8 `json:"protocol_accept"` RefuseUpdate bool `json:"-"` }
Pay str
type PayAsset ¶
type PayAsset struct { Price int `json:"price"` PlatformPrice map[string]int `json:"platform_price"` }
PayAsset str
type PoiObj ¶
type PoiObj struct { POI string `json:"poi"` Type int32 `json:"type"` Addr string `json:"address"` ShowTitle string `json:"show_title"` Title string `json:"title"` AdInfo *AdInfo `json:"ad_info"` Ancestors []*Ancestor `json:"ancestors"` Distance float64 `json:"distance"` ShowDistrance string `json:"show_distance"` Location *Location `json:"location"` }
PoiObj str
type Porder ¶
type Porder struct { FlowID uint `json:"flow_id"` // 0/1 是否确实参加了广告平台 IndustryID int64 `json:"industry_id"` // 2 (游戏) BrandName string `json:"brand_name"` // FGO游戏 BrandID int64 `json:"brand_id"` // 2 Official int8 `json:"official"` // 0/1 ShowType string `json:"show_type"` // 2,3,4 }
Porder str new porder, ads provoder
type StaffTypeConf ¶
联合投稿的分区配置
type StaffView ¶
type StaffView struct { ID int64 `json:"id"` ApMID int64 `json:"apply_staff_mid"` ApTitle string `json:"apply_title"` ApAID int64 `json:"apply_aid"` ApType int `json:"apply_type"` ApState int `json:"apply_state"` ApStaffID int64 `json:"apply_asid"` //Staff表的主键ID StaffState int `json:"staff_state"` StaffTitle string `json:"staff_title"` }
StaffView Archive staff
type Type ¶
type Type struct { ID int16 `json:"id"` PID int16 `json:"pid"` Name string `json:"name"` Description string `json:"description"` }
Type type from archive
type Video ¶
type Video struct { // ID int64 `json:"-"` Aid int64 `json:"aid"` Title string `json:"title"` Desc string `json:"desc"` Filename string `json:"filename"` // SrcType string `json:"-"` // Cid int64 `json:"-"` // Duration int64 `json:"-"` // Filesize int64 `json:"-"` // Resolutions string `json:"-"` Index int `json:"index"` // Playurl string `json:"-"` Status int16 `json:"status"` StatusDesc string `json:"status_desc"` FailCode int8 `json:"fail_code"` FailDesc string `json:"fail_desc"` // XcodeState int8 `json:"-"` // Attribute int32 `json:"-"` CTime time.Time `json:"ctime"` }
Video is archive_video model.
type VideoExpire ¶
VideoExpire str
type VideoParam ¶
type VideoParam struct { Title string `json:"title"` Desc string `json:"desc"` Filename string `json:"filename"` Cid int64 `json:"cid"` Sid int64 `json:"sid"` Editor *Editor `json:"editor"` }
VideoParam str