package client import "git.andreafazzi.eu/andrea/probo/models" type Response struct { Status string `json:"status"` Content interface{} `json:"content"` } type Question struct { Text string `json:"text"` } type Answer struct { Text string Correct bool } type Quiz struct { Question *Question `json:"question"` Answers []*Answer `json:"answers"` } type ReadAllQuizResponse struct { Status string `json:"status"` Content []*models.Quiz `json:"content"` } type CreateQuizResponse struct { Status string `json:"status"` Content *models.Quiz `json:"content"` } type UpdateQuizResponse struct { Status string `json:"status"` Content *models.Quiz `json:"content"` } type CreateQuestionRequest struct { *Question } type CreateAnswerRequest struct { *Answer } type CreateQuizRequest struct { *Quiz } type UpdateQuizRequest struct { ID string *Quiz }