stdlib.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package model
  2. type UserMoneyRecord struct {
  3. Id string `json:"id"`
  4. UserId string `json:"userId"`
  5. DocName string `json:"before"`
  6. DocFileType int `json:"docFileType"`
  7. DocFileSuffix string `json:"docFileSuffix"`
  8. DocFileSize int `json:"docFileSize"`
  9. DocPageSize int `json:"docPageSize"`
  10. DocTags string `json:"docTags"`
  11. DocClassLevelOne string `json:"docClassLevelOne"`
  12. DocClassLevelTwo string `json:"docClassLevelTwo"`
  13. UploadDate string `json:"uploadDate"`
  14. IsDelete int `json:"isDelete"`
  15. OssDocId string `json:"ossDocId"`
  16. OssDocUrl string `json:"ossDocUrl"`
  17. Md5 string `json:"md5"`
  18. OssPdfId string `json:"ossPdfId"`
  19. OssPdfUrl string `json:"ossPdfUrl"`
  20. OssTxtId string `json:"ossTxtId"`
  21. OssTxtUrl string `json:"ossTxtUrl"`
  22. Price int `json:"price"`
  23. DownOrUp int `json:"downOrUp"`
  24. DocSummary string `json:"docSummary"`
  25. }
  26. type UserDoc struct {
  27. BaseModel
  28. UserId string `json:"user_id" gorm:"column:userId"`
  29. DocId string `json:"doc_id" gorm:"column:docId"`
  30. DocCategory int `json:"doc_category" gorm:"column:docCategory"`
  31. IsDelete int `json:"is_delete" gorm:"column:isDelete"`
  32. DocName string `json:"doc_name" gorm:"column:docName"`
  33. DocFileType int `json:"doc_file_type" gorm:"column:docFileType"`
  34. DocFileSuffix string `json:"doc_file_suffix" gorm:"column:docFileSuffix"`
  35. DocFileSize int `json:"doc_file_size" gorm:"column:docFileSize"`
  36. DocPageSize int `json:"doc_page_size" gorm:"column:docPageSize"`
  37. DocSummary string `json:"doc_summary" gorm:"column:docSummary"`
  38. DocSourceUserId string `json:"doc_source_user_id" gorm:"column:docSourceUserId"`
  39. }
  40. func (ud *UserDoc) TableName() string {
  41. return "user_doc"
  42. }