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.

23 lines
852 B

4 years ago
package user
import (
"github.com/golangkit/formatime"
"github.com/shopspring/decimal"
)
type WalletOwnIncomeList struct {
ID uint `gorm:"column:id;primary_key" json:"id"`
UserID uint `gorm:"column:user_id" json:"-"`
Amount decimal.Decimal `gorm:"column:amount" json:"amount"`
Title string `gorm:"column:title" json:"title"`
Comment string `gorm:"column:comment" json:"comment"`
OrderID uint `gorm:"column:order_id" json:"orderId"`
OrderGoodsId uint `gorm:"column:order_goods_id" json:"-"`
OrderTime formatime.Second `gorm:"column:order_time" json:"orderTime"`
CreatedAt formatime.Second `gorm:"column:created_at" json:"-"`
}
func (r *WalletOwnIncomeList) TableName() string {
return "recook_user_wallet_own_income_list"
}