task_logistics.go 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. package http_model
  2. import (
  3. "time"
  4. "youngee_b_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. SignedTime string `json:"signed_time"` // 签收时间
  26. ExplorestoreStarttime time.Time `json:"explorestore_starttime"` // 线下探店-探店开始时间
  27. ExplorestoreEndtime time.Time `json:"explorestore_endtime"` // 线下探店-探店结束时间
  28. ExplorestorePeriod string `json:"explorestore_period"` // 线下探店-探店持续时间
  29. CouponCode string `json:"coupon_code"` // 券码信息
  30. }
  31. type TaskLogisticsInfo struct {
  32. TaskID string `json:"task_id"` // 任务ID
  33. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  34. FansCount string `json:"fans_count"` // 粉丝数
  35. RecruitStrategyID int `json:"recruit_strategy_id"`
  36. StrategyID int `json:"strategy_id"` // 报名选择的招募策略id
  37. DetailAddr string `json:"detail_addr"` // 物流信息
  38. CompanyName string `json:"company_name"` // 物流公司
  39. LogisticsNumber string `json:"logistics_number"` // 物流单号
  40. DeliveryTime string `json:"delivery_time"` // 发货时间
  41. SignedTime string `json:"signed_time"` // 签收时间
  42. ExplorestoreStarttime time.Time `json:"explorestore_starttime"` // 线下探店-探店开始时间
  43. ExplorestoreEndtime time.Time `json:"explorestore_endtime"` // 线下探店-探店结束时间
  44. ExplorestorePeriod string `json:"explorestore_period"` // 线下探店-探店持续时间
  45. CouponCode string `json:"coupon_code"` // 券码信息
  46. }
  47. type TaskLogistics struct {
  48. Talent gorm_model.YoungeeTaskInfo
  49. Logistics gorm_model.YoungeeTaskLogistics
  50. Region string
  51. //Account gorm_model.YoungeePlatformAccountInfo
  52. }
  53. type TaskLogisticsListData struct {
  54. TaskLogisticsPreview []*TaskLogisticsPreview `json:"project_talent_pre_view"`
  55. Total string `json:"total"`
  56. }
  57. func NewTaskLogisticsListRequest() *TaskLogisticsListRequest {
  58. return new(TaskLogisticsListRequest)
  59. }
  60. func NewTaskLogisticsListResponse() *CommonResponse {
  61. resp := new(CommonResponse)
  62. resp.Data = new(ProjectTaskListData)
  63. return resp
  64. }