add files

This commit is contained in:
Adrian Zürcher
2025-04-25 18:56:27 +02:00
parent 2b5a5a7905
commit 85bd8de2a2
14 changed files with 667 additions and 0 deletions

13
jsonResponse.go Normal file
View File

@@ -0,0 +1,13 @@
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"`
}