-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmiot_resp.go
142 lines (122 loc) · 2.87 KB
/
cmiot_resp.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
package cmiot_v2
type BaseResponse struct {
Status string `json:"status"`
Message string `json:"message"`
}
// 卡状态
type UserStatusRealSingle struct {
*BaseResponse
Result []struct {
Status string `json:"STATUS"`
} `json:"result"`
}
// 开关机状态
type UserOnOffRealSingle struct {
*BaseResponse
Result []struct {
Status string `json:"status"`
} `json:"result"`
}
// 生命周期
type UserLifeCyCle struct {
*BaseResponse
Result []struct {
LifeCycle string `json:"lifecycle"`
OpenTime string `json:"opentime"`
} `json:"result"`
}
type Gprs struct {
Left string `json:"left"` //剩余
ProdId string `json:"prodid"`
ProdInstId string `json:"prodinstid"`
ProdName string `json:"prodname"`
Total string `json:"total"` //总流量
Used string `json:"used"` //已使用
}
type GprsBatch struct {
Status string `json:"status"`
Message string `json:"message"`
Msisdn string `json:"msisdn"`
ProdId string `json:"prodId"`
PodInstId string `json:"podInstId"`
ProdName string `json:"prodName"`
GprsTotal string `json:"gprsTotal"`
GprsUsed string `json:"gprsUsed"`
GprsLeft string `json:"gprsLeft"`
}
type GprsBatchResult struct {
*BaseResponse
Result []GprsBatch `json:"result"`
}
type GprsRealTimeInfo struct {
*BaseResponse
Result []struct {
Gprs []*Gprs `json:"gprs"`
} `json:"result"`
}
type CardUnusualNum struct {
*BaseResponse
Result []struct {
CardUnusualNum string `json:"cardUnusualNum"`
} `json:"result"`
}
type GprsRealSingle struct {
APN string `json:"APN"`
GPRSSTATUS string `json:"GPRSSTATUS"`
IP string `json:"IP"`
RAT string `json:"RAT"`
}
type GprsRealSingleResp struct {
*BaseResponse
Result []*GprsRealSingle `json:"result"`
}
type GprsUsedInfoSingle struct {
TotalGps string `json:"total_gprs"`
}
type GprsUsedInfoSingleResp struct {
*BaseResponse
Result []*GprsUsedInfoSingle `json:"result"`
}
type BalanceRealSingle struct {
Balance string `json:"balance"`
}
type BalanceRealSingleResp struct {
*BaseResponse
Result []*BalanceRealSingle `json:"result"`
}
type GroupUserInfo struct {
Total string `json:"total"`
}
type GroupUserInfoResp struct {
*BaseResponse
Result []*GroupUserInfo `json:"result"`
}
type GprsUsedInfoSingleByDate struct {
Gprs string `json:"gprs"`
}
type GprsUsedInfoSingleByDateResp struct {
*BaseResponse
Result []*GprsUsedInfoSingleByDate `json:"result"`
}
/*
"normalnum": "28596", "othernum": "3", "sleepnum": "2001", "testnum": "564"
*/
type QueryCardCount struct {
NormalNum int `json:"normalnum"`
OtherNum int `json:"othernum"`
SleepNum int `json:"sleepnum"`
TestNum int `json:"testnum"`
}
type QueryCardCountResp struct {
*BaseResponse
Result []*QueryCardCount `json:"result"`
}
type QueryCardInfoResp struct {
*BaseResponse
Result []*CardInfo `json:"result"`
}
type CardInfo struct {
IMSI string
MSISDN string
ICCID string
}