task_income.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package youngee_talent_model
  2. import (
  3. "github.com/gogf/gf/os/gtime"
  4. "github.com/gogf/gf/util/gmeta"
  5. "time"
  6. )
  7. type WithdrawTaskInfo struct {
  8. TaskId string `json:"task_id"`
  9. ProjectName string `json:"project_name"`
  10. PlatformIconUrl string `json:"platform_icon_url"`
  11. PlatformName string `json:"platform_name"`
  12. ProductPhoto string `json:"product_photo"`
  13. TaskReward float64 `json:"task_reward"`
  14. SettleAmount float64 `json:"settle_amount"`
  15. CompleteDate *gtime.Time `json:"complete_date"`
  16. WithdrawDate *gtime.Time `json:"withdraw_date"`
  17. Checked bool `json:"checked"`
  18. }
  19. type WithdrawTaskInfoList struct {
  20. CanWithdrawTaskInfoList []*WithdrawTaskInfo `json:"can_withdraw_task_info_list"`
  21. WithdrawingTaskInfoList []*WithdrawTaskInfo `json:"withdrawing_task_info_list"`
  22. WithdrawedTaskInfoList []*WithdrawTaskInfo `json:"withdrawed_task_info_list"`
  23. }
  24. type WithdrawInfo struct {
  25. IncomeIdList string `json:"income_id_list"` // younggee_talent_income表中的主键
  26. TotalAmount float64 `json:"total_amount"` // 提现金额
  27. }
  28. type WithdrawRecord struct {
  29. gmeta.Meta `orm:"table:younggee_withdraw_record"`
  30. WithdrawID string `orm:"withdraw_id" json:"withdraw_id"`
  31. TalentID string `orm:"talent_id" json:"talent_id"`
  32. WithdrawAmount float64 `orm:"withdraw_amount" json:"withdraw_amount"`
  33. AmountPayable float64 `orm:"amount_payable" json:"amount_payable"`
  34. PayPoint int `orm:"pay_point" json:"pay_point"`
  35. IncomeIDList string `orm:"income_id_list" json:"income_id_list"`
  36. ReceiveInfo string `orm:"receive_info" json:"receive_info"`
  37. Status int `orm:"status" json:"status"`
  38. BankType int `orm:"bank_type" json:"bank_type"`
  39. SubmitAt time.Time `orm:"submit_at" json:"submit_at"`
  40. WithdrawAt time.Time `orm:"withdraw_at" json:"withdraw_at"`
  41. TaxAmount float32 `orm:"tax_amount" json:"tax_amount"`
  42. RejectReason string `orm:"reject_reason" json:"reject_reason"`
  43. }