shippingsave

package
v0.0.0-...-905ac7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShippingSaveRequest

type ShippingSaveRequest struct {
	/**
	 *  服务商方提供的配送范围id。 如一个门店没有配送范围ID,且每个门店只有一个配送范围,可以填1
	 */
	AppShippingCode string `json:"app_shipping_code"`
	/**
	 *  配置范围类型,(1表示多个配送范围由多个多边形组成)只支持多边形
	 */
	Type string `json:"type"`
	/**
	 *  配送范围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"`
	/**
	 *  该配送区域的起送价
	 */
	MinPrice float64 `json:"min_price"`
	/**
	 *  该配送区域的配送费 (建议填写这个字段设定配送费,如果此字段为空,则以门店保存的配送费为准)
	 */
	ShippingFee float64 `json:"shipping_fee"`
}

func (*ShippingSaveRequest) DoInvoke

func (req *ShippingSaveRequest) DoInvoke(client mtclient.MeituanClient, appAuthToken string) (*ShippingSaveResponse, error)

type ShippingSaveResponse

type ShippingSaveResponse struct {
	Code    string `json:"code"`
	Msg     string `json:"msg"`
	Data    string `json:"data"`
	TraceId string `json:"traceId"`
}

func (*ShippingSaveResponse) IsSuccess

func (response *ShippingSaveResponse) IsSuccess() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL