chore: re-package

This commit is contained in:
IliaDenisov
2026-03-10 15:46:18 +02:00
parent bb2bb899de
commit dabe1f091a
99 changed files with 151 additions and 98 deletions
+16
View File
@@ -0,0 +1,16 @@
package rest
import "encoding/json"
type Command struct {
Actor string `json:"actor" binding:"notblank"`
Commands []json.RawMessage `json:"cmd" binding:"min=1"`
}
func (o Command) MarshalBinary() (data []byte, err error) {
return json.Marshal(&o)
}
func (o *Command) UnmarshalBinary(data []byte) error {
return json.Unmarshal(data, o)
}