file.go 761 B

1234567891011121314151617181920
  1. package model
  2. type File struct {
  3. Id int `json:"id" gorm:"primary_key"`
  4. FileName string `json:"file_name" gorm:"column:fileName;"`
  5. LocalPath string `json:"local_path" gorm:"column:localPath;"`
  6. CosPath string `json:"cos_path" gorm:"column:cosPath;"`
  7. Type int `json:"type" gorm:"column:type;"`
  8. Dir string `json:"dir" gorm:"column:dir;"`
  9. CreatedAt XTime `json:"createdAt" gorm:"column:createdAt; "`
  10. UpdatedAt XTime `json:"updatedAt" gorm:"column:updatedAt; "`
  11. }
  12. type AdsDataSummary struct {
  13. Id int `json:"id" gorm:"primary_key"`
  14. Gid string `json:"gid" gorm:"column:gid;"`
  15. Pf string `json:"pf" gorm:"column:pf;"`
  16. Date string `json:"date" gorm:"column:date;"`
  17. Count int `json:"count" gorm:"column:count;"`
  18. }