Network package message omitempty

This commit is contained in:
LittleSheep 2024-08-23 19:33:02 +08:00
parent df5676cbe4
commit 208da7e90f

View File

@ -5,7 +5,7 @@ import jsoniter "github.com/json-iterator/go"
type NetworkPackage struct {
Action string `json:"w"`
Endpoint string `json:"e,omitempty"`
Message string `json:"m"`
Message string `json:"m,omitempty"`
Payload any `json:"p"`
}