sectask_model.go 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package sectask
  2. import (
  3. "github.com/gogf/gf/os/gtime"
  4. "youngmini_server/app/model/youngee_talent_model"
  5. _ "youngmini_server/app/model/youngee_talent_model"
  6. )
  7. type ListSecTaskReq struct {
  8. TaskStage int `json:"task_stage"`
  9. }
  10. type ListSecTaskRes struct {
  11. Count int `json:"count"` //任务列表有几个
  12. SecTask []*ListSecTaskSql `json:"sec_task"` //这几个对应的sectask信息
  13. //SelectionDetail []*youngee_talent_model.SelectionDetail //可动态改变的详细的selectiondetail
  14. }
  15. type ListSecTaskSql struct {
  16. TaskId string `json:"task_id"` // 选品任务id
  17. SelectionId string `json:"selection_id"` // 选品id
  18. ProductId int `json:"product_id"` // 商品id
  19. TalentId string `json:"talent_id"` // 达人id
  20. AccountId int `json:"account_id"` // 账号id
  21. TalentPlatformInfoSnap string `json:"talent_platform_info_snap"` // 达人平台信息快照
  22. TalentPersonalInfoSnap string `json:"talent_personal_info_snap"` // 达人个人信息快照
  23. TalentPostAddrSnap string `json:"talent_post_addr_snap"` // 收货地址快照
  24. TaskReward float64 `json:"task_reward"` // 达人赏金
  25. TalentPayment float64 `json:"talent_payment"` // 达人垫付金额
  26. IsPayPayment int `json:"is_pay_payment"` // 企业是否返样品钱
  27. IsPayReward int `json:"is_pay_reward"` // 企业是否结算悬赏
  28. TaskMode int `json:"task_mode"` // 任务形式,1、2分别表示纯佣带货、悬赏任务
  29. SampleMode int `json:"sample_mode"` // 领样形式,1-3分别表示免费领样、垫付买样、不提供样品
  30. TaskStatus int `json:"task_status"` // 任务状态 1待选 2已选 3落选
  31. TaskStage int `json:"task_stage"` // 任务阶段,详情见info_sec_task_stage表
  32. CreateDate *gtime.Time `json:"create_date"` // 创建时间
  33. SelectDate *gtime.Time `json:"select_date"` // 反选时间
  34. DeliveryDate *gtime.Time `json:"delivery_date"` // 发货时间
  35. CompleteDate *gtime.Time `json:"complete_date"` // 结束时间
  36. WithdrawDate *gtime.Time `json:"withdraw_date"` // 提现时间
  37. CompleteStatus int `json:"complete_status"` // 结束方式 1未结束 2正常结束 3反选失败
  38. LogisticsStatus int `json:"logistics_status"` // 发货状态 1 待发货 2已发货 3 已签收
  39. AssignmentStatus uint `json:"assignment_status"` // 作业上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
  40. UpdateAt *gtime.Time `json:"update_at"` // 更新时间
  41. WithdrawStatus int `json:"withdraw_status"` // 提现状态,1-4分别代表不可提现、可提现、提现中、已提现
  42. LeadTeamId string `json:"lead_team_id"` // 作为团长的young之团id,对应younggee_talent_team中的team_id字段
  43. TeamId string `json:"team_id"` // 作为团员的young之团id,对应younggee_talent_team中的team_id字段
  44. TeamIncome float64 `json:"team_income"` // young之团团长现金收益
  45. TeamPoint int `json:"team_point"` // young之团团长积分收益
  46. RewardStrategy []*youngee_talent_model.RewardStrategy `orm:"with:selection_id=selection_id"` // 悬赏策略表
  47. SecTaskTable *youngee_talent_model.SecTaskInfoDetail `orm:"with:task_id=task_id"`
  48. SaleActual int `json:"sale_actual"` //达人带出此商品的有效销量
  49. PlatformIconUrl string `json:"platform_icon_url"`
  50. PlatformName string `json:"platform_name"`
  51. PlatformNickName string `json:"platform_nick_name"`
  52. SelectionName string `json:"selection_name"`
  53. ProductPhotoSnap string `json:"product_photo_snap"`
  54. //YounggeeProductPhoto *[]model.YounggeeProductPhoto // 商品图片表
  55. TaskDdl *gtime.Time `json:"task_ddl"`
  56. FreeStage int `json:"free_stage" ` // 免费领样阶段,1-5分别代表已申请、已拒绝、待发货、已发货、已收货',
  57. }
  58. type UpdateStageReq struct {
  59. TaskId string `json:"task_id"` // 选品任务id
  60. TaskStage int `json:"task_stage"` // 任务阶段,详情见info_sec_task_stage表
  61. AssignmentStatus uint `json:"assignment_status"` // 作业上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
  62. }
  63. type LogisticsDetail struct {
  64. AddressSnap string `json:"address_snap"`
  65. LogisticsContext *youngee_talent_model.KdState `json:"logistics_context"`
  66. LogisticsCompany string `json:"logistics_company"`
  67. LogisticsNumber string `json:"logistics_number"`
  68. }