-
Notifications
You must be signed in to change notification settings - Fork 146
/
responseDevice.go
69 lines (52 loc) · 1.76 KB
/
responseDevice.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
66
67
68
69
package response
import "github.com/ArtisanCloud/PowerWeChat/v3/src/kernel/response"
type DeviceApplyData struct {
ApplyID int `json:"apply_id"`
AuditStatus int `json:"audit_status"`
AuditComment string `json:"audit_comment"`
}
type ResponseDeviceApply struct {
response.ResponseOfficialAccount
Data *DeviceApplyData `json:"data"`
}
// -------------------------------------------------------
type DeviceApplyDataStatus struct {
ApplyTime int `json:"apply_time"`
AuditComment string `json:"audit_comment"`
AuditStatus int `json:"audit_status"`
AuditTime int `json:"audit_time"`
}
type ResponseDeviceApplyStatus struct {
response.ResponseOfficialAccount
Data *DeviceApplyDataStatus `json:"data"`
}
// -------------------------------------------------------
type ResponseDeviceBindPoi struct {
response.ResponseOfficialAccount
Data interface{} `json:"data"`
}
// -------------------------------------------------------
type Device struct {
Comment string `json:"comment"`
DeviceID int `json:"device_id"`
Major int `json:"major"`
Minor int `json:"minor"`
Status int `json:"status"`
LastActiveTime int `json:"last_active_time"`
PoiID int `json:"poi_id"`
UUID string `json:"uuid"`
PoiAppID string `json:"poi_appid,omitempty"`
ShakePv int `json:"shake_pv"`
ShakeUv int `json:"shake_uv"`
ClickPv int `json:"click_pv"`
ClickUv int `json:"click_uv"`
}
type SearchData struct {
Devices []*Device `json:"devices"`
TotalCount int `json:"total_count"`
}
type ResponseDeviceSearch struct {
response.ResponseOfficialAccount
Data *SearchData `json:"data"`
}
// -------------------------------------------------------