Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-12-31 11:32:51 +08:00
parent bb4d95ffa0
commit 156a28f27d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 49 additions and 14 deletions

View file

@ -33,15 +33,16 @@ const (
)
type Result struct {
Cmd string `json:"cmd"`
ReqId float64 `json:"reqId"`
AppId string `json:"app"`
SessionId string `json:"sid"`
PushMode PushMode `json:"pushMode"`
Callback interface{} `json:"callback"`
Code int `json:"code"`
Msg string `json:"msg"`
Data interface{} `json:"data"`
Cmd string `json:"cmd"`
ReqId float64 `json:"reqId"`
AppId string `json:"app"`
SessionId string `json:"sid"`
PushMode PushMode `json:"pushMode"`
Callback interface{} `json:"callback"`
Code int `json:"code"`
Msg string `json:"msg"`
Data interface{} `json:"data"`
Context map[string]any `json:"context,omitempty"`
}
func NewResult() *Result {