model

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

View Source
const (
	// PlatAndroid is int8 for android.
	PlatAndroid = int8(0)
	// PlatIPhone is int8 for iphone.
	PlatIPhone = int8(1)
	// PlatIPad is int8 for ipad.
	PlatIPad = int8(2)
	// PlatWPhone is int8 for wphone.
	PlatWPhone = int8(3)
	// PlatAndroidG is int8 for Android Global.
	PlatAndroidG = int8(4)
	// PlatIPhoneI is int8 for Iphone Global.
	PlatIPhoneI = int8(5)
	// PlatIPadI is int8 for IPAD Global.
	PlatIPadI = int8(6)
	// PlatAndroidTV is int8 for AndroidTV Global.
	PlatAndroidTV = int8(7)
	// PlatAndroidI is int8 for Android Global.
	PlatAndroidI = int8(8)
	// PlatAndroidB is int8 for Android Blue.
	PlatAndroidB = int8(9)
	// PlatIPhoneB is int8 for Ios Blue
	PlatIPhoneB = int8(10)
	// PlatBilistudio is int8 for bilistudio
	PlatBilistudio = int8(11)
	// PlatAndroidTVYST is int8 for AndroidTV_YST Global.
	PlatAndroidTVYST = int8(12)

	GotoAv         = "av"
	GotoWeb        = "web"
	GotoBangumi    = "bangumi"
	GotoSp         = "sp"
	GotoLive       = "live"
	GotoGame       = "game"
	GotoPegasusTab = "pegasus"
)

Variables

View Source
var (
	PegasusHandler = func(m *tab.Menu) func(uri string) string {
		return func(uri string) string {
			if m == nil {
				return uri
			}
			if m.Name != "" {
				return fmt.Sprintf("%s?name=%s", uri, m.Name)
			}
			return uri
		}
	}
)

Functions

func FillURI

func FillURI(gt, param string, f func(uri string) string) (uri string)

FillURI deal app schema.

func InvalidBuild

func InvalidBuild(srcBuild, cfgBuild int, cfgCond string) bool

InvalidBuild check source build is not allow by config build and condition. eg: when condition is gt, means srcBuild must gt cfgBuild, otherwise is invalid srcBuild.

func IsAndroid

func IsAndroid(plat int8) bool

IsAndroid check plat is android or ipad.

func IsIOS

func IsIOS(plat int8) bool

IsIOS check plat is iphone or ipad.

func IsOverseas

func IsOverseas(plat int8) bool

IsOverseas is overseas

func MobiAPPBuleChange

func MobiAPPBuleChange(mobiApp string) string

MobiAPPBuleChange

func Plat

func Plat(mobiApp, device string) int8

Plat return plat by platStr or mobiApp

func PlatAPPBuleChange

func PlatAPPBuleChange(plat int8) int8

func URLHTTPS

func URLHTTPS(uri string) (url string)

Types

This section is empty.

Directories

Path Synopsis
Package version is a generated protocol buffer package.
Package version is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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