1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- package model
- type Docin struct {
- Id string `json:"id" gorm:"column:id"`
- UserId string `json:"userId" gorm:"column:userId"`
- AppId string `json:"appId" gorm:"column:appId"`
- DocName string `json:"docName" gorm:"column:docName"`
- DocFileType int `json:"docFileType" gorm:"column:docFileType"`
- DocFileSuffix string `json:"docFileSuffix" gorm:"column:docFileSuffix"`
- DocFileSize int `json:"docFileSize" gorm:"column:docFileSize"`
- DocPageSize int `json:"docPageSize" gorm:"column:docPageSize"`
- DocTags string `json:"docTags" gorm:"column:docTags"`
- DocClass string `json:"docClass" gorm:"column:docClass"`
- UploadDate string `json:"uploadDate" gorm:"column:uploadDate"`
- IsDelete int `json:"isDelete" gorm:"column:isDelete"`
- OssDocId string `json:"ossDocId" gorm:"column:ossDocId"`
- Md5 string `json:"md5" gorm:"column:md5"`
- OssPdfId string `json:"ossPdfId" gorm:"column:ossPdfId"`
- OssTxtId string `json:"ossTxtId" gorm:"column:ossTxtId"`
- Price int `json:"price" gorm:"column:price"`
- PriceVip int `json:"priceVip" gorm:"column:priceVip"`
- DownOrUp int `json:"downOrUp" gorm:"column:downOrUp"`
- DocSummary string `json:"docSummary" gorm:"column:docSummary"`
- PreviewImgId string `json:"previewImgId" gorm:"column:previewImgId"`
- EncryptionLevel int `json:"encryptionLevel" gorm:"column:encryptionLevel"` //
- Source int `json:"source" gorm:"column:source"`
- ProductType int `json:"productType" gorm:"column:productType"`
- UpdateDate string `json:"updateDate" gorm:"column:updateDate"`
- }
- func (ud *Docin) TableName() string {
- return "doc"
- }
- // 精品文库订单信息表
- type DocinUserOrder struct {
- PositionId int64 `json:"position_id" gorm:"column:position_id"`
- MgoUserId string `json:"mgo_user_id" gorm:"column:mgo_user_id"`
- Phone string `json:"phone" gorm:"column:phone"`
- DocId string `json:"doc_id" gorm:"column:doc_id"`
- OrderCode string `json:"order_code" gorm:"column:order_code"`
- Price int `json:"price" gorm:"column:price"` //价格
- PriceVip int `json:"price_vip" gorm:"column:price_vip"` //券
- PurchaseType int `json:"purchase_type" gorm:"column:purchase_type"` //购买类型:1 币买文档,2 券买文档,3 月大会员,4 季大会员,5 年大会员
- State int `json:"state" gorm:"column:state"`
- CreateTime string `json:"create_time" gorm:"column:create_time"`
- }
- func (ud *DocinUserOrder) TableName() string {
- return "doc_user_order"
- }
- type DocClass struct {
- Name string
- Code string
- Level int
- State int
- }
- func (dc *DocClass) TableName() string {
- return "doc_class"
- }
|