You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.0 KiB
26 lines
1.0 KiB
package user
|
|
|
|
import (
|
|
"github.com/golangkit/formatime"
|
|
"github.com/shopspring/decimal"
|
|
)
|
|
|
|
type WalletBalanceList struct {
|
|
ID uint `gorm:"column:id;primary_key" json:"id,omitempty"`
|
|
UserID uint `gorm:"column:user_id" json:"-"`
|
|
IncomeType uint `gorm:"column:income_type" json:"-"`
|
|
Amount decimal.Decimal `gorm:"column:amount" json:"amount"`
|
|
Title string `gorm:"column:title" json:"title,omitempty"`
|
|
Comment string `gorm:"column:comment" json:"comment,omitempty"`
|
|
OrderID uint `gorm:"column:order_id" json:"-"`
|
|
OrderGoodsId uint `gorm:"column:order_goods_id" json:"-"`
|
|
OrderTime formatime.Second `gorm:"column:order_time" json:"orderTime,omitempty"`
|
|
CreatedAt formatime.Second `gorm:"column:created_at" json:"createdAt,omitempty"`
|
|
ProfitID uint `json:"profit_id"`
|
|
ApplyID int `json:"apply_id"`
|
|
}
|
|
|
|
func (r *WalletBalanceList) TableName() string {
|
|
return "recook_user_wallet_balance_list"
|
|
}
|