新增协议
This commit is contained in:
@@ -19,10 +19,32 @@ type MessageState struct {
|
||||
State string `json:"State,omitempty"`
|
||||
}
|
||||
|
||||
type MessageData struct {
|
||||
UpDataStruct
|
||||
//type MessageData struct {
|
||||
// UpDataStruct
|
||||
//}
|
||||
|
||||
type MessageUpData struct {
|
||||
Sum int `json:"sum"`
|
||||
Time int `json:"time"`
|
||||
Mile int `json:"mile"`
|
||||
}
|
||||
|
||||
type MessageStartData struct {
|
||||
StartDatas []string `json:"Datas,omitempty"`
|
||||
}
|
||||
|
||||
type MessageConf struct {
|
||||
Zong string `json:"zong"`
|
||||
Ceng []string `json:"ceng"`
|
||||
Height string `json:"height"`
|
||||
}
|
||||
type MessageVoiceConf struct {
|
||||
Fyr string `json:"fyr"`
|
||||
Yl string `json:"yl"`
|
||||
Ys string `json:"ys"`
|
||||
Yd string `json:"yd"`
|
||||
IsPlay string `json:"isPlay"`
|
||||
}
|
||||
type Message struct {
|
||||
MessageType
|
||||
MessageImei
|
||||
@@ -30,11 +52,8 @@ type Message struct {
|
||||
MessageVer
|
||||
MessageTime
|
||||
MessageState
|
||||
MessageData `json:"Data"`
|
||||
}
|
||||
|
||||
type UpDataStruct struct {
|
||||
Sum int `json:"sum"`
|
||||
Time int `json:"time"`
|
||||
Mile int `json:"mile"`
|
||||
MessageUpData `json:"Data,omitempty"`
|
||||
MessageStartData
|
||||
MessageConf `json:"Conf,omitempty"`
|
||||
MessageVoiceConf `json:"VoiceConf,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user