diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-03 22:18:31 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-03 22:18:31 +0900 |
| commit | 7a4171d021a709e0af1e0e13830514c67ec97702 (patch) | |
| tree | bdef0421d29b9ee737e869677166d4b3ebdadb0f /backend/api | |
| parent | f70d6eed9f2c519aed030c9dbda99ed0435991a0 (diff) | |
| download | iosdc-japan-2025-albatross-7a4171d021a709e0af1e0e13830514c67ec97702.tar.gz iosdc-japan-2025-albatross-7a4171d021a709e0af1e0e13830514c67ec97702.tar.zst iosdc-japan-2025-albatross-7a4171d021a709e0af1e0e13830514c67ec97702.zip | |
feat: partially implement submit action
Diffstat (limited to 'backend/api')
| -rw-r--r-- | backend/api/generated.go | 90 |
1 files changed, 64 insertions, 26 deletions
diff --git a/backend/api/generated.go b/backend/api/generated.go index bb9b624..f7da9ee 100644 --- a/backend/api/generated.go +++ b/backend/api/generated.go @@ -103,6 +103,17 @@ type GamePlayerMessageC2SReady struct { Type string `json:"type"` } +// GamePlayerMessageC2SSubmit defines model for GamePlayerMessageC2SSubmit. +type GamePlayerMessageC2SSubmit struct { + Data GamePlayerMessageC2SSubmitPayload `json:"data"` + Type string `json:"type"` +} + +// GamePlayerMessageC2SSubmitPayload defines model for GamePlayerMessageC2SSubmitPayload. +type GamePlayerMessageC2SSubmitPayload struct { + Code string `json:"code"` +} + // GamePlayerMessageS2C defines model for GamePlayerMessageS2C. type GamePlayerMessageS2C struct { union json.RawMessage @@ -429,6 +440,32 @@ func (t *GamePlayerMessageC2S) MergeGamePlayerMessageC2SCode(v GamePlayerMessage return err } +// AsGamePlayerMessageC2SSubmit returns the union data inside the GamePlayerMessageC2S as a GamePlayerMessageC2SSubmit +func (t GamePlayerMessageC2S) AsGamePlayerMessageC2SSubmit() (GamePlayerMessageC2SSubmit, error) { + var body GamePlayerMessageC2SSubmit + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromGamePlayerMessageC2SSubmit overwrites any union data inside the GamePlayerMessageC2S as the provided GamePlayerMessageC2SSubmit +func (t *GamePlayerMessageC2S) FromGamePlayerMessageC2SSubmit(v GamePlayerMessageC2SSubmit) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeGamePlayerMessageC2SSubmit performs a merge with any union data inside the GamePlayerMessageC2S, using the provided GamePlayerMessageC2SSubmit +func (t *GamePlayerMessageC2S) MergeGamePlayerMessageC2SSubmit(v GamePlayerMessageC2SSubmit) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + func (t GamePlayerMessageC2S) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err @@ -1549,32 +1586,33 @@ func (sh *strictHandler) GetToken(ctx echo.Context, params GetTokenParams) error // Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ - "H4sIAAAAAAAC/+xZX2/bNhD/Kho3oBugxY4TFJ3f0qzNOnSd0TTYQxEYtHS2mUmkSlJNvELffSCpP6ZF", - "W7SjpunWPAS2yLv78e53vPPpE4pYmjEKVAo0/oQyzHEKErj+tgQcA5/iXC4ZJ/9gSRhVzwlF43IRhYji", - "FNAYnVm7QsThQ044xGgseQ4hEtESUqzE5SpTAkJyQheoKEKUYbmcLnAKUxLXBtTDRn216qGYUAkL4KhQ", - "qjmIjFEB+kDPcfwWPuQgpPoWMSqB6o84yxISaeiDG2FO2ej9gcMcjdH3g8ZZA7MqBi84Z6WpGETESWa8", - "pGwFvDRWhOgl4zMSx0A/v+XGVBGiN0y+ZDmNP7/ZN0wGc22qCNEVrVgDD2DasqaWSwml0AgpbnOWAZfE", - "UCEFIfAC1Ee4w2mWKOa8oh9xQpq4hQ6uNvR7Xyu5rjey2Q1EOuAXmrebZmMisgSvprRcbWyr/cFx22SI", - "4pxrb00FRIzGwpI7eToMW8QP0Voy1VuPXRszzmYJpF2un5TblG8l5hLiKZaW9l9Onz59dvps6IQjJJbm", - "vDRPleeihA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NCHOOl85BrNgSEHvU/5YIGbBZYCSKEJ32j7dBqPbcsy8IlNBJu9DaPYqqKXmaYr5cQSjtF6EV1d6X", + "cqRceMW3o/CGrXLWBds90MGPBI6ge8X8THv7wYKtJE7bJaqbNZsdFyADXAHO8m0UGOWPTgF9yfWSmVHp", + "gdF/qAut7SXZq/FsubHya16fyA2W47zYd+JF43yfNnoiNDZt9ixPkmWQZzGWq9PSb+f+2kX613EqL/UG", + "q4NZp23VJ7QX40u96ikW4wq/VzHWrWNbMTYq9ynGRuLxijFOkhUGFdndDda33uor6q18u6pvDdX/oqFS", + "lEjY3PzozJhwMGHEhHyrl3TV4mRYiBvG442xZvn0eHDi6nHu+COWrshcmr46qOzfhYWS/Q0bs5Nb9Xe0", + "9r99nKSV+FDSakcU3YBKBXXFuL1papd/ATwwxNEcqja3LZl80AueYoX4T8XFnG2xYFz+nJDPEAdYmwsM", + "wKIoin8DAAD//5oSt8+jKgAA", } // GetSwagger returns the content of the embedded swagger specification file |
