123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- package request
- import "encoding/json"
- 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)
- }
|