partner.go 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package model
  2. type Docin struct {
  3. Id string `json:"id" gorm:"column:id"`
  4. UserId string `json:"userId" gorm:"column:userId"`
  5. AppId string `json:"appId" gorm:"column:appId"`
  6. DocName string `json:"docName" gorm:"column:docName"`
  7. DocFileType int `json:"docFileType" gorm:"column:docFileType"`
  8. DocFileSuffix string `json:"docFileSuffix" gorm:"column:docFileSuffix"`
  9. DocFileSize int `json:"docFileSize" gorm:"column:docFileSize"`
  10. DocPageSize int `json:"docPageSize" gorm:"column:docPageSize"`
  11. DocTags string `json:"docTags" gorm:"column:docTags"`
  12. DocClass string `json:"docClass" gorm:"column:docClass"`
  13. UploadDate string `json:"uploadDate" gorm:"column:uploadDate"`
  14. IsDelete int `json:"isDelete" gorm:"column:isDelete"`
  15. OssDocId string `json:"ossDocId" gorm:"column:ossDocId"`
  16. Md5 string `json:"md5" gorm:"column:md5"`
  17. OssPdfId string `json:"ossPdfId" gorm:"column:ossPdfId"`
  18. OssTxtId string `json:"ossTxtId" gorm:"column:ossTxtId"`
  19. Price int `json:"price" gorm:"column:price"`
  20. PriceVip int `json:"priceVip" gorm:"column:priceVip"`
  21. DownOrUp int `json:"downOrUp" gorm:"column:downOrUp"`
  22. DocSummary string `json:"docSummary" gorm:"column:docSummary"`
  23. PreviewImgId string `json:"previewImgId" gorm:"column:previewImgId"`
  24. EncryptionLevel int `json:"encryptionLevel" gorm:"column:encryptionLevel"` //
  25. Source int `json:"source" gorm:"column:source"`
  26. ProductType int `json:"productType" gorm:"column:productType"`
  27. UpdateDate string `json:"updateDate" gorm:"column:updateDate"`
  28. }
  29. func (ud *Docin) TableName() string {
  30. return "doc"
  31. }
  32. // 精品文库订单信息表
  33. type DocinUserOrder struct {
  34. PositionId int64 `json:"position_id" gorm:"column:position_id"`
  35. MgoUserId string `json:"mgo_user_id" gorm:"column:mgo_user_id"`
  36. Phone string `json:"phone" gorm:"column:phone"`
  37. DocId string `json:"doc_id" gorm:"column:doc_id"`
  38. OrderCode string `json:"order_code" gorm:"column:order_code"`
  39. Price int `json:"price" gorm:"column:price"` //价格
  40. PriceVip int `json:"price_vip" gorm:"column:price_vip"` //券
  41. PurchaseType int `json:"purchase_type" gorm:"column:purchase_type"` //购买类型:1 币买文档,2 券买文档,3 月大会员,4 季大会员,5 年大会员
  42. State int `json:"state" gorm:"column:state"`
  43. CreateTime string `json:"create_time" gorm:"column:create_time"`
  44. }
  45. func (ud *DocinUserOrder) TableName() string {
  46. return "doc_user_order"
  47. }
  48. type DocClass struct {
  49. Name string
  50. Code string
  51. Level int
  52. State int
  53. }
  54. func (dc *DocClass) TableName() string {
  55. return "doc_class"
  56. }