-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnspx.go
65 lines (55 loc) · 1.5 KB
/
nspx.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package nspx
// TYPES Declaration
// Product type
type Product struct {
ID string `json:"id"`
Name string `json:"name"`
ProductType string `json:"type"`
ProductPrice string `json:"price"`
ProductWeight int `json:"productWeight"`
BatteryAvl bool `json:"batteryAvl"`
BatteryType string `json:"batteryType"`
BatteryPower int `json:"batteryPower"`
// color, brand,
}
// Electronics type
// self powered / powered electronics
// screenSize, batteryPower, batteryTime, fingerPrint (self-powered)
// cameras, wifi, blueTooth, chargerType, audioJack,
// monitors, storages (hardDisk, usb, ssd), headPhones, otherSoundProducts, ram, cpu, pci, graphicCard,
//
type Electronics struct {
}
// Laptop type
type Laptop struct {
BacklitKb bool `json:"backlitKb"`
TouchScreen bool `json:"touchScreen"`
WiFi bool `json:"wifi"`
WiFiConnectivity string `json:"wifiConnectivity"`
ScreenToBodyRatio int `json:"screenToBodyRatio"`
CPU string `json:"cpu"`
GPU string `json:"gpu"`
DisplaySize int `json:"displaySize"`
DisplayResolution string `json:"displayResolution"`
RAMSticks int `json:"ramSticks"`
RAMSize int `json:"ramSize"`
DDRGen int `json:"ddrGen"`
}
// Pc type
type Pc struct {
}
// Mac type
type Mac struct {
}
// Mobile type
type Mobile struct {
}
// LaptopParts type
type LaptopParts struct {
}
// PcParts type
type PcParts struct {
}
// MobileParts type
type MobileParts struct {
}