e_exam.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package entity
  2. import (
  3. "time"
  4. )
  5. type ExamPao struct {
  6. TeamName string `json:"teamName"` // 队伍名字
  7. }
  8. type ExamPo struct {
  9. Id int `json:"id" db:"id"` // 自增id
  10. TeamName string `json:"teamName" db:"team_name"`
  11. Topic string `json:"topic" db:"topic"`
  12. BeginTime time.Time `json:"beginTime" db:"begin_time"`
  13. EndTime time.Time `json:"endTime" db:"end_time"`
  14. ScoreOnline float64 `json:"scoreOnline" db:"score_online"`
  15. ScoreOffline float64 `json:"scoreOffline" db:"score_offline"`
  16. ScoreFinal float64 `json:"scoreFinal" db:"score_final"`
  17. Details string `json:"details" db:"details"`
  18. ScoreReportPath string `json:"ScoreReportPath" db:"score_report_path"`
  19. }
  20. type ExamVo struct {
  21. Id int `json:"id" ` // 自增id
  22. TeamName string `json:"teamName"`
  23. Topic string `json:"topic" `
  24. BeginTime string `json:"beginTime" `
  25. EndTime string `json:"endTime"`
  26. ScoreOnline float64 `json:"scoreOnline" `
  27. ScoreOffline float64 `json:"scoreOffline" `
  28. ScoreFinal float64 `json:"scoreFinal"`
  29. Details string `json:"details" `
  30. ScoreReportPath string `json:"ScoreReportPath" `
  31. }
  32. type ExamPagePao struct {
  33. CurrentPage int `json:"currentPage"`
  34. PageSize int `json:"pageSize"`
  35. TeamName string `json:"teamName"` // 队伍名字
  36. Topic string `json:"topic"` // 赛题
  37. }