e_exam.go 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package entity
  2. import (
  3. "time"
  4. )
  5. type ExamPao struct {
  6. TeamName string `json:"teamName"` // 队伍名字
  7. PositionX string `json:"positionX"` // X坐标(判断是否在起始点)
  8. PositionY string `json:"positionY"` // Y坐标(判断是否在起始点)
  9. EquipmentNo string `json:"equipmentNo"` // 设备编号
  10. }
  11. type ExamPo struct {
  12. Id int `json:"id" db:"id"` // 自增id
  13. TeamName string `json:"teamName" db:"team_name"`
  14. Topic string `json:"topic" db:"topic"`
  15. BeginTime time.Time `json:"beginTime" db:"begin_time"`
  16. EndTime time.Time `json:"endTime" db:"end_time"`
  17. ScoreOnline float64 `json:"scoreOnline" db:"score_online"`
  18. ScoreOffline float64 `json:"scoreOffline" db:"score_offline"`
  19. ScoreFinal float64 `json:"scoreFinal" db:"score_final"`
  20. Details string `json:"details" db:"details"`
  21. ScoreReportPath string `json:"ScoreReportPath" db:"score_report_path"`
  22. }
  23. type ExamVo struct {
  24. Id int `json:"id" ` // 自增id
  25. TeamName string `json:"teamName"`
  26. Topic string `json:"topic" `
  27. BeginTime string `json:"beginTime" `
  28. EndTime string `json:"endTime"`
  29. ScoreOnline float64 `json:"scoreOnline" `
  30. ScoreOffline float64 `json:"scoreOffline" `
  31. ScoreFinal float64 `json:"scoreFinal"`
  32. Details string `json:"details" `
  33. ScoreReportPath string `json:"ScoreReportPath" `
  34. }
  35. type ExamPagePao struct {
  36. CurrentPage int `json:"currentPage"`
  37. PageSize int `json:"pageSize"`
  38. TeamName string `json:"teamName"` // 队伍名字
  39. Topic string `json:"topic"` // 赛题
  40. }
  41. type ExamReportPao struct {
  42. Id int `json:"id"`
  43. TeamName string `json:"teamName"`
  44. ScoreFinal int `json:"scoreFinal"`
  45. BeginTime string `json:"beginTime"`
  46. EndTime string `json:"endTime"`
  47. }
  48. /*
  49. {
  50. "TotalScore": 10,
  51. "SceneName": "在场景“路段-障碍物识别与响应",
  52. "DeductedScore": 0,
  53. "Reason": "",
  54. "BeginTime": 1715389830.1170852,
  55. "EndTime": 1715389842.4866548
  56. },
  57. */
  58. type DetailsDto struct {
  59. TotalScore float64 `json:"TotalScore"`
  60. SceneName string `json:"SceneName"`
  61. DeductedScore float64 `json:"DeductedScore"`
  62. Reason string `json:"Reason"`
  63. BeginTime float64 `json:"BeginTime"`
  64. EndTime float64 `json:"EndTime"`
  65. }