aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/api/generated.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/api/generated.go')
-rw-r--r--backend/api/generated.go67
1 files changed, 39 insertions, 28 deletions
diff --git a/backend/api/generated.go b/backend/api/generated.go
index 8a74b01..15f1c17 100644
--- a/backend/api/generated.go
+++ b/backend/api/generated.go
@@ -39,6 +39,12 @@ const (
N1V1 GameGameType = "1v1"
)
+// Defines values for ProblemLanguage.
+const (
+ Php ProblemLanguage = "php"
+ Swift ProblemLanguage = "swift"
+)
+
// Error defines model for Error.
type Error struct {
Message string `json:"message"`
@@ -72,12 +78,16 @@ type LatestGameState struct {
// Problem defines model for Problem.
type Problem struct {
- Description string `json:"description"`
- ProblemID int `json:"problem_id"`
- SampleCode string `json:"sample_code"`
- Title string `json:"title"`
+ Description string `json:"description"`
+ Language ProblemLanguage `json:"language"`
+ ProblemID int `json:"problem_id"`
+ SampleCode string `json:"sample_code"`
+ Title string `json:"title"`
}
+// ProblemLanguage defines model for Problem.Language.
+type ProblemLanguage string
+
// RankingEntry defines model for RankingEntry.
type RankingEntry struct {
Code nullable.Nullable[string] `json:"code"`
@@ -1130,30 +1140,31 @@ func (sh *strictHandler) PostLogin(ctx echo.Context) error {
// Base64 encoded, gzipped, json marshaled Swagger object
var swaggerSpec = []string{
- "H4sIAAAAAAAC/+xYW2/UuBf/Kpb/f4mX0ExpVbHdp7ILiBVCI1i0WiEUeZIzMy6OHWyH6SzKd1/Zzs2J",
- "00kLZbfV9qGa2D73n8/FX3Eq8kJw4Frh86+4IJLkoEHary2QDGRCSr0Vkv5FNBXcrFOOz+tNHGFOcsDn",
- "+MI7FWEJn0sqIcPnWpYQYZVuISeGXO8LQ6C0pHyDqyrCBdHbZENySGjWCjCLHftmdwZjyjVsQOLKsJag",
- "CsEVWIOekewtfC5BafOVCq6B25+kKBhNrerxpXJWdnz/L2GNz/H/4s5ZsdtV8XMpRS0qA5VKWjgvGVlI",
- "1sKqCL8QckWzDPj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E3LHhCTWSYbj4LyhVGN4+pt66kXJTMrZHZZES3YDlX48w",
+ "Aw+kM0DMDibIOmYaa+5UrJrZ5aaEZBDnxh036vwI+ak1/KYENZzxhuBzTOYkqz9FKZvIGIuQI304yauH",
+ "LGhmOyRBlUyjjZCo7nKnAee63nnp7a07+1+Cu98E1w4iDwSHDhYWivXTYRBuO6KTzEtwB/voPwxJL8Wp",
+ "HyfH2V8kTakhIWzlnbhV8htjMJAN5zXpl4z1M0qXEZVp3c1OTihHzfvbA+rxbmnYNH6le0uZhdz63eWH",
+ "AG3P7lnjo/fmdGiMbJjPwejKxgg1JA+yVBcDGwzcmNi6x5zpOvzKHvlWdbAgSu2E9N912tXjk1M88Rb0",
+ "FQ88vJmja9FfUUDvaLUWH2Hw/Hxt/o56/w+a4pjMQatX2A0CgWuj6p2LuwerdwokcsCpqqr6OwAA///J",
+ "KoN2UB8AAA==",
}
// GetSwagger returns the content of the embedded swagger specification file