|
@@ -25,18 +25,22 @@ type UserMoneyRecord struct {
|
|
|
DocSummary string `json:"docSummary"`
|
|
|
}
|
|
|
|
|
|
+func (ud *UserMoneyRecord) TableName() string {
|
|
|
+ return "doc"
|
|
|
+}
|
|
|
+
|
|
|
type UserDoc struct {
|
|
|
BaseModel
|
|
|
- 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"`
|
|
|
+ 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"`
|
|
|
}
|
|
|
|