app

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

Documentation

Index

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 AllowBuild

func AllowBuild(buildParam int, compare int8, build int) (res bool)

AllowBuild fn

func AllowPlatForm

func AllowPlatForm(platStr string, plat int8) bool

AllowPlatForm fn

func BuildMap

func BuildMap(pf int8) (res string)

BuildMap for build from int to string map.

func PlatFormMap

func PlatFormMap(pf int8) (res string)

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 ActIntro

type ActIntro struct {
	Title string `json:"title"`
	Show  int    `json:"show"`
	URL   string `json:"url"`
}

ActIntro str

type BuildExp

type BuildExp struct {
	Condition int8 `json:"conditions"`
	Build     int  `json:"build"`
}

BuildExp 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) ParseBgms

func (e *Editor) ParseBgms() (valStr string)

ParseBgms fn

func (*Editor) ParseCooperates

func (e *Editor) ParseCooperates() (valStr string)

ParseCooperates fn

func (*Editor) ParseFilters

func (e *Editor) ParseFilters() (valStr string)

ParseFilters fn

func (*Editor) ParseFonts

func (e *Editor) ParseFonts() (valStr string)

ParseFonts fn

func (*Editor) ParseStickers

func (e *Editor) ParseStickers() (valStr string)

ParseStickers fn

func (*Editor) ParseSubtitles

func (e *Editor) ParseSubtitles() (valStr string)

ParseSubtitles fn

func (*Editor) ParseThemes

func (e *Editor) ParseThemes() (valStr string)

ParseThemes fn

func (*Editor) ParseTransitions

func (e *Editor) ParseTransitions() (valStr string)

ParseTransitions fn

func (*Editor) ParseVStickers

func (e *Editor) ParseVStickers() (valStr string)

ParseVStickers fn

type EditorData

type EditorData struct {
	AID  int64
	CID  int64
	Type int8
	Data string
}

EditorData str

type Icon

type Icon struct {
	State bool   `json:"state"`
	Name  string `json:"name"`
	URL   string `json:"url"`
}

Icon 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

type Up

type Up struct {
	Arc int `json:"archive"`
	Art int `json:"article"`
}

Up verify author.

type WhiteExp

type WhiteExp struct {
	TP    int8  `json:"type"`
	Value int64 `json:"value"`
}

WhiteExp str

Jump to

Keyboard shortcuts

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