withdraw_info.go 2.2 KB

123456789101112131415161718192021222324252627282930
  1. package gorm_model
  2. import (
  3. "time"
  4. )
  5. type YounggeeWithdrawRecord struct {
  6. WithdrawID string `gorm:"column:withdraw_id;type:char(20);primary_key;comment:提现订单ID" json:"withdraw_id"`
  7. TalentID string `gorm:"column:talent_id;type:char(25);comment:达人id" json:"talent_id"`
  8. WithdrawAmount float64 `gorm:"column:withdraw_amount;type:decimal(10,2);comment:提现金额" json:"withdraw_amount"`
  9. AmountPayable float64 `gorm:"column:amount_payable;type:decimal(10,2);comment:应付金额" json:"amount_payable"`
  10. PayPoint int `gorm:"column:pay_point;type:int(11);comment:抵扣积分" json:"pay_point"`
  11. IncomeIdList string `gorm:"column:income_id_list;type:varchar(2000);comment:该提现订单包含的income_id列表" json:"income_id_list"`
  12. ReceiveInfo string `gorm:"column:receive_info;type:json;comment:收款信息" json:"receive_info"`
  13. Status int `gorm:"column:status;type:int(11);comment:提现状态:1为提现中,2为已提现, 3,为提现失败" json:"status"`
  14. BankType int `gorm:"column:bank_type;type:tinyint(4);comment:到账方式,1为支付宝,2为银行卡" json:"bank_type"`
  15. SubmitAt time.Time `gorm:"column:submit_at;type:datetime;comment:申请提交时间" json:"submit_at"`
  16. WithdrawAt time.Time `gorm:"column:withdraw_at;type:datetime;comment:提现时间" json:"withdraw_at"`
  17. TaxAmount float64 `gorm:"column:tax_amount;type:float;comment:扣税" json:"tax_amount"`
  18. RejectReason string `gorm:"column:reject_reason;type:varchar(255);comment:拒绝理由" json:"reject_reason"`
  19. RejectAt time.Time `gorm:"column:reject_at;type:datetime;comment:拒绝时间 " json:"reject_at"`
  20. Name string `gorm:"column:name;type:varchar(255);comment:提现人姓名" json:"name"`
  21. IdcardNum string `gorm:"column:idcard_num;type:varchar(20);comment:身份证号" json:"idcard_num"`
  22. BankNum string `gorm:"column:bank_num;type:varchar(100);comment:银行卡号" json:"bank_num"`
  23. PhoneNum string `gorm:"column:phone_num;type:varchar(20);comment:手机号" json:"phone_num"`
  24. }
  25. func (m *YounggeeWithdrawRecord) TableName() string {
  26. return "younggee_withdraw_record"
  27. }