task_logistics.go 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package http_model
  2. import (
  3. "time"
  4. "youngee_m_api/model/gorm_model"
  5. )
  6. type TaskLogisticsListRequest struct {
  7. PageSize int64 `json:"page_size"`
  8. PageNum int64 `json:"page_num"`
  9. ProjectId string `json:"project_id"` // 项目ID
  10. TaskId string `json:"task_id"` // 任务ID
  11. StrategyId string `json:"strategy_id"` // 策略ID
  12. LogisticsStatus string `json:"logistics_status"` // 任务状态
  13. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  14. }
  15. type TaskLogisticsPreview struct {
  16. TaskID string `json:"task_id"` // 任务ID
  17. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  18. FansCount string `json:"fans_count"` // 粉丝数
  19. RecruitStrategyID string `json:"recruit_strategy_id"`
  20. StrategyID string `json:"strategy_id"` // 报名选择的招募策略id
  21. DetailAddr string `json:"detail_addr"` // 物流信息
  22. CompanyName string `json:"company_name"` // 物流公司
  23. LogisticsNumber string `json:"logistics_number"` // 物流单号
  24. DeliveryTime string `json:"delivery_time"` // 发货时间
  25. ExplorestoreStarttime time.Time `json:"explorestore_starttime"` // 线下探店-探店开始时间
  26. ExplorestoreEndtime time.Time `json:"explorestore_endtime"` // 线下探店-探店结束时间
  27. ExplorestorePeriod string `json:"explorestore_period"` // 线下探店-探店持续时间
  28. CouponCode string `json:"coupon_code"` // 券码信息
  29. }
  30. type TaskLogisticsInfo struct {
  31. TaskID string `json:"task_id"` // 任务ID
  32. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  33. FansCount string `json:"fans_count"` // 粉丝数
  34. RecruitStrategyID int `json:"recruit_strategy_id"`
  35. StrategyID int `json:"strategy_id"` // 报名选择的招募策略id
  36. DetailAddr string `json:"detail_addr"` // 物流信息
  37. CompanyName string `json:"company_name"` // 物流公司
  38. LogisticsNumber string `json:"logistics_number"` // 物流单号
  39. DeliveryTime string `json:"delivery_time"` // 发货时间
  40. ExplorestoreStarttime time.Time `json:"explorestore_starttime"` // 线下探店-探店开始时间
  41. ExplorestoreEndtime time.Time `json:"explorestore_endtime"` // 线下探店-探店结束时间
  42. ExplorestorePeriod string `json:"explorestore_period"` // 线下探店-探店持续时间
  43. CouponCode string `json:"coupon_code"` // 券码信息
  44. }
  45. type TaskLogistics struct {
  46. Talent gorm_model.YoungeeTaskInfo
  47. Logistics gorm_model.YoungeeTaskLogistics
  48. //Account gorm_model.YoungeePlatformAccountInfo
  49. }
  50. type TaskLogisticsListData struct {
  51. TaskLogisticsPreview []*TaskLogisticsPreview `json:"project_talent_pre_view"`
  52. Total string `json:"total"`
  53. }
  54. func NewTaskLogisticsListRequest() *TaskLogisticsListRequest {
  55. return new(TaskLogisticsListRequest)
  56. }
  57. func NewTaskLogisticsListResponse() *CommonResponse {
  58. resp := new(CommonResponse)
  59. resp.Data = new(ProjectTaskListData)
  60. return resp
  61. }