supplier_withdraw.go 2.1 KB

123456789101112131415161718192021222324252627282930
  1. package gorm_model
  2. import (
  3. "time"
  4. )
  5. type YounggeeSupplierWithdraw struct {
  6. SupplierWithdrawId int `gorm:"column:supplier_withdraw_id;primary_key"` // 提现流水ID
  7. SupplierId int `gorm:"column:supplier_id"` // 服务商ID
  8. WithdrawAmount float64 `gorm:"column:withdraw_amount"` // 提现金额
  9. AmountPayable float64 `gorm:"column:amount_payable"` // 实际提现金额(扣税后)
  10. InvoiceIds string `gorm:"column:invoice_ids"` // 发票ID列表(根据发票ID去查对应的income)
  11. IncomeIds string `gorm:"column:income_ids"` // 收入列表(个人服务商不需要回票所以看这个)
  12. Company string `gorm:"column:company"` // 机构名称
  13. SupplierType int `gorm:"column:supplier_type"` // 服务商用户类型,1为个人PR,2为机构
  14. Name string `gorm:"column:name"` // 姓名
  15. IDNumber string `gorm:"column:id_number"` // 身份证号码
  16. BankName string `gorm:"column:bank_name"` // 提现银行
  17. BankNumber string `gorm:"column:bank_number"` // 提现银行卡号
  18. Phone string `gorm:"column:phone"` // 手机号码
  19. WithdrawStatus int `gorm:"column:withdraw_status"` // 提现状态:1待提现,2提现中,3已提现,4已驳回
  20. SupplyTime *time.Time `gorm:"column:supply_time"` // 申请时间
  21. AgreeTime *time.Time `gorm:"column:agree_time"` // 同意时间
  22. RejectTime *time.Time `gorm:"column:reject_time"` // 驳回时间
  23. FailReason string `gorm:"column:fail_reason"` // 驳回原因
  24. }
  25. func (m *YounggeeSupplierWithdraw) TableName() string {
  26. return "younggee_supplier_withdraw"
  27. }