logistics_create.go 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. package http_model
  2. import "time"
  3. type CreateLogisticsRequest struct {
  4. RecruitStrategyID int64 `json:"recruit_strategy_id"` //招募策略id
  5. LogisticsID int64 `json:"logistics_id"` // 货物-id
  6. CompanyName string `json:"company_name"` // 实物商品-物流公司名称
  7. LogisticsNumber string `json:"logistics_number"` // 实物商品-物流单号
  8. ExplorestoreStarttime time.Time `json:"explorestore_starttime"` // 线下探店-探店开始时间
  9. ExplorestoreEndtime time.Time `json:"explorestore_endtime"` // 线下探店-探店结束时间
  10. ExplorestorePeriod string `json:"explorestore_period"` // 线下探店-探店持续时间
  11. CouponCodeInformation string `json:"coupon_code_information"` // 虚拟产品-券码信息
  12. TaskID int64 `json:"task_id"` // 任务id
  13. DeliveryTime time.Time `json:"delivery_time"` // 发货时间
  14. ThingsType int `json:"things_type"` //产品类型 1:实物, 2:线下探店,3:虚拟产品
  15. IsUpdate int `json:"is_update"` //更新标志位 0:不更新 1:更新
  16. }
  17. type CreateLogisticsData struct {
  18. LogisticsID int64 `json:"logisitcs_id"` // 商品id
  19. }
  20. func NewCreateLogisticsRequest() *CreateLogisticsRequest {
  21. return new(CreateLogisticsRequest)
  22. }
  23. func NewCreateLogisticsResponse() *CommonResponse {
  24. resp := new(CommonResponse)
  25. resp.Data = new(CreateLogisticsData)
  26. return resp
  27. }