42 lines
1.7 KiB
Go
42 lines
1.7 KiB
Go
package data
|
|
|
|
type (
|
|
DiscSpinningRecord struct {
|
|
Id int64 `json:"id" gorm:"column:id;primary_key"`
|
|
UserId int64 `json:"user_id" gorm:"column:user_id"`
|
|
SourceId int64 `json:"source_id" gorm:"column:source_id"`
|
|
ImgUrl string `json:"img_url" gorm:"column:img_url"`
|
|
Name string `json:"name" gorm:"column:name"`
|
|
Type int `json:"type" gorm:"column:type"`
|
|
Number float64 `json:"number" gorm:"column:number"`
|
|
Target string `json:"target" gorm:"column:target"`
|
|
TargetId int64 `json:"target_id" gorm:"column:target_id"`
|
|
DrawDay string `json:"draw_day" gorm:"column:draw_day"`
|
|
Source string `json:"source" gorm:"column:source"`
|
|
CreateTime string `json:"create_time" gorm:"column:create_time"`
|
|
}
|
|
|
|
DiscSpinningRecordCopy1 struct {
|
|
Id int64 `json:"id" gorm:"column:id;primary_key"`
|
|
UserId int64 `json:"user_id" gorm:"column:user_id"`
|
|
SourceId int64 `json:"source_id" gorm:"column:source_id"`
|
|
ImgUrl string `json:"img_url" gorm:"column:img_url"`
|
|
Name string `json:"name" gorm:"column:name"`
|
|
Type int `json:"type" gorm:"column:type"`
|
|
Number float64 `json:"number" gorm:"column:number"`
|
|
Target string `json:"target" gorm:"column:target"`
|
|
TargetId int64 `json:"target_id" gorm:"column:target_id"`
|
|
DrawDay string `json:"draw_day" gorm:"column:draw_day"`
|
|
Source string `json:"source" gorm:"column:source"`
|
|
CreateTime string `json:"create_time" gorm:"column:create_time"`
|
|
}
|
|
)
|
|
|
|
func (DiscSpinningRecord) TableName() string {
|
|
return "disc_spinning_record"
|
|
}
|
|
|
|
func (DiscSpinningRecordCopy1) TableName() string {
|
|
return "disc_spinning_record_copy1"
|
|
}
|