14 lines
503 B
Go
14 lines
503 B
Go
package models
|
|
|
|
type JsonResponse struct {
|
|
Error *bool `json:"error,omitempty"`
|
|
Message string `json:"message,omitempty"`
|
|
Data string `json:"data,omitempty"`
|
|
Event string `json:"event,omitempty"`
|
|
Path string `json:"path,omitempty"`
|
|
Value any `json:"value,omitempty"`
|
|
Set *[]Set `json:"set,omitempty"`
|
|
Subscribe *[]Subscribe `json:"subscribe,omitempty"`
|
|
Unubscribe *[]Subscribe `json:"unsubscribe,omitempty"`
|
|
}
|