sectask_model.go 7.8 KB

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