Documentation ¶
Index ¶
- Constants
- Variables
- func AllowBuild(buildParam int, compare int8, build int) (res bool)
- func AllowPlatForm(platStr string, plat int8) bool
- func BuildMap(pf int8) (res string)
- func PlatFormMap(pf int8) (res string)
- type AcademyIntro
- type ActIntro
- type BuildExp
- type EarningsCopyWriter
- type Editor
- func (e *Editor) ParseBgms() (valStr string)
- func (e *Editor) ParseCooperates() (valStr string)
- func (e *Editor) ParseFilters() (valStr string)
- func (e *Editor) ParseFonts() (valStr string)
- func (e *Editor) ParseStickers() (valStr string)
- func (e *Editor) ParseSubtitles() (valStr string)
- func (e *Editor) ParseThemes() (valStr string)
- func (e *Editor) ParseTransitions() (valStr string)
- func (e *Editor) ParseVStickers() (valStr string)
- type EditorData
- type Icon
- type Portal
- type PortalMeta
- type Up
- type WhiteExp
Constants ¶
View Source
const ( TypeSwitch = int8(-1) TypeSubtitle = int8(0) TypeFont = int8(1) TypeFilter = int8(2) TypeBGM = int8(3) TypeHotWord = int8(4) TypeSticker = int8(5) TypeIntro = int8(6) TypeVideoupSticker = int8(7) TypeTransition = int8(8) TypeCooperate = int8(9) // 拍摄之稿件合拍 TypeTheme = int8(10) // 编辑器的主题使用相关 //For portal White category WhiteGroupType = int8(1) WhitePercentType = int8(2) WhitePercentV00 = int64(0) WhitePercentV10 = int64(1) WhitePercentV20 = int64(2) WhitePercentV50 = int64(5) )
Type
Variables ¶
View Source
var ( MyArticle = "我的专栏" OpenArticle = "开通专栏" PortalIntro = 0 PortalNotice = 1 BgmFrom = map[int]int{ 0: 1, 1: 1, } )
platMap and Article vars
Functions ¶
func PlatFormMap ¶
PlatFormMap for platform from int to string map.
Types ¶
type AcademyIntro ¶
type AcademyIntro struct { Title string `json:"title"` Show int `json:"show"` URL string `json:"url"` }
AcademyIntro str
type EarningsCopyWriter ¶
type EarningsCopyWriter struct { Elec string `json:"elec"` Growth string `json:"growth"` Oasis string `json:"oasis"` }
EarningsCopyWriter for creator earnings copywriter.
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拍摄贴纸 VStickers 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"` //摄像头翻转 }
Editor str
func (*Editor) ParseCooperates ¶
ParseCooperates fn
func (*Editor) ParseTransitions ¶
ParseTransitions fn
type EditorData ¶
EditorData str
type Portal ¶
type Portal struct { ID int64 `json:"id"` Icon string `json:"icon"` Title string `json:"title"` Pos int8 `json:"position"` URL string `json:"url"` New int8 `json:"new"` More int8 `json:"more"` SubTitle string `json:"subtitle"` MTime time.Time `json:"mtime"` }
Portal for app portal
type PortalMeta ¶
type PortalMeta struct { ID int64 `json:"id"` Build int `json:"build"` Platform int8 `json:"platform"` ////0-全平台,1-android,2-ios,3-ipad,4-ipod Compare int8 `json:"compare"` //比较版本号符号类型,0-等于,1-小于,2-大于,3-不等于,4-小于等于,5-大于等于 State int8 `json:"state"` //状态,0-关闭,1-打开 Pos int8 `json:"pos"` Mark int8 `json:"mark"` //是否为新的标记,0-否,1-是 Type int8 `json:"type"` //业务类型,0-创作中心,1-主站APP个人中心配置 Title string `json:"title"` Icon string `json:"icon"` URL string `json:"url"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` PTime time.Time `json:"ptime"` More int8 `json:"more"` BuildExps []*BuildExp `json:"-"` // add from app 537 SubTitle string `json:"subtitle"` WhiteExps []*WhiteExp `json:"-"` }
PortalMeta for app.
func (*PortalMeta) AllowMaterial ¶
func (pm *PortalMeta) AllowMaterial(platStr string, build int) (ret bool)
AllowMaterial fn
Click to show internal directories.
Click to hide internal directories.