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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
package user
import (
"github.com/golangkit/formatime"
"github.com/shopspring/decimal"
)
// 用户订单结算的收益流水表-最后生效的放到coin_history
type RecookUserCoinHistory struct {
ID int64 ` gorm:"column:id" json:"id" `
UserId uint ` gorm:"column:user_id" json:"user_id" `
OrderId uint ` gorm:"column:order_id" json:"order_id" `
Income decimal . Decimal ` gorm:"column:income" json:"income" `
OrderAmount decimal . Decimal ` gorm:"column:order_amount;default:0.00;NOT NULL" json:"orderAmount" ` // 订单支付总额
Status int ` gorm:"column:status" json:"status" ` // '是否结算, 1否 2是',
Type int ` gorm:"column:type" json:"type" `
CreatedAt formatime . Second ` gorm:"column:created_at" json:"created_at" `
}
const (
NoForRecookUserCoinHistoryStatus = 1
YesForRecookUserCoinHistoryStatus = 2
)
// TableName sets the insert table name for this struct type
func ( r * RecookUserCoinHistory ) TableName ( ) string {
return "recook_user_coin_history"
}