Files
galaxy-game/model/rest/command.go
T
Ilia Denisov 8f982278d2 support multi-module (#4)
* add multimodule
* re-package modules
2026-02-22 08:57:19 +02:00

17 lines
361 B
Go

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)
}