shippinglist

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 Data

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

type ShippingListRequest

type ShippingListRequest struct {
}

func (*ShippingListRequest) DoInvoke

func (req *ShippingListRequest) DoInvoke(client mtclient.MeituanClient, appAuthToken string) (*ShippingListResponse, error)

type ShippingListResponse

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

func (*ShippingListResponse) IsSuccess

func (response *ShippingListResponse) IsSuccess() bool

Jump to

Keyboard shortcuts

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