supplier_withdraw.go 2.3 KB

123456789101112131415161718192021222324252627282930
  1. package gorm_model
  2. import (
  3. "time"
  4. )
  5. type YounggeeSupplierWithdraw struct {
  6. SupplierWithdrawId int `gorm:"column:supplier_withdraw_id;type:int(11);primary_key;comment:提现流水ID" json:"supplier_withdraw_id"`
  7. SupplierId int `gorm:"column:supplier_id;type:int(11);comment:服务商ID" json:"supplier_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. InvoiceIds string `gorm:"column:invoice_ids;type:varchar(255);comment:发票ID列表(根据发票ID去查对应的income)" json:"invoice_ids"`
  11. IncomeIds string `gorm:"column:income_ids;type:varchar(255);comment:收入列表(个人服务商不需要回票所以看这个)" json:"income_ids"`
  12. Company string `gorm:"column:company;type:varchar(255);comment:机构名称" json:"company"`
  13. SupplierType int `gorm:"column:supplier_type;type:int(11);comment:服务商用户类型,1为个人PR,2为机构" json:"supplier_type"`
  14. Name string `gorm:"column:name;type:varchar(255);comment:姓名" json:"name"`
  15. IdNumber string `gorm:"column:id_number;type:varchar(255);comment:身份证号码" json:"id_number"`
  16. BankName string `gorm:"column:bank_name;type:varchar(255);comment:提现银行" json:"bank_name"`
  17. BankNumber int `gorm:"column:bank_number;type:int(11);comment:提现银行卡号" json:"bank_number"`
  18. Phone string `gorm:"column:phone;type:varchar(255);comment:手机号码" json:"phone"`
  19. WithdrawStatus int `gorm:"column:withdraw_status;type:int(11);comment:提现状态:1待提现,2提现中,3已提现,4已驳回" json:"withdraw_status"`
  20. SupplyTime time.Time `gorm:"column:supply_time;type:datetime" json:"supply_time"`
  21. AgreeTime time.Time `gorm:"column:agree_time;type:datetime" json:"agree_time"`
  22. RejectTime time.Time `gorm:"column:reject_time;type:datetime" json:"reject_time"`
  23. FailReson string `gorm:"column:fail_reson;type:varchar(255)" json:"fail_reson"`
  24. }
  25. func (m *YounggeeSupplierWithdraw) TableName() string {
  26. return "younggee_supplier_withdraw"
  27. }