deliver_exam.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package entity
  2. type ExamQuestion struct {
  3. Id int `db:"id" json:"id"`
  4. Name string `db:"name" json:"name"`
  5. Type string `db:"type" json:"type"`
  6. Flag string `db:"flag" json:"flag"`
  7. SortNo int `db:"sortno" json:"sortno"`
  8. Answer string `db:"answer" json:"-"`
  9. InAnswer string `db:"-" json:"answer"`
  10. Options []ExamOption `db:"-" json:"options"`
  11. }
  12. type ExamOption struct {
  13. Id int `db:"id" json:"id"`
  14. ExamId int `db:"exam_id" json:"exam_id"`
  15. Name string `db:"name" json:"name"`
  16. Flag string `db:"flag" json:"flag"`
  17. }
  18. // 20221009 护士加项产品考试 试题
  19. type ProductQuestion struct {
  20. ID int `db:"id" json:"title_id"`
  21. TitleName string `db:"name" json:"title_name"`
  22. AnswerValue int `db:"answer_value" json:"-"`
  23. PaperId int `db:"paper_id" json:"-"`
  24. SortNo int `db:"sort_no" json:"sort_no"`
  25. InAnswerValue int `db:"-" json:"answer"`
  26. Options []ProductOption `json:"options"`
  27. }
  28. // 20221009 护士加项产品考试 选项
  29. type ProductOption struct {
  30. ID int `db:"id" json:"-"`
  31. OptionName string `db:"name" json:"option_name"`
  32. Value int `db:"value" json:"value"`
  33. TitleId int `db:"title_id" json:"-"`
  34. }