You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
747 B

  1. package model
  2. import (
  3. "gorm.io/gorm"
  4. "time"
  5. )
  6. type ExaFileUploadAndDownload struct {
  7. gorm.Model
  8. Name string `json:"name" gorm:"comment:'文件名'"`
  9. Url string `json:"url" gorm:"comment:'文件地址'"`
  10. Tag string `json:"tag" gorm:"comment:'文件标签'"`
  11. Key string `json:"key" gorm:"comment:'编号'"`
  12. }
  13. func ExaFileUploadAndDownloadData() []ExaFileUploadAndDownload {
  14. return []ExaFileUploadAndDownload{
  15. {gorm.Model{ID: 1, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "10.png", "http://qmplusimg.henrongyi.top/158787308910.png", "png", "158787308910.png"},
  16. {gorm.Model{ID: 2, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "logo.png", "http://qmplusimg.henrongyi.top/1587973709logo.png", "png", "1587973709logo.png"},
  17. }
  18. }