record.go 869 B

1234567891011121314151617181920212223242526272829303132
  1. package model
  2. import xtime "go-common/library/time"
  3. // Record .
  4. type Record struct {
  5. ID int `json:"id" gorm:"column:id"`
  6. Bucket string `json:"bucket" gorm:"column:bucket"`
  7. FileName string `json:"filename" gorm:"column:filename"`
  8. AdminID int `json:"admin_id" gorm:"column:adminid"`
  9. State int `json:"state" gorm:"column:state"`
  10. CTime xtime.Time `json:"ctime" gorm:"column:ctime"`
  11. MTime xtime.Time `json:"mtime" gorm:"column:mtime"`
  12. URL string `json:"url" gorm:"url"`
  13. Sex int `json:"sex" gorm:"sex"`
  14. Politics int `json:"politics" gorm:"politics"`
  15. }
  16. // TableName .
  17. func (Record) TableName() string {
  18. return "upload_yellowing"
  19. }
  20. // TinyRecord .
  21. type TinyRecord struct {
  22. Rid int `gorm:"column:id"`
  23. }
  24. // TableName .
  25. func (TinyRecord) TableName() string {
  26. return "upload_yellowing"
  27. }