Documentation
¶
Index ¶
- type AudioResponse
- type IntValue
- type Model
- type Problem
- type ProblemAddParameter
- type ProblemFindAllResponse
- type ProblemFindParameter
- type ProblemFindResponse
- type ProblemIDs
- type ProblemIDsParameter
- type ProblemUpdateParameter
- type SimpleProblem
- type StudyRecord
- type StudyRecords
- type StudyResultParameter
- type WorkbookAddParameter
- type WorkbookResponseHTTPEntity
- type WorkbookSearchResponse
- type WorkbookUpdateParameter
- type WorkbookWithProblemsHTTPEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioResponse ¶
type Model ¶
type Problem ¶
type Problem struct { Model Number int `json:"number"` ProblemType string `json:"problemType" validate:"required"` Properties json.RawMessage `json:"properties"` }
type ProblemAddParameter ¶
type ProblemAddParameter struct { Number int `json:"number" binding:"required"` Properties json.RawMessage `json:"properties"` }
type ProblemFindAllResponse ¶
type ProblemFindAllResponse struct { TotalCount int `json:"totalCount" validate:"gte=0"` Results []*SimpleProblem `json:"results" validate:"dive"` }
type ProblemFindParameter ¶
type ProblemFindResponse ¶
type ProblemIDs ¶
type ProblemIDs struct {
Results []uint `json:"results"`
}
type ProblemIDsParameter ¶
type ProblemIDsParameter struct {
IDs []uint `json:"ids"`
}
type ProblemUpdateParameter ¶
type ProblemUpdateParameter struct { Number int `json:"number" binding:"required"` Properties json.RawMessage `json:"properties"` }
type SimpleProblem ¶
type SimpleProblem struct { ID uint `json:"id" validate:"required,gte=1"` Number int `json:"number"` ProblemType string `json:"problemType" validate:"required"` Properties json.RawMessage `json:"properties"` }
type StudyRecord ¶
type StudyRecords ¶
type StudyRecords struct {
Records []*StudyRecord `json:"records" validate:"dive"`
}
type StudyResultParameter ¶
type WorkbookAddParameter ¶
type WorkbookSearchResponse ¶
type WorkbookSearchResponse struct { TotalCount int `json:"totalCount" validate:"gte=0"` Results []*WorkbookResponseHTTPEntity `json:"results" validate:"dive"` }
type WorkbookUpdateParameter ¶
type WorkbookWithProblemsHTTPEntity ¶
type WorkbookWithProblemsHTTPEntity struct { Model Name string `json:"name" binding:"required"` Lang2 string `json:"lang2" validate:"required,len=2"` ProblemType string `json:"problemType" binding:"required"` QuestionText string `json:"questionText"` Problems []*Problem `json:"problems" validate:"dive"` Subscribed bool `json:"subscribed"` }
Click to show internal directories.
Click to hide internal directories.