|
@@ -62,6 +62,29 @@ type UserDoc struct {
|
|
PreviewImgId string `json:"preview_img_id" gorm:"column:previewImgId"`
|
|
PreviewImgId string `json:"preview_img_id" gorm:"column:previewImgId"`
|
|
PreviewImgUrl string `json:"preview_img_url" gorm:"column:previewImgUrl"`
|
|
PreviewImgUrl string `json:"preview_img_url" gorm:"column:previewImgUrl"`
|
|
Cost string `json:"cost" gorm:"column:cost"`
|
|
Cost string `json:"cost" gorm:"column:cost"`
|
|
|
|
+}
|
|
|
|
+type UserDocRes struct {
|
|
|
|
+ ID int `json:"id" form:"id" gorm:"primaryKey"`
|
|
|
|
+ CreateAt time.Time `json:"create_at" gorm:"create_at"` //标签autoCreateTime设置如果字段名字不为CreatAt时候自动插入当前时间
|
|
|
|
+ UpdateAt time.Time `json:"update_at" gorm:"update_at"`
|
|
|
|
+ DeletedAt time.Time `json:"delete_at" gorm:"column:delete_at"`
|
|
|
|
+ AppId string `json:"app_id" gorm:"column:appId"`
|
|
|
|
+ UserId string `json:"user_id" gorm:"column:userId"`
|
|
|
|
+ DocId string `json:"doc_id" gorm:"column:docId"`
|
|
|
|
+ DocCategory int `json:"doc_category" gorm:"column:docCategory"`
|
|
|
|
+ IsDelete int `json:"is_delete" gorm:"column:isDelete"`
|
|
|
|
+ DocName string `json:"doc_name" gorm:"column:docName"`
|
|
|
|
+ DocFileType int `json:"doc_file_type" gorm:"column:docFileType"`
|
|
|
|
+ DocFileSuffix string `json:"doc_file_suffix" gorm:"column:docFileSuffix"`
|
|
|
|
+ DocFileSize int `json:"doc_file_size" gorm:"column:docFileSize"`
|
|
|
|
+ DocPageSize int `json:"doc_page_size" gorm:"column:docPageSize"`
|
|
|
|
+ DocSummary string `json:"doc_summary" gorm:"column:docSummary"`
|
|
|
|
+ DocSourceUserId string `json:"doc_source_user_id" gorm:"column:docSourceUserId"`
|
|
|
|
+ IsDownload int `json:"is_download" gorm:"column:isDownload"`
|
|
|
|
+ IsCollection int `json:"is_collection" gorm:"column:isCollection"`
|
|
|
|
+ PreviewImgId string `json:"preview_img_id" gorm:"column:previewImgId"`
|
|
|
|
+ PreviewImgUrl string `json:"preview_img_url" gorm:"column:previewImgUrl"`
|
|
|
|
+ Cost string `json:"cost" gorm:"column:cost"`
|
|
Source int64 `json:"source" gorm:"column:source"`
|
|
Source int64 `json:"source" gorm:"column:source"`
|
|
ProductType int64 `json:"product_type" gorm:"column:productType" `
|
|
ProductType int64 `json:"product_type" gorm:"column:productType" `
|
|
DocTags string `json:"docTags" gorm:"column:docTags"`
|
|
DocTags string `json:"docTags" gorm:"column:docTags"`
|