splash

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ratio

func Ratio(w, h int) float64

Ratio calc width/height ratio.

Types

type CmConfig

type CmConfig struct {
	MaxTime      int `json:"max_time"`
	MinInterval  int `json:"min_interval"`
	PullInterval int `json:"pull_interval"`
}

type CmSplash

type CmSplash struct {
	*CmConfig
	List []*List `json:"list,omitempty"`
	Show []*Show `json:"show,omitempty"`
}

type List

type List struct {
	ID                    int64           `json:"id"`
	Type                  int8            `json:"type"`
	CardType              int8            `json:"card_type"`
	Duration              int16           `json:"duration"`
	Start                 xtime.Time      `json:"begin_time,omitempty"`
	End                   xtime.Time      `json:"end_time,omitempty"`
	Image                 string          `json:"thumb"`
	Hash                  string          `json:"hash"`
	LogoURL               string          `json:"logo_url"`
	LogoHash              string          `json:"logo_hash"`
	Skip                  int8            `json:"skip"`
	URI                   string          `json:"uri"`
	VideoURL              string          `json:"video_url,omitempty"`
	VideoHash             string          `json:"video_hash,omitempty"`
	VideoWidth            int             `json:"video_width,omitempty"`
	VideoHeight           int             `json:"video_height,omitempty"`
	URITitle              string          `json:"uri_title"`
	Source                int             `json:"source,omitempty"`
	CmMark                int             `json:"cm_mark,omitempty"`
	AdCb                  string          `json:"ad_cb,omitempty"`
	ResourceID            int             `json:"resource_id,omitempty"`
	RequestID             string          `json:"request_id,omitempty"`
	ClientIP              string          `json:"client_ip,omitempty"`
	IsAd                  bool            `json:"is_ad"`
	IsAdLoc               bool            `json:"is_ad_loc,omitempty"`
	Schema                string          `json:"schema,omitempty"`
	SchemaTitle           string          `json:"schema_title,omitempty"`
	SchemaPackageName     string          `json:"schema_package_name,omitempty"`
	SchemaCallupWhiteList []string        `json:"schema_callup_white_list,omitempty"`
	Extra                 json.RawMessage `json:"extra,omitempty"`
}

type Show

type Show struct {
	ID    int64      `json:"id"`
	Stime xtime.Time `json:"stime"`
	Etime xtime.Time `json:"etime"`
}

type Splash

type Splash struct {
	ID        int64      `json:"id"`
	Type      int8       `json:"type"`
	Animate   int8       `json:"animate"`
	Duration  int16      `json:"duration"`
	Start     xtime.Time `json:"start_time,omitempty"`
	End       xtime.Time `json:"end_time,omitempty"`
	Image     string     `json:"thumb"`
	Hash      string     `json:"hash"`
	Times     int16      `json:"times"`
	Skip      int8       `json:"skip"`
	URI       string     `json:"uri"`
	Area      string     `json:"-"`
	Plat      int8       `json:"-"`
	Goto      string     `json:"-"`
	Param     string     `json:"-"`
	Width     int        `json:"-"`
	Height    int        `json:"-"`
	Build     int        `json:"-"`
	Condition string     `json:"-"`
	Operate   int        `json:"-"`
	NoPreview int        `json:"-"`
	// bitrhday
	BirthStart      string `json:"start_date,omitempty"`
	BirthEnd        string `json:"end_date,omitempty"`
	BirthStartMonth string `json:"-"`
	BirthEndMonth   string `json:"-"`
}

Splash is splash type.

func (*Splash) BirthDate

func (s *Splash) BirthDate()

BirthDate

func (*Splash) PlatChange

func (s *Splash) PlatChange()

PlatChange

Jump to

Keyboard shortcuts

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