You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.0 KiB
42 lines
1.0 KiB
3 years ago
|
package rest
|
||
|
|
||
|
// GetAddressRequest 地址转换请求
|
||
|
type GetAddressRequest struct {
|
||
|
Uname string `json:"uname"`
|
||
|
Province string `json:"province"`
|
||
|
City string `json:"city"`
|
||
|
Street string `json:"street"`
|
||
|
Town string `json:"town"`
|
||
|
Address string `json:"address"`
|
||
|
}
|
||
|
|
||
|
func (o GetAddressRequest) GetApiName() string {
|
||
|
return "jingdong.jingdong.ks.getJDAddress"
|
||
|
}
|
||
|
|
||
|
func (o GetAddressRequest) GetRespName() string {
|
||
|
return "jingdong_jingdong_ks_getJDAddress_responce"
|
||
|
}
|
||
|
|
||
|
func (o GetAddressRequest) GetRespObj() interface{} {
|
||
|
return GetAddressResponse{}
|
||
|
}
|
||
|
|
||
|
// GetAddressResponse 返回参数.
|
||
|
type GetAddressResponse struct {
|
||
|
Response struct {
|
||
|
Message string `json:"message"`
|
||
|
Result GetAddressParams `json:"result"`
|
||
|
Code string `json:"code"`
|
||
|
}
|
||
|
Code string `json:"code"`
|
||
|
}
|
||
|
|
||
|
type GetAddressParams struct {
|
||
|
Address string `json:"address"`
|
||
|
TownID uint `json:"townid"`
|
||
|
ProvinceID uint `json:"provinceid"`
|
||
|
CityID uint `json:"cityid"`
|
||
|
StreetID uint `json:"streetid"`
|
||
|
}
|