From 1a8197aef140ccad8f85b597a208505fbdf6d5b4 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Tue, 22 Nov 2022 16:20:18 +0800 Subject: [PATCH] add admin platform id --- pkg/common/constant/platform_number_id_to_name.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/common/constant/platform_number_id_to_name.go b/pkg/common/constant/platform_number_id_to_name.go index 0480db01b..3d5ab059b 100644 --- a/pkg/common/constant/platform_number_id_to_name.go +++ b/pkg/common/constant/platform_number_id_to_name.go @@ -14,6 +14,7 @@ const ( LinuxPlatformID = 7 AndroidPadPlatformID = 8 IPadPlatformID = 9 + AdminPlatformID = 10 //Platform string match to Platform ID IOSPlatformStr = "IOS" @@ -25,6 +26,7 @@ const ( LinuxPlatformStr = "Linux" AndroidPadPlatformStr = "APad" IPadPlatformStr = "IPad" + AdminPlatformStr = "Admin" //terminal types TerminalPC = "PC" @@ -41,6 +43,7 @@ var PlatformID2Name = map[int]string{ LinuxPlatformID: LinuxPlatformStr, AndroidPadPlatformID: AndroidPadPlatformStr, IPadPlatformID: IPadPlatformStr, + AdminPlatformID: AdminPlatformStr, } var PlatformName2ID = map[string]int{ IOSPlatformStr: IOSPlatformID, @@ -52,6 +55,7 @@ var PlatformName2ID = map[string]int{ LinuxPlatformStr: LinuxPlatformID, AndroidPadPlatformStr: AndroidPadPlatformID, IPadPlatformStr: IPadPlatformID, + AdminPlatformStr: AdminPlatformID, } var Platform2class = map[string]string{ IOSPlatformStr: TerminalMobile,