// Package api provides primitives to interact with the openapi HTTP API. // // Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.0 DO NOT EDIT. package api const ( CookieAuthScopes = "cookieAuth.Scopes" ) // Defines values for GameType. const ( City GameType = "city" Virtual GameType = "virtual" ) // CodeEdit defines model for codeEdit. type CodeEdit struct { Code string `json:"code"` Description string `json:"description"` } // CodeView defines model for codeView. type CodeView struct { Code *string `json:"code,omitempty"` Description string `json:"description"` } // GameEdit defines model for gameEdit. type GameEdit struct { Description string `json:"description"` Points int `json:"points"` Tasks []TaskEdit `json:"tasks"` Title string `json:"title"` Type GameType `json:"type"` } // GameType defines model for gameType. type GameType string // GameView defines model for gameView. type GameView struct { Description string `json:"description"` Id int `json:"id"` Title string `json:"title"` Type GameType `json:"type"` } // SolutionEdit defines model for solutionEdit. type SolutionEdit struct { After int `json:"after"` Text string `json:"text"` } // SolutionView defines model for solutionView. type SolutionView struct { After int `json:"after"` Text *string `json:"text,omitempty"` } // TaskEdit defines model for taskEdit. type TaskEdit struct { Codes []CodeEdit `json:"codes"` Solutions []SolutionEdit `json:"solutions"` Text string `json:"text"` Title string `json:"title"` } // TaskView defines model for taskView. type TaskView struct { Codes []CodeView `json:"codes"` Entered []CodeView `json:"entered"` Solutions []SolutionView `json:"solutions"` Text string `json:"text"` Title string `json:"title"` } // ErrorResponse defines model for errorResponse. type ErrorResponse struct { Code int `json:"code"` Message string `json:"message"` } // GameListResponse defines model for gameListResponse. type GameListResponse = []GameView // GameResponse defines model for gameResponse. type GameResponse = GameView // TaskResponse defines model for taskResponse. type TaskResponse = TaskView // UserResponse defines model for userResponse. type UserResponse struct { Email string `json:"email"` Experience int `json:"experience"` Games []GameView `json:"games"` Id int `json:"id"` Level int `json:"level"` Username string `json:"username"` } // EnterCodeRequest defines model for enterCodeRequest. type EnterCodeRequest struct { Code string `json:"code"` } // GameEditRequest defines model for gameEditRequest. type GameEditRequest = GameEdit // Login defines model for login. type Login struct { Email string `json:"email"` Password string `json:"password"` } // Register defines model for register. type Register struct { Email string `json:"email"` Password string `json:"password"` Password2 string `json:"password2"` Username string `json:"username"` } // EnterCodeJSONBody defines parameters for EnterCode. type EnterCodeJSONBody struct { Code string `json:"code"` } // PostUserLoginJSONBody defines parameters for PostUserLogin. type PostUserLoginJSONBody struct { Email string `json:"email"` Password string `json:"password"` } // PostUserRegisterJSONBody defines parameters for PostUserRegister. type PostUserRegisterJSONBody struct { Email string `json:"email"` Password string `json:"password"` Password2 string `json:"password2"` Username string `json:"username"` } // EnterCodeJSONRequestBody defines body for EnterCode for application/json ContentType. type EnterCodeJSONRequestBody EnterCodeJSONBody // CreateGameJSONRequestBody defines body for CreateGame for application/json ContentType. type CreateGameJSONRequestBody = GameEdit // PostUserLoginJSONRequestBody defines body for PostUserLogin for application/json ContentType. type PostUserLoginJSONRequestBody PostUserLoginJSONBody // PostUserRegisterJSONRequestBody defines body for PostUserRegister for application/json ContentType. type PostUserRegisterJSONRequestBody PostUserRegisterJSONBody