task_logistics.go 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 int `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. //Account gorm_model.YoungeePlatformAccountInfo
  51. }
  52. type TaskLogisticsListData struct {
  53. TaskLogisticsPreview []*TaskLogisticsPreview `json:"project_talent_pre_view"`
  54. Total string `json:"total"`
  55. }
  56. func NewTaskLogisticsListRequest() *TaskLogisticsListRequest {
  57. return new(TaskLogisticsListRequest)
  58. }
  59. func NewTaskLogisticsListResponse() *CommonResponse {
  60. resp := new(CommonResponse)
  61. resp.Data = new(ProjectTaskListData)
  62. return resp
  63. }