新增处理

This commit is contained in:
2024-12-24 14:07:17 +08:00
parent 6e4b37776b
commit 2a2e15c3d0
5 changed files with 36 additions and 121 deletions

View File

@@ -3,7 +3,6 @@ package tcpserver
type MessageType struct {
Type string `json:"Type"`
}
type MessagePassword struct {
Pwd string `json:"Pwd,omitempty"`
}
@@ -24,12 +23,6 @@ type MessageData struct {
UpDataStruct
}
type UpDataStruct struct {
Sum int `json:"sum"`
Time int `json:"time"`
Mile int `json:"mile"`
}
type Message struct {
MessageType
MessageImei
@@ -39,3 +32,9 @@ type Message struct {
MessageState
MessageData `json:"Data"`
}
type UpDataStruct struct {
Sum int `json:"sum"`
Time int `json:"time"`
Mile int `json:"mile"`
}