Skip to content

Commit 2c9069c

Browse files
authored
Remove unused browser and device fields from model
Removed unused fields related to browser and device types from the model.
1 parent 937b9b8 commit 2c9069c

1 file changed

Lines changed: 3 additions & 14 deletions

File tree

model/model.go

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@ type SecurityScore struct {
3333
NoRecords *int
3434
HumanScore *int
3535
BotScore *int
36-
MainstreamBrowser *int
37-
OtherBrowser *int
38-
DesktopDevice *int
39-
MobileDevice *int
40-
OtherDevice *int
41-
MainstreamOS *int
42-
OtherOS *int
4336
}
4437

4538
type SecurityInfo struct {
@@ -49,6 +42,9 @@ type SecurityInfo struct {
4942
ThreatLevel string
5043
UsageType string // connection_type、usage_type、asn_type
5144
CompanyType string // company type
45+
BrowserType string
46+
DeviceType string
47+
OSType string
5248
IsCloudProvider string
5349
IsDatacenter string // datacenter、server、hosting
5450
IsMobile string
@@ -87,13 +83,6 @@ var TranslationMap = map[string]string{
8783
"ThreatLevel": "威胁级别",
8884
"HumanScore": "真人占比(越高越好)",
8985
"BotScore": "机器占比(越低越好)",
90-
"MainstreamBrowser": "主流浏览器",
91-
"OtherBrowser": "其他浏览器",
92-
"DesktopDevice": "桌面设备",
93-
"MobileDevice": "移动设备",
94-
"OtherDevice": "其他设备",
95-
"MainstreamOS": "主流操作系统",
96-
"OtherOS": "其他操作系统",
9786
"UsageType": "使用类型",
9887
"CompanyType": "公司类型",
9988
"IsCloudProvider": "是否云提供商",

0 commit comments

Comments
 (0)