60 lines
1.2 KiB
Go
60 lines
1.2 KiB
Go
package tcpserver
|
|
|
|
type MessageType struct {
|
|
Type string `json:"Type"`
|
|
}
|
|
type MessagePassword struct {
|
|
Pwd string `json:"Pwd,omitempty"`
|
|
}
|
|
type MessageImei struct {
|
|
Imei string `json:"Imei,omitempty"`
|
|
}
|
|
type MessageVer struct {
|
|
Ver string `json:"Ver,omitempty"`
|
|
}
|
|
type MessageTime struct {
|
|
Time int64 `json:"Time,omitempty"`
|
|
}
|
|
type MessageState struct {
|
|
State string `json:"State,omitempty"`
|
|
}
|
|
|
|
//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
|
|
MessagePassword
|
|
MessageVer
|
|
MessageTime
|
|
MessageState
|
|
MessageUpData `json:"Data,omitempty"`
|
|
MessageStartData
|
|
MessageConf `json:"Conf,omitempty"`
|
|
MessageVoiceConf `json:"VoiceConf,omitempty"`
|
|
}
|