selection_task.go 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. package youngee_talent_model
  2. import (
  3. "github.com/gogf/gf/os/gtime"
  4. "youngmini_server/app/model"
  5. )
  6. type SignSecTaskReq struct {
  7. SelectionId string `json:"selection_id"`
  8. ProductId int `json:"product_id"`
  9. AddressId uint64 `json:"address_id"`
  10. LeadTeamId string `json:"lead_team_id"`
  11. TeamId string `json:"team_id"`
  12. }
  13. type SignSecTaskResp struct {
  14. TaskId string `json:"task_id"`
  15. }
  16. type SecTaskInfoDetail struct {
  17. Id int `orm:"id,primary" json:"id"` // 递增id
  18. TaskId string `orm:"task_id" json:"task_id"` // 选品任务id
  19. SelectionId string `orm:"selection_id" json:"selection_id"` // 选品id
  20. ProductId int `orm:"product_id" json:"product_id"`
  21. TalentId string `orm:"talent_id" json:"talent_id"` // 达人id
  22. AccountId int `orm:"account_id" json:"account_id"` // 账号id
  23. TalentPlatformInfoSnap string `orm:"talent_platform_info_snap" json:"talent_platform_info_snap"` // 达人平台信息快照
  24. TalentPersonalInfoSnap string `orm:"talent_personal_info_snap" json:"talent_personal_info_snap"` // 达人个人信息快照
  25. TalentPostAddrSnap string `orm:"talent_post_addr_snap" json:"talent_post_addr_snap"` // 收货地址快照
  26. TaskReward float64 `orm:"task_reward" json:"task_reward"` // 达人赏金
  27. TalentPayment float64 `orm:"talent_payment" json:"talent_payment"` // 达人垫付金额
  28. IsPayPayment int `orm:"is_pay_payment" json:"is_pay_payment"` // 企业是否返样品钱
  29. IsPayReward int `orm:"is_pay_reward" json:"is_pay_reward"` // 企业是否结算悬赏
  30. TaskMode int `orm:"task_mode" json:"task_mode"` // 任务形式,1、2分别表示纯佣带货、悬赏任务
  31. SampleMode int `orm:"sample_mode" json:"sample_mode"` // 领样形式,1-3分别表示免费领样、垫付买样、不提供样品
  32. TaskStatus int `orm:"task_status" json:"task_status"` // 任务状态 1待选 2已选 3落选
  33. TaskStage int `orm:"task_stage" json:"task_stage"` // 任务阶段,详情见info_sec_task_stage表
  34. CreateDate *gtime.Time `orm:"create_date" json:"create_date"` // 创建时间
  35. SelectDate *gtime.Time `orm:"select_date" json:"select_date"` // 反选时间
  36. DeliveryDate *gtime.Time `orm:"delivery_date" json:"delivery_date"` // 发货时间
  37. CompleteDate *gtime.Time `orm:"complete_date" json:"complete_date"` // 结束时间
  38. WithdrawDate *gtime.Time `orm:"withdraw_date" json:"withdraw_date"` // 提现时间
  39. CompleteStatus int `orm:"complete_status" json:"complete_status"` // 结束方式 1未结束 2正常结束 3反选失败
  40. LogisticsStatus int `orm:"logistics_status" json:"logistics_status"` // 发货状态 1 待发货 2已发货 3 已签收
  41. AssignmentStatus uint `orm:"assignment_status" json:"assignment_status"` // 作业上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
  42. UpdateAt *gtime.Time `orm:"update_at" json:"update_at"` // 更新时间
  43. WithdrawStatus int `orm:"withdraw_status" json:"withdraw_status"` // 提现状态,1-4分别代表不可提现、可提现、提现中、已提现
  44. LeadTeamId string `orm:"lead_team_id" json:"lead_team_id"` // 作为团长的young之团id,对应younggee_talent_team中的team_id字段
  45. TeamId string `orm:"team_id" json:"team_id"` // 作为团员的young之团id,对应younggee_talent_team中的team_id字段
  46. TeamIncome int `orm:"team_income" json:"team_income"` // young之团团长现金收益
  47. TeamPoint int `orm:"team_point" json:"team_point"` // young之团团长积分收益
  48. SelectionDetail *SelectionDetail //含选品所有信息
  49. }
  50. type SecTaskInfoBrief struct {
  51. TaskId string `json:"task_id"` // 选品任务id
  52. SelectionId string `json:"selection_id"` // 选品id
  53. ProductId int `json:"product_id"` // 商品id
  54. TalentId string `json:"talent_id"` // 达人id
  55. AccountId int `json:"account_id"` // 账号id
  56. TalentPlatformInfoSnap string `json:"talent_platform_info_snap"` // 达人平台信息快照
  57. TalentPersonalInfoSnap string `json:"talent_personal_info_snap"` // 达人个人信息快照
  58. TalentPostAddrSnap string `json:"talent_post_addr_snap"` // 收货地址快照
  59. TaskReward float64 `json:"task_reward"` // 达人赏金
  60. TalentPayment float64 `json:"talent_payment"` // 达人垫付金额
  61. IsPayPayment int `json:"is_pay_payment"` // 企业是否返样品钱
  62. IsPayReward int `json:"is_pay_reward"` // 企业是否结算悬赏
  63. TaskMode int `json:"task_mode"` // 任务形式,1、2分别表示纯佣带货、悬赏任务
  64. SampleMode int `json:"sample_mode"` // 领样形式,1-3分别表示免费领样、垫付买样、不提供样品
  65. TaskStatus int `json:"task_status"` // 任务状态 1待选 2已选 3落选
  66. TaskStage int `json:"task_stage"` // 任务阶段,详情见info_sec_task_stage表
  67. CreateDate *gtime.Time `json:"create_date"` // 创建时间
  68. SelectDate *gtime.Time `json:"select_date"` // 反选时间
  69. DeliveryDate *gtime.Time `json:"delivery_date"` // 发货时间
  70. CompleteDate *gtime.Time `json:"complete_date"` // 结束时间
  71. WithdrawDate *gtime.Time `json:"withdraw_date"` // 提现时间
  72. CompleteStatus int `json:"complete_status"` // 结束方式 1未结束 2正常结束 3反选失败
  73. LogisticsStatus int `json:"logistics_status"` // 发货状态 1 待发货 2已发货 3 已签收
  74. AssignmentStatus uint `json:"assignment_status"` // 作业上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
  75. UpdateAt *gtime.Time `json:"update_at"` // 更新时间
  76. WithdrawStatus int `json:"withdraw_status"` // 提现状态,1-4分别代表不可提现、可提现、提现中、已提现
  77. LeadTeamId string `json:"lead_team_id"` // 作为团长的young之团id,对应younggee_talent_team中的team_id字段
  78. TeamId string `json:"team_id"` // 作为团员的young之团id,对应younggee_talent_team中的team_id字段
  79. TeamIncome float64 `json:"team_income"` // young之团团长现金收益
  80. TeamPoint int `json:"team_point"` // young之团团长积分收益
  81. PlatformIconUrl string `json:"platform_icon_url"`
  82. PlatformName string `json:"platform_name"`
  83. PlatformNickName string `json:"platform_nick_name"`
  84. SelectionName string `json:"selection_name"`
  85. ProductPhotoSnap string `json:"product_photo_snap"`
  86. //YounggeeProductPhoto *[]model.YounggeeProductPhoto // 商品图片表
  87. TaskDdl *gtime.Time `json:"task_ddl"`
  88. }
  89. type SecTaskDetailResp struct {
  90. SecTaskInfo *model.YounggeeSecTaskInfo `json:"sec_task_info"`
  91. SelectionDetail *SelectionDetail `json:"selection_detail"`
  92. WithdrawStatus int `json:"withdraw_status"`
  93. }