Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShippingBatchsaveRequest ¶
type ShippingBatchsaveRequest struct { /** * 配送范围集合的json数据,处理逻辑: 1)如果配送范围原来不存在就新增; 2)如app_shipping_code存在就更新; 3)如原来存在的app_shipping_code,而这次没提交,就删除范围都为多边形,不支持圆形 */ ShippingData []ShippingData `json:"shipping_data"` }
func (*ShippingBatchsaveRequest) DoInvoke ¶
func (req *ShippingBatchsaveRequest) DoInvoke(client mtclient.MeituanClient, appAuthToken string) (*ShippingBatchsaveResponse, error)
type ShippingBatchsaveResponse ¶
type ShippingBatchsaveResponse struct { Code string `json:"code"` Msg string `json:"msg"` Data string `json:"data"` TraceId string `json:"traceId"` }
func (*ShippingBatchsaveResponse) IsSuccess ¶
func (response *ShippingBatchsaveResponse) IsSuccess() bool
type ShippingData ¶
type ShippingData struct { /** * 该配送区域的起送价 */ MinPrice float64 `json:"min_price"` /** * 配送范围type为1 时: [{"x":39941199,"y":116385384},{"x":39926983,"y":116361694},{"x ":39921586,"y":116398430}], type为2时: {"r":1000,"x":40029380,"y":116418390}, 需要对其urlEncode,x代表纬度,y代表经度(美团使用的是高德坐标系,也就是火星坐标系,如果是百度坐标系需要转换,配送范围坐标需要乘以一百万) */ Area string `json:"area"` /** * APP方提供的配送范围id,如一个门店没有配送范围ID,且每个门店只有一个配送范围,可以填1 */ AppShippingCode string `json:"app_shipping_code"` /** * 配置范围类型,(1表示多个配送范围由多个多边形组成)只支持多边形 */ Type string `json:"type"` /** * 该配送区域的配送费(建议填写这个字段设定配送费,如果此字段为空,则以门店保存的配送费为准) */ ShippingFee float64 `json:"shipping_fee"` }
Click to show internal directories.
Click to hide internal directories.