file.go 394 B

12345678910
  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. CreatedAt XTime `json:"createdAt" gorm:"column:createdAt; "`
  8. UpdatedAt XTime `json:"updatedAt" gorm:"column:updatedAt; "`
  9. }