add admin platform id

test-errcode
skiffer-git 2 years ago
parent e53a895471
commit 1a8197aef1

@ -14,6 +14,7 @@ const (
LinuxPlatformID = 7 LinuxPlatformID = 7
AndroidPadPlatformID = 8 AndroidPadPlatformID = 8
IPadPlatformID = 9 IPadPlatformID = 9
AdminPlatformID = 10
//Platform string match to Platform ID //Platform string match to Platform ID
IOSPlatformStr = "IOS" IOSPlatformStr = "IOS"
@ -25,6 +26,7 @@ const (
LinuxPlatformStr = "Linux" LinuxPlatformStr = "Linux"
AndroidPadPlatformStr = "APad" AndroidPadPlatformStr = "APad"
IPadPlatformStr = "IPad" IPadPlatformStr = "IPad"
AdminPlatformStr = "Admin"
//terminal types //terminal types
TerminalPC = "PC" TerminalPC = "PC"
@ -41,6 +43,7 @@ var PlatformID2Name = map[int]string{
LinuxPlatformID: LinuxPlatformStr, LinuxPlatformID: LinuxPlatformStr,
AndroidPadPlatformID: AndroidPadPlatformStr, AndroidPadPlatformID: AndroidPadPlatformStr,
IPadPlatformID: IPadPlatformStr, IPadPlatformID: IPadPlatformStr,
AdminPlatformID: AdminPlatformStr,
} }
var PlatformName2ID = map[string]int{ var PlatformName2ID = map[string]int{
IOSPlatformStr: IOSPlatformID, IOSPlatformStr: IOSPlatformID,
@ -52,6 +55,7 @@ var PlatformName2ID = map[string]int{
LinuxPlatformStr: LinuxPlatformID, LinuxPlatformStr: LinuxPlatformID,
AndroidPadPlatformStr: AndroidPadPlatformID, AndroidPadPlatformStr: AndroidPadPlatformID,
IPadPlatformStr: IPadPlatformID, IPadPlatformStr: IPadPlatformID,
AdminPlatformStr: AdminPlatformID,
} }
var Platform2class = map[string]string{ var Platform2class = map[string]string{
IOSPlatformStr: TerminalMobile, IOSPlatformStr: TerminalMobile,

Loading…
Cancel
Save