Documentation
¶
Index ¶
- Constants
- func CheckHandle(c *gin.Context, err error)
- func ErrorHandle(c *gin.Context, err error)
- func NotFind(c *gin.Context)
- func OkWithDetailed(data interface{}, message string, c *gin.Context)
- func OkWithMessage(message string, c *gin.Context)
- func Result(code int, data interface{}, msg string, c *gin.Context)
- type Answer
- type Compile
- type Execute
- type JudgePractice
- type JudgeSimple
- type MultipleChoiceExam
- type MultipleChoicePractice
- type MultipleChoiceSimple
- type ProgramDetail
- type ProgramPractice
- type ProgramSimple
- type PublicProgramDetail
- type PublicProgramSimple
- type QuestionSituation
- type RankingListItem
- type Response
- type SituationDetail
- type SubmitResponse
- type SupplyBlankDetail
- type SupplyBlankPractice
- type SupplyBlankSimple
- type TargetDetail
- type TargetGenerateInstance
- type TargetSimple
- type TargetSimplePractice
Constants ¶
View Source
const ( ERROR = 7 SUCCESS = 0 NOT_FIND = 404 ClientError = 400 ServiceError = 500 )
Variables ¶
This section is empty.
Functions ¶
func CheckHandle ¶
func ErrorHandle ¶
func OkWithDetailed ¶
func OkWithMessage ¶
Types ¶
type Execute ¶
type Execute struct { Output string `json:"output"` // 标准输出 ojBo.ExecuteSituation }
type JudgePractice ¶
type JudgePractice struct {
questionBankBo.PracticeModel
}
type JudgeSimple ¶
type JudgeSimple struct { global.GVA_MODEL questionBankPo.SimpleModel }
type MultipleChoiceExam ¶
type MultipleChoiceExam struct { questionBankBo.PracticeModel MostOptions int `json:"mostOptions" form:"mostOptions" gorm:"column:most_options;comment:最多可选项;"` IsIndefinite int `json:"isIndefinite" form:"isIndefinite" gorm:"column:is_indefinite"` }
type MultipleChoicePractice ¶
type MultipleChoicePractice struct { questionBankBo.PracticeModel MostOptions int `json:"mostOptions" form:"mostOptions" gorm:"column:most_options;comment:最多可选项;"` }
type MultipleChoiceSimple ¶
type MultipleChoiceSimple struct { global.GVA_MODEL questionBank.SimpleModel }
type ProgramDetail ¶
type ProgramDetail struct { global.GVA_MODEL questionBankPo.CourseSupport questionBankBo.CourseSupportPtr questionBankBo.ProgramOjSupport questionBank.BasicModel }
type ProgramPractice ¶
type ProgramPractice struct { questionBankBo.PracticeModel questionBankBo.DefaultCodes `json:"defaultCodes"` }
func (*ProgramPractice) Convert ¶
func (p *ProgramPractice) Convert(practice *questionBankBo.ProgramPractice) error
type ProgramSimple ¶
type ProgramSimple struct { global.GVA_MODEL questionBank.SimpleModel }
type PublicProgramDetail ¶
type PublicProgramDetail struct { global.GVA_MODEL questionBank.BasicModel questionBankBo.LanguageSupports `json:"languageSupports"` questionBankBo.ProgramCases `json:"programCases"` questionBankBo.DefaultCodes `json:"defaultCodes"` questionBankBo.ReferenceAnswers `json:"referenceAnswers"` }
type PublicProgramSimple ¶
type PublicProgramSimple struct { global.GVA_MODEL questionBank.SimpleModel }
type QuestionSituation ¶
type RankingListItem ¶
type SituationDetail ¶
type SituationDetail struct { *questionBank.BasicModelWith `gorm:"-"` Id uint QuestionType questionType.QuestionType QuestionId uint Score uint CommitTime time.Time }
type SubmitResponse ¶
type SupplyBlankDetail ¶
type SupplyBlankDetail struct { global.GVA_MODEL questionBankBo.CourseSupportPtr questionBankPo.SupplyBlankModel Answers questionBankBo.SupplyBlankAnswers `json:"answers"` }
type SupplyBlankPractice ¶
type SupplyBlankPractice struct { questionBankBo.PracticeModel Num int `json:"num" form:"num" gorm:"column:num;comment:可填项;"` }
type SupplyBlankSimple ¶
type SupplyBlankSimple struct { global.GVA_MODEL questionBankPo.SimpleModel }
type TargetDetail ¶
type TargetDetail struct { *questionBankBo.TargetDetail IsGenerateAddress bool Address string IsDone bool HistoryScore int }
type TargetGenerateInstance ¶
type TargetSimple ¶
type TargetSimple struct { global.GVA_MODEL questionBank.SimpleModel }
type TargetSimplePractice ¶
type TargetSimplePractice struct { global.GVA_MODEL questionBank.SimpleModel IsDone bool `gorm:"-"` HistoryScore uint `gorm:"-"` }
Click to show internal directories.
Click to hide internal directories.