-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
修正TCP网络服务通道BUG
- Loading branch information
microrain
authored and
microrain
committed
Aug 17, 2023
1 parent
f415435
commit 26ab38f
Showing
7 changed files
with
77 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package model | ||
|
||
import "encoding/gob" | ||
|
||
func init() { | ||
gob.Register(SagooMqttModel{}) | ||
} | ||
|
||
// SagooMqttModel 主结构 | ||
type ( | ||
SagooMqttModel struct { | ||
Id string `json:"id"` | ||
Version string `json:"version"` | ||
Sys SysInfo `json:"sys"` | ||
Params map[string]Param `json:"params"` | ||
Method string `json:"method"` | ||
ModelFuncName string `json:"model_func_name"` | ||
ModelFuncIdentify string `json:"model_func_identify"` | ||
} | ||
|
||
SysInfo struct { | ||
Ack int `json:"ack"` | ||
} | ||
|
||
// Param 属性 | ||
Param struct { | ||
Value interface{} `json:"value"` | ||
Time int64 `json:"time"` | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters