talent_income.go 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package youngee_talent_model
  2. import (
  3. "github.com/gogf/gf/util/gmeta"
  4. "youngmini_server/app/model"
  5. "github.com/gogf/gf/os/gtime"
  6. )
  7. type GetTalentIncomeReq struct {
  8. Type int `json:"type"` // 提现阶段,1-3分别表示可提现、已提现、提现中
  9. SearchInput string `json:"search_input"` // 模糊搜索内容
  10. }
  11. type TalentIncomeInfoAll struct {
  12. TalentIncomeInfos []*TalentIncomeInfo `json:"talentIncomeInfos"`
  13. TalentInfo *TalentInfo `json:"talentInfo"`
  14. }
  15. type TalentIncomeInfo struct {
  16. gmeta.Meta `orm:"table:younggee_talent_income"`
  17. Id int `orm:"id,primary" json:"id"` // 递增id
  18. TalentId string `orm:"talent_id" json:"talent_id"` // 达人id
  19. ProjectId string `orm:"project_id" json:"project_id"` // 项目id
  20. SelectionId string `orm:"selection_id" json:"selection_id"` // 带货id
  21. TaskId string `orm:"task_id" json:"task_id"` // 任务id
  22. SectaskId string `orm:"sectask_id" json:"sectask_id"` // 选品任务id
  23. BrandName string `orm:"brand_name" json:"brand_name"` // 品牌名称
  24. TaskName string `orm:"task_name" json:"task_name"` // 任务名称
  25. TeamId string `orm:"team_id" json:"team_id"` // young之团id
  26. Income float64 `orm:"income" json:"income"` // 收益金额
  27. IncomeType int `orm:"income_type" json:"income_type"` // 收益类型,1-4分别表示任务收益、开团收益、样品返现、悬赏收益
  28. WithdrawStatus int `orm:"withdraw_status" json:"withdraw_status"` // 提现状态,1-3分别表示可提现、提现中、已提现
  29. IncomeAt *gtime.Time `orm:"income_at" json:"income_at"` // 收益产生时间
  30. WithdrawAt *gtime.Time `orm:"withdraw_at" json:"withdraw_at"` // 提现时间
  31. PhotoUrl string `orm:"photo_url" json:"photo_url"` // 商品主图
  32. Type int `orm:"type" json:"type"` // 选品or项目,1:种草,2:带货 3.本地生活
  33. PlatformIconUrl string `json:"platform_icon_url"`
  34. }
  35. type TalentPointInfo struct {
  36. Point int `json:"point"` // 现有积分
  37. TalentPointRecord []*model.YounggeeTalentPointRecord `json:"talent_point_record"` // 达人积分收益记录
  38. }
  39. type WithdrawDetail struct {
  40. WithdrawId string `json:"withdraw_id"` // 提现订单ID
  41. TalentId string `json:"talent_id"` // 达人id
  42. WithdrawAmount string `json:"withdraw_amount"` // 提现金额
  43. AmountPayable string `json:"amount_payable"` // 应付金额
  44. PayPoint int `json:"pay_point"` // 抵扣积分
  45. IncomeIdList string `json:"income_id_list"` // 该提现订单包含的income_id列表
  46. ReceiveInfo string `json:"receive_info"` // 收款信息 (JSON格式)
  47. Status int `json:"status"` // 提现状态:1为提现中,2为已提现, 3为提现失败
  48. BankType int `json:"bank_type"` // 到账方式,1为支付宝,2为银行卡
  49. SubmitAt string `json:"submit_at"` // 申请提交时间 (字符串格式,方便前端处理)
  50. WithdrawAt string `json:"withdraw_at"` // 提现时间 (字符串格式)
  51. TaxAmount float32 `json:"tax_amount"` // 扣税
  52. RejectReason string `json:"reject_reason"` // 拒绝理由
  53. TalentIncomeInfo []*TalentIncomeInfo `json:"talent_income_info"`
  54. }