|
|
|
@ -12,6 +12,8 @@ const (
|
|
|
|
|
WebPlatformID = 5
|
|
|
|
|
MiniWebPlatformID = 6
|
|
|
|
|
LinuxPlatformID = 7
|
|
|
|
|
AndroidPadPlatformID = 8
|
|
|
|
|
IPadPlatformID = 9
|
|
|
|
|
|
|
|
|
|
//Platform string match to Platform ID
|
|
|
|
|
IOSPlatformStr = "IOS"
|
|
|
|
@ -21,6 +23,8 @@ const (
|
|
|
|
|
WebPlatformStr = "Web"
|
|
|
|
|
MiniWebPlatformStr = "MiniWeb"
|
|
|
|
|
LinuxPlatformStr = "Linux"
|
|
|
|
|
AndroidPadPlatformStr = "APad"
|
|
|
|
|
IPadPlatformStr = "IPad"
|
|
|
|
|
|
|
|
|
|
//terminal types
|
|
|
|
|
TerminalPC = "PC"
|
|
|
|
@ -35,6 +39,8 @@ var PlatformID2Name = map[int]string{
|
|
|
|
|
WebPlatformID: WebPlatformStr,
|
|
|
|
|
MiniWebPlatformID: MiniWebPlatformStr,
|
|
|
|
|
LinuxPlatformID: LinuxPlatformStr,
|
|
|
|
|
AndroidPadPlatformID: AndroidPadPlatformStr,
|
|
|
|
|
IPadPlatformID: IPadPlatformStr,
|
|
|
|
|
}
|
|
|
|
|
var PlatformName2ID = map[string]int{
|
|
|
|
|
IOSPlatformStr: IOSPlatformID,
|
|
|
|
@ -44,6 +50,8 @@ var PlatformName2ID = map[string]int{
|
|
|
|
|
WebPlatformStr: WebPlatformID,
|
|
|
|
|
MiniWebPlatformStr: MiniWebPlatformID,
|
|
|
|
|
LinuxPlatformStr: LinuxPlatformID,
|
|
|
|
|
AndroidPadPlatformStr: AndroidPadPlatformID,
|
|
|
|
|
IPadPlatformStr: IPadPlatformID,
|
|
|
|
|
}
|
|
|
|
|
var Platform2class = map[string]string{
|
|
|
|
|
IOSPlatformStr: TerminalMobile,
|
|
|
|
|