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
614 B
23 lines
614 B
package gys
|
|
|
|
import (
|
|
"github.com/shopspring/decimal"
|
|
"time"
|
|
)
|
|
|
|
const (
|
|
GysSourceDepositHistoryTypeDeposit = 1 // 充值
|
|
GysSourceDepositHistoryTypeBill = 2 // 结算
|
|
GysSourceDepositHistoryTypeRefund = 3 // 充值退款
|
|
)
|
|
|
|
type GysSourceDepositHistory struct {
|
|
Id uint `gorm:"primaryKey"`
|
|
SourceId uint // 运营方id
|
|
Type uint // 记录类型 1=平台预存 2=结算抵扣 3=充值 4=退款
|
|
Proof string // 存款凭证
|
|
Amount decimal.Decimal // 金额
|
|
AfterAmount decimal.Decimal // 交易后金额
|
|
CreatedAt time.Time
|
|
}
|