recharge_record.go 1.5 KB

123456789101112131415161718192021222324
  1. package entity
  2. import "time"
  3. type RechargeRecord struct {
  4. ID int64 `gorm:"column:id;primary_key;column:id"`
  5. RechargeID string `gorm:"column:recharge_id;unique_key"` // 充值订单ID
  6. EnterpriseID string `gorm:"column:enterprise_id;NOT NULL"` // 企业id
  7. SubAccountId int64 `gorm:"column:sub_account_id;NOT NULL"`
  8. RechargeAmount float64 `gorm:"column:recharge_amount;NOT NULL"` // 充值金额
  9. TransferVoucherUrl string `gorm:"column:transfer_voucher_url;NOT NULL"` // 转账凭证图片链接
  10. Phone string `gorm:"column:phone;NOT NULL"` // 联系方式
  11. RechargeMethod int64 `gorm:"column:recharge_method;NOT NULL"` // 充值方式:1为对公转账,2为支付宝在线支付,3为微信支付
  12. Status int64 `gorm:"column:status;NOT NULL"` // 充值状态:0为充值待确认,1为充值已确认
  13. InvoiceStatus int `gorm:"column:invoice_status;NOT NULL"` // 开票状态:1为可开票,2为待开票,3为已开票
  14. CommitAt time.Time `gorm:"column:commit_at;NOT NULL"` // 充值申请提交时间
  15. ConfirmAt time.Time `gorm:"column:confirm_at"` // 充值确认时间
  16. FailReason string `gorm:"column:fail_reason;NOT NULL"` // 失败原因
  17. RefuseAt time.Time `gorm:"column:refuse_at;NOT NULL"` // 充值失败时间
  18. }
  19. func (m *RechargeRecord) TableName() string {
  20. return "younggee_recharge_record"
  21. }