link.go 1.8 KB

1234567891011121314151617181920212223242526272829
  1. package gorm_model
  2. import (
  3. "time"
  4. )
  5. type YounggeeLinkInfo struct {
  6. LinkID int `gorm:"column:link_id;primary_key;AUTO_INCREMENT"` // 链接id
  7. TaskID string `gorm:"column:task_id;NOT NULL"` // 任务id
  8. LinkUrl string `gorm:"column:link_url;NOT NULL"` // 上传链接url
  9. PhotoUrl string `gorm:"column:photo_url;NOT NULL"` // 上传截图url
  10. ReviseOpinion string `gorm:"column:revise_opinion"` // 审核意见
  11. IsSubmit int `gorm:"column:is_submit;NOT NULL"` // 是否提交
  12. IsReview int `gorm:"column:is_review;default:0;NOT NULL"` // 是否审核
  13. IsOk int `gorm:"column:is_ok;NOT NULL"` // 是否合格
  14. CreateAt time.Time `gorm:"column:create_at"` // 创建时间
  15. SubmitAt time.Time `gorm:"column:submit_at"` // 提交时间
  16. AgreeAt time.Time `gorm:"column:agree_at"` // 同意时间
  17. RejectAt time.Time `gorm:"column:reject_at"` // 驳回时间
  18. AutoAgreeAt time.Time `gorm:"column:auto_agree_at"` // 发布审核自动处理时间
  19. AutoDataBreakAt time.Time `gorm:"column:auto_data_break_at"` // 结案违约自动处理时间
  20. AutoLinkBreakAt time.Time `gorm:"column:auto_link_break_at"` // 链接违约自动处理时间
  21. BOperator string `gorm:"column:b_operator"` //商家确定操作人ID
  22. BOperatorType int `gorm:"column:b_operator_type"` //商家操作人类型,1商家用户,2商家子账号,3管理后台
  23. }
  24. func (m *YounggeeLinkInfo) TableName() string {
  25. return "younggee_link_info"
  26. }