123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- package request
- import "encoding/json"
- /**
- * @Author: qz
- * @Date: 2022/6/14 14:13
- * @Description: 取件日历 https://cloud.jdl.com/#/open-business-document/api-doc/158/1044
- */
- type StandardCalendarRequest struct {
- SenderProvince string `json:"senderProvince"`
- SenderCity string `json:"senderCity"`
- SenderDistrict string `json:"senderDistrict"`
- SenderStreetName string `json:"senderStreetName"`
- SenderDetailAddress string `json:"senderDetailAddress"`
- ReceiverProvince string `json:"receiverProvince"`
- ReceiverCity string `json:"receiverCity"`
- ReceiverDistrict string `json:"receiverDistrict"`
- ReceiverStreetName string `json:"receiverStreetName"`
- ReceiverDetailAddress string `json:"receiverDetailAddress"`
- ProductCode string `json:"productCode"`
- QueryStartDate string `json:"queryStartDate"`
- QueryDays int `json:"queryDays"`
- MiniInterval int `json:"miniInterval"`
- HighInterval int `json:"highInterval"`
- ShowFirstHour bool `json:"showFirstHour"`
- IsConsumer bool `json:"isConsumer"`
- }
- func (s *StandardCalendarRequest) GetPath() string {
- return "/api/MOGU/standardCalendar"
- }
- func (s *StandardCalendarRequest) GetBody() string {
- b, _ := json.Marshal(s)
- return string(b)
- }
- /*
- senderProvince String 是 寄件人所属省
- senderCity String 是 寄件人所属市
- senderDistrict String 是 寄件人所属区
- senderStreetName String 否 寄件人所属街道
- senderDetailAddress String 是 寄件人详细地址
- receiverProvince String 是 收件人所属省
- receiverCity String 是 收件人所属市
- receiverDistrict String 是 收件人所属区
- receiverStreetName String 否 收件人所属街道
- receiverDetailAddress String 是 收件人详细地址
- productCode String 是 ed-m-0001 物流产品code,特惠送:ed-m-0001;特快送:ed-m-0002
- queryStartDate String 否 预约日历起始时间
- queryDays Integer 否 3 预约日历天数,默认为3天,最大为4天
- miniInterval Integer 否 2 时效最高标准
- highInterval Integer 否 4 时效最低标准
- showFirstHour Boolean 否 是否显示从最近时间开始的时间段
- isConsumer Boolean 否 是否C端用户揽件;调用方根据取件服务对象是商家还 是个人消费者,会返回配置的不同截单时间
- */
|