mirror of
https://github.com/sammyshear/trivia-chase.git
synced 2025-12-06 03:55:53 +00:00
27 lines
714 B
Go
27 lines
714 B
Go
package api
|
|
|
|
type QuestionReq struct {
|
|
Token string `json:"token"`
|
|
Category uint `json:"category"`
|
|
}
|
|
|
|
type QuestionResp struct {
|
|
Results []TextQuestion `json:"results"`
|
|
ResponseCode uint `json:"response_code"`
|
|
}
|
|
|
|
type TextQuestion struct {
|
|
Difficulty string `json:"difficulty"`
|
|
Question string `json:"question"`
|
|
CorrectAnswer string `json:"correct_answer"`
|
|
Type string `json:"type"`
|
|
IncorrectAnswers []string `json:"incorrect_answers"`
|
|
Category uint `json:"category"`
|
|
}
|
|
|
|
type SessionResp struct {
|
|
ResponseMessage string `json:"response_message"`
|
|
Token string `json:"token"`
|
|
ResponseCode uint `json:"response_code"`
|
|
}
|