46 lines
1.9 KiB
Go
46 lines
1.9 KiB
Go
package data
|
|
|
|
type (
|
|
UserMoneyDetails struct {
|
|
Id int64 `json:"id" gorm:"column:id;primary_key"`
|
|
UserId int64 `json:"user_id" gorm:"column:user_id"`
|
|
SysUserId int64 `json:"sys_user_id" gorm:"column:sys_user_id"`
|
|
ByUserId int64 `json:"by_user_id" gorm:"column:by_user_id"`
|
|
Title string `json:"title" gorm:"column:title"`
|
|
Classify int `json:"classify" gorm:"column:classify"`
|
|
Type int `json:"type" gorm:"column:type"`
|
|
State int `json:"state" gorm:"column:state"`
|
|
Money float64 `json:"money" gorm:"column:money"`
|
|
Content string `json:"content" gorm:"column:content"`
|
|
MoneyType int `json:"money_type" gorm:"column:money_type"`
|
|
CreateTime string `json:"create_time" gorm:"column:create_time"`
|
|
SourceId int64 `json:"source_id" gorm:"column:source_id"`
|
|
AwardCount int `json:"award_count" gorm:"column:award_count"`
|
|
}
|
|
|
|
UserMoneyDetailsCopy1 struct {
|
|
Id int64 `json:"id" gorm:"column:id;primary_key"`
|
|
UserId int64 `json:"user_id" gorm:"column:user_id"`
|
|
SysUserId int64 `json:"sys_user_id" gorm:"column:sys_user_id"`
|
|
ByUserId int64 `json:"by_user_id" gorm:"column:by_user_id"`
|
|
Title string `json:"title" gorm:"column:title"`
|
|
Classify int `json:"classify" gorm:"column:classify"`
|
|
Type int `json:"type" gorm:"column:type"`
|
|
State int `json:"state" gorm:"column:state"`
|
|
Money float64 `json:"money" gorm:"column:money"`
|
|
Content string `json:"content" gorm:"column:content"`
|
|
MoneyType int `json:"money_type" gorm:"column:money_type"`
|
|
CreateTime string `json:"create_time" gorm:"column:create_time"`
|
|
SourceId int64 `json:"source_id" gorm:"column:source_id"`
|
|
AwardCount int `json:"award_count" gorm:"column:award_count"`
|
|
}
|
|
)
|
|
|
|
func (UserMoneyDetails) TableName() string {
|
|
return "user_money_details"
|
|
}
|
|
|
|
func (UserMoneyDetailsCopy1) TableName() string {
|
|
return "user_money_details_copy1"
|
|
}
|