standardCalendar.go 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package request
  2. import "encoding/json"
  3. /**
  4. * @Author: qz
  5. * @Date: 2022/6/14 14:13
  6. * @Description: 取件日历 https://cloud.jdl.com/#/open-business-document/api-doc/158/1044
  7. */
  8. type StandardCalendarRequest struct {
  9. SenderProvince string `json:"senderProvince"`
  10. SenderCity string `json:"senderCity"`
  11. SenderDistrict string `json:"senderDistrict"`
  12. SenderStreetName string `json:"senderStreetName"`
  13. SenderDetailAddress string `json:"senderDetailAddress"`
  14. ReceiverProvince string `json:"receiverProvince"`
  15. ReceiverCity string `json:"receiverCity"`
  16. ReceiverDistrict string `json:"receiverDistrict"`
  17. ReceiverStreetName string `json:"receiverStreetName"`
  18. ReceiverDetailAddress string `json:"receiverDetailAddress"`
  19. ProductCode string `json:"productCode"`
  20. QueryStartDate string `json:"queryStartDate"`
  21. QueryDays int `json:"queryDays"`
  22. MiniInterval int `json:"miniInterval"`
  23. HighInterval int `json:"highInterval"`
  24. ShowFirstHour bool `json:"showFirstHour"`
  25. IsConsumer bool `json:"isConsumer"`
  26. }
  27. func (s *StandardCalendarRequest) GetPath() string {
  28. return "/api/MOGU/standardCalendar"
  29. }
  30. func (s *StandardCalendarRequest) GetBody() string {
  31. b, _ := json.Marshal(s)
  32. return string(b)
  33. }
  34. /*
  35. senderProvince String 是 寄件人所属省
  36. senderCity String 是 寄件人所属市
  37. senderDistrict String 是 寄件人所属区
  38. senderStreetName String 否 寄件人所属街道
  39. senderDetailAddress String 是 寄件人详细地址
  40. receiverProvince String 是 收件人所属省
  41. receiverCity String 是 收件人所属市
  42. receiverDistrict String 是 收件人所属区
  43. receiverStreetName String 否 收件人所属街道
  44. receiverDetailAddress String 是 收件人详细地址
  45. productCode String 是 ed-m-0001 物流产品code,特惠送:ed-m-0001;特快送:ed-m-0002
  46. queryStartDate String 否 预约日历起始时间
  47. queryDays Integer 否 3 预约日历天数,默认为3天,最大为4天
  48. miniInterval Integer 否 2 时效最高标准
  49. highInterval Integer 否 4 时效最低标准
  50. showFirstHour Boolean 否 是否显示从最近时间开始的时间段
  51. isConsumer Boolean 否 是否C端用户揽件;调用方根据取件服务对象是商家还 是个人消费者,会返回配置的不同截单时间
  52. */