record.go 948 B

123456789101112131415161718192021222324252627282930
  1. package models
  2. import "mime/multipart"
  3. type RecordCreateParam struct {
  4. UserName string `form:"userName" binding:"required"`
  5. FileType string `form:"fileType" binding:"required"`
  6. RecordFile *multipart.File `form:"recordFile" binding:"required"`
  7. }
  8. type Record struct {
  9. Id string `form:"id"`
  10. UserName string `gorm:"user_name"`
  11. FileType string `gorm:"file_type"`
  12. FilePath string `gorm:"file_path"`
  13. FileName string `gorm:"file_name"`
  14. FileUrl string `gorm:"file_url"`
  15. CreateTime string `gorm:"create_time"`
  16. TaskType string `gorm:"task_type"`
  17. PositiveDir string `gorm:"positive_dir"`
  18. NegativaDir string `gorm:"negativa_dir"`
  19. Result string `gorm:"result"`
  20. UpdateTime string `gorm:"update_time"`
  21. }
  22. type RecordListParam struct {
  23. PageNum int `json:"pageNum" binding:"required,gt=0"`
  24. PageSize int `json:"pageSize" binding:"required,gt=1"`
  25. UserName string `json:"userName"`
  26. }