client.account.log.go 1.7 KB

123456789101112131415161718192021222324
  1. package shanghu
  2. import (
  3. "time"
  4. )
  5. type MerchantClientAccountLog struct {
  6. ID int64 `gorm:"column:id;type:bigint(20);primary_key;AUTO_INCREMENT" json:"id"` // 主键
  7. ReviewAmountAfter string `gorm:"column:review_amount_after;type:decimal(10,2)" json:"review_amount_after"` // 审核资金交易后
  8. ReviewAmountPre string `gorm:"column:review_amount_pre;type:decimal(10,2)" json:"review_amount_pre"` // 审核资金交易前
  9. AmountPre string `gorm:"column:amount_pre;type:decimal(10,2)" json:"amount_pre"` // 交易前
  10. AmountAfter string `gorm:"column:amount_after;type:decimal(10,2)" json:"amount_after"` // 交易后
  11. TransType int `gorm:"column:trans_type;type:int(11)" json:"trans_type"` // 交易类型 1-买卡入账 2-提现
  12. MerchantCardID int64 `gorm:"column:merchant_card_id;type:bigint(20)" json:"merchant_card_id"` // 商户卡id
  13. CreateBy int64 `gorm:"column:create_by;type:bigint(20)" json:"create_by"` // 创建者
  14. UpdateBy int64 `gorm:"column:update_by;type:bigint(20)" json:"update_by"` // 更新者
  15. CreatedAt time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"` // 创建时间
  16. UpdatedAt time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"` // 最后更新时间
  17. DeletedAt time.Time `gorm:"column:deleted_at;type:datetime(3)" json:"deleted_at"` // 删除时间
  18. }
  19. func (m *MerchantClientAccountLog) TableName() string {
  20. return "merchant_client_account_log"
  21. }