labour.go 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package blocked
  2. import xtime "go-common/library/time"
  3. // LabourAnswerLog is blocked_labour_answer_log model.
  4. type LabourAnswerLog struct {
  5. ID int64 `gorm:"column:id" json:"id"`
  6. UID int64 `gorm:"column:mid" json:"uid"`
  7. Score int16 `gorm:"column:score" json:"score"`
  8. Content string `gorm:"column:content" json:"content"`
  9. Stime xtime.Time `gorm:"column:start_time" json:"start_time"`
  10. CTime xtime.Time `gorm:"column:ctime" json:"-"`
  11. MTime xtime.Time `gorm:"column:mtime" json:"-"`
  12. }
  13. // TableName blocked_labour_answer_log tablename
  14. func (*LabourAnswerLog) TableName() string {
  15. return "blocked_labour_answer_log"
  16. }
  17. // LabourQuestion is blocked_labour_question model.
  18. type LabourQuestion struct {
  19. ID int64 `gorm:"column:id" json:"id"`
  20. Question string `gorm:"column:question" json:"question"`
  21. Ans int8 `gorm:"column:ans" json:"ans"`
  22. AVID int64 `gorm:"column:av_id" json:"av_id"`
  23. Status int8 `gorm:"column:status" json:"status"`
  24. Source int8 `gorm:"column:source" json:"source"`
  25. IsDel int8 `gorm:"column:isdel" json:"isdel"`
  26. Total int64 `gorm:"column:total" json:"total"`
  27. RightTotal int64 `gorm:"column:right_total" json:"right_total"`
  28. OperID int `gorm:"column:oper_id" json:"oper_id"`
  29. CTime xtime.Time `gorm:"column:ctime" json:"-"`
  30. MTime xtime.Time `gorm:"column:mtime" json:"-"`
  31. OPName string `gorm:"-" json:"oname"`
  32. }
  33. // TableName blocked_labour_question tablename
  34. func (*LabourQuestion) TableName() string {
  35. return "blocked_labour_question"
  36. }