⚡ Network package message omitempty
This commit is contained in:
parent
df5676cbe4
commit
208da7e90f
@ -5,7 +5,7 @@ import jsoniter "github.com/json-iterator/go"
|
|||||||
type NetworkPackage struct {
|
type NetworkPackage struct {
|
||||||
Action string `json:"w"`
|
Action string `json:"w"`
|
||||||
Endpoint string `json:"e,omitempty"`
|
Endpoint string `json:"e,omitempty"`
|
||||||
Message string `json:"m"`
|
Message string `json:"m,omitempty"`
|
||||||
Payload any `json:"p"`
|
Payload any `json:"p"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user