selection_task.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. SaleNum int `json:"saleNum"`
  13. FansNum int `json:"fans"`
  14. }
  15. type SignSecTaskResp struct {
  16. TaskId string `json:"task_id"`
  17. }
  18. type SecTaskInfoDetail struct {
  19. Id int `orm:"id,primary" json:"id"` // 递增id
  20. TaskId string `orm:"task_id" json:"task_id"` // 选品任务id
  21. SelectionId string `orm:"selection_id" json:"selection_id"` // 选品id
  22. ProductId int `orm:"product_id" json:"product_id"`
  23. TalentId string `orm:"talent_id" json:"talent_id"` // 达人id
  24. AccountId int `orm:"account_id" json:"account_id"` // 账号id
  25. TalentPlatformInfoSnap string `orm:"talent_platform_info_snap" json:"talent_platform_info_snap"` // 达人平台信息快照
  26. TalentPersonalInfoSnap string `orm:"talent_personal_info_snap" json:"talent_personal_info_snap"` // 达人个人信息快照
  27. TalentPostAddrSnap string `orm:"talent_post_addr_snap" json:"talent_post_addr_snap"` // 收货地址快照
  28. TaskReward float64 `orm:"task_reward" json:"task_reward"` // 达人赏金
  29. TalentPayment float64 `orm:"talent_payment" json:"talent_payment"` // 达人垫付金额
  30. IsPayPayment int `orm:"is_pay_payment" json:"is_pay_payment"` // 企业是否返样品钱
  31. IsPayReward int `orm:"is_pay_reward" json:"is_pay_reward"` // 企业是否结算悬赏
  32. TaskMode int `orm:"task_mode" json:"task_mode"` // 任务形式,1、2分别表示悬赏任务、纯佣带货',
  33. SampleMode int `orm:"sample_mode" json:"sample_mode"` // 领样形式,1-3分别表示免费领样、垫付买样、不提供样品
  34. TaskStatus int `orm:"task_status" json:"task_status"` // 任务状态 1待选 2已选 3落选
  35. TaskStage int `orm:"task_stage" json:"task_stage"` // 任务阶段,详情见info_sec_task_stage表
  36. CreateDate *gtime.Time `orm:"create_date" json:"create_date"` // 创建时间
  37. SelectDate *gtime.Time `orm:"select_date" json:"select_date"` // 反选时间
  38. DeliveryDate *gtime.Time `orm:"delivery_date" json:"delivery_date"` // 发货时间
  39. CompleteDate *gtime.Time `orm:"complete_date" json:"complete_date"` // 结束时间
  40. WithdrawDate *gtime.Time `orm:"withdraw_date" json:"withdraw_date"` // 提现时间
  41. CompleteStatus int `orm:"complete_status" json:"complete_status"` // 结束方式 1未结束 2正常结束 3反选失败
  42. LogisticsStatus int `orm:"logistics_status" json:"logistics_status"` // 发货状态 1 待发货 2已发货 3 已签收
  43. AssignmentStatus uint `orm:"assignment_status" json:"assignment_status"` // 作业上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
  44. UpdateAt *gtime.Time `orm:"update_at" json:"update_at"` // 更新时间
  45. WithdrawStatus int `orm:"withdraw_status" json:"withdraw_status"` // 提现状态,1-4分别代表不可提现、可提现、提现中、已提现
  46. LeadTeamId string `orm:"lead_team_id" json:"lead_team_id"` // 作为团长的young之团id,对应younggee_talent_team中的team_id字段
  47. TeamId string `orm:"team_id" json:"team_id"` // 作为团员的young之团id,对应younggee_talent_team中的team_id字段
  48. TeamIncome int `orm:"team_income" json:"team_income"` // young之团团长现金收益
  49. TeamPoint int `orm:"team_point" json:"team_point"` // young之团团长积分收益
  50. SelectionDetail *SelectionDetail //含选品所有信息
  51. FansNum int `orm:"fans_num" json:"fans_num"` // 粉丝数
  52. SaleNum int `orm:"sale_num" json:"sale_num"` // 粉丝数
  53. FreeStage int `orm:"free_stage" json:"free_stage"` // 免费领样阶段,1-5分别代表已申请、已拒绝、待发货、已发货、已收货',
  54. RewardStage int `orm:"reward_stage" json:"reward_stage"` //悬赏阶段,1-2分别代表待结算、已结算',
  55. SaleNumAll int `orm:"sale_num_all" json:"sale_num_all"` //达人对此商品的全部销售量(大于1表示已出单)
  56. }
  57. type SecTaskInfoWindowDetail struct {
  58. Id int `orm:"id,primary" json:"id"` // 递增id
  59. TaskId string `orm:"task_id" json:"task_id"` // 选品任务id
  60. SelectionId string `orm:"selection_id" json:"selection_id"` // 选品id
  61. ProductId int `orm:"product_id" json:"product_id"`
  62. TalentId string `orm:"talent_id" json:"talent_id"` // 达人id
  63. AccountId int `orm:"account_id" json:"account_id"` // 账号id
  64. TalentPlatformInfoSnap string `orm:"talent_platform_info_snap" json:"talent_platform_info_snap"` // 达人平台信息快照
  65. TalentPersonalInfoSnap string `orm:"talent_personal_info_snap" json:"talent_personal_info_snap"` // 达人个人信息快照
  66. //TalentPostAddrSnap string `orm:"talent_post_addr_snap" json:"talent_post_addr_snap"` // 收货地址快照
  67. TaskReward float64 `orm:"task_reward" json:"task_reward"` // 达人赏金
  68. TalentPayment float64 `orm:"talent_payment" json:"talent_payment"` // 达人垫付金额
  69. IsPayPayment int `orm:"is_pay_payment" json:"is_pay_payment"` // 企业是否返样品钱
  70. IsPayReward int `orm:"is_pay_reward" json:"is_pay_reward"` // 企业是否结算悬赏
  71. TaskMode int `orm:"task_mode" json:"task_mode"` // 任务形式,1、2分别表示纯佣带货、悬赏任务
  72. SampleMode int `orm:"sample_mode" json:"sample_mode"` // 领样形式,1-3分别表示免费领样、垫付买样、不提供样品
  73. TaskStatus int `orm:"task_status" json:"task_status"` // 任务状态 1待选 2已选 3落选
  74. TaskStage int `orm:"task_stage" json:"task_stage"` // 任务阶段,详情见info_sec_task_stage表
  75. CreateDate *gtime.Time `orm:"create_date" json:"create_date"` // 创建时间
  76. SelectDate *gtime.Time `orm:"select_date" json:"select_date"` // 反选时间
  77. DeliveryDate *gtime.Time `orm:"delivery_date" json:"delivery_date"` // 发货时间
  78. CompleteDate *gtime.Time `orm:"complete_date" json:"complete_date"` // 结束时间
  79. WithdrawDate *gtime.Time `orm:"withdraw_date" json:"withdraw_date"` // 提现时间
  80. CompleteStatus int `orm:"complete_status" json:"complete_status"` // 结束方式 1未结束 2正常结束 3反选失败
  81. LogisticsStatus int `orm:"logistics_status" json:"logistics_status"` // 发货状态 1 待发货 2已发货 3 已签收
  82. AssignmentStatus uint `orm:"assignment_status" json:"assignment_status"` // 作业上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
  83. UpdateAt *gtime.Time `orm:"update_at" json:"update_at"` // 更新时间
  84. WithdrawStatus int `orm:"withdraw_status" json:"withdraw_status"` // 提现状态,1-4分别代表不可提现、可提现、提现中、已提现
  85. LeadTeamId string `orm:"lead_team_id" json:"lead_team_id"` // 作为团长的young之团id,对应younggee_talent_team中的team_id字段
  86. TeamId string `orm:"team_id" json:"team_id"` // 作为团员的young之团id,对应younggee_talent_team中的team_id字段
  87. TeamIncome int `orm:"team_income" json:"team_income"` // young之团团长现金收益
  88. TeamPoint int `orm:"team_point" json:"team_point"` // young之团团长积分收益
  89. SelectionDetail *SelectionDetail //含选品所有信息
  90. FansNum int `orm:"fans_num" json:"fans_num"` // 粉丝数
  91. SaleNum int `orm:"sale_num" json:"sale_num"` // 粉丝数
  92. }
  93. type SecTaskInfoBrief struct {
  94. TaskId string `json:"task_id"` // 选品任务id
  95. SelectionId string `json:"selection_id"` // 选品id
  96. ProductId int `json:"product_id"` // 商品id
  97. TalentId string `json:"talent_id"` // 达人id
  98. AccountId int `json:"account_id"` // 账号id
  99. TalentPlatformInfoSnap string `json:"talent_platform_info_snap"` // 达人平台信息快照
  100. TalentPersonalInfoSnap string `json:"talent_personal_info_snap"` // 达人个人信息快照
  101. TalentPostAddrSnap string `json:"talent_post_addr_snap"` // 收货地址快照
  102. TaskReward float64 `json:"task_reward"` // 达人赏金
  103. TalentPayment float64 `json:"talent_payment"` // 达人垫付金额
  104. IsPayPayment int `json:"is_pay_payment"` // 企业是否返样品钱
  105. IsPayReward int `json:"is_pay_reward"` // 企业是否结算悬赏
  106. TaskMode int `json:"task_mode"` // 任务形式,1、2分别表示纯佣带货、悬赏任务
  107. SampleMode int `json:"sample_mode"` // 领样形式,1-3分别表示免费领样、垫付买样、不提供样品
  108. TaskStatus int `json:"task_status"` // 任务状态 1待选 2已选 3落选
  109. TaskStage int `json:"task_stage"` // 任务阶段,详情见info_sec_task_stage表
  110. CreateDate *gtime.Time `json:"create_date"` // 创建时间
  111. SelectDate *gtime.Time `json:"select_date"` // 反选时间
  112. DeliveryDate *gtime.Time `json:"delivery_date"` // 发货时间
  113. CompleteDate *gtime.Time `json:"complete_date"` // 结束时间
  114. WithdrawDate *gtime.Time `json:"withdraw_date"` // 提现时间
  115. CompleteStatus int `json:"complete_status"` // 结束方式 1未结束 2正常结束 3反选失败
  116. LogisticsStatus int `json:"logistics_status"` // 发货状态 1 待发货 2已发货 3 已签收
  117. AssignmentStatus uint `json:"assignment_status"` // 作业上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
  118. UpdateAt *gtime.Time `json:"update_at"` // 更新时间
  119. WithdrawStatus int `json:"withdraw_status"` // 提现状态,1-4分别代表不可提现、可提现、提现中、已提现
  120. LeadTeamId string `json:"lead_team_id"` // 作为团长的young之团id,对应younggee_talent_team中的team_id字段
  121. TeamId string `json:"team_id"` // 作为团员的young之团id,对应younggee_talent_team中的team_id字段
  122. TeamIncome float64 `json:"team_income"` // young之团团长现金收益
  123. TeamPoint int `json:"team_point"` // young之团团长积分收益
  124. PlatformIconUrl string `json:"platform_icon_url"`
  125. PlatformName string `json:"platform_name"`
  126. PlatformNickName string `json:"platform_nick_name"`
  127. SelectionName string `json:"selection_name"`
  128. ProductPhotoSnap string `json:"product_photo_snap"`
  129. //YounggeeProductPhoto *[]model.YounggeeProductPhoto // 商品图片表
  130. TaskDdl *gtime.Time `json:"task_ddl"`
  131. }
  132. type SecTaskDetailResp struct {
  133. SecTaskInfo *model.YounggeeSecTaskInfo `json:"sec_task_info"`
  134. SelectionDetail *SelectionDetail `json:"selection_detail"`
  135. WithdrawStatus int `json:"withdraw_status"`
  136. }