shippingfetch

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 ShippingAreaInfo

type ShippingAreaInfo struct {
	/**
	 * 服务商方提供的配送范围id
	 */
	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代表经度(美团使用的是高德坐标系,也就是火星坐标系,如果是百度坐标系需要转换,配送范围坐标需要乘以一百万) app_shipping_code string 125
	 */
	Area string `json:"area"`
	/**
	 * 该配送区域的起送价
	 */
	MinPrice float64 `json:"min_price"`
	/**
	 * 该配送区域的配送费(建议填写这个字段设定配送费,如果此字段为空,则以门店保存的配送费为准)
	 */
	ShippingFee float64 `json:"shipping_fee"`
	/**
	 * 此配送范围的配送方式
	 */
	LogisticsCode string `json:"logistics_code"`
	TimeRange     string `json:"time_range"`
}

type ShippingFetchRequest

type ShippingFetchRequest struct {
}

func (*ShippingFetchRequest) DoInvoke

func (req *ShippingFetchRequest) DoInvoke(client mtclient.MeituanClient, appAuthToken string) (*ShippingFetchResponse, error)

type ShippingFetchResponse

type ShippingFetchResponse struct {
	Code    string             `json:"code"`
	Msg     string             `json:"msg"`
	Data    []ShippingAreaInfo `json:"data"`
	TraceId string             `json:"traceId"`
}

func (*ShippingFetchResponse) IsSuccess

func (response *ShippingFetchResponse) IsSuccess() bool

Jump to

Keyboard shortcuts

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