新增协议

This commit is contained in:
2025-01-02 09:32:39 +08:00
parent 792679098c
commit 27c08f735c
5 changed files with 309 additions and 133 deletions

View File

@@ -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"`
}