foodskuprice

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 FoodData

type FoodData struct {
	/**
	 *  服务商方的菜品id 最大长度128,不同门店可以重复,同一门店内不能重复
	 */
	AppFoodCode string `json:"app_food_code"`
	/**
	 *  skus
	 */
	Skus []Skus `json:"skus"`
}

type FoodSkuPriceRequest

type FoodSkuPriceRequest struct {
	/**
	 *  菜品sku价格集合
	 */
	FoodData []FoodData `json:"food_data"`
}

func (*FoodSkuPriceRequest) DoInvoke

func (req *FoodSkuPriceRequest) DoInvoke(client mtclient.MeituanClient, appAuthToken string) (*FoodSkuPriceResponse, error)

type FoodSkuPriceResponse

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

func (*FoodSkuPriceResponse) IsSuccess

func (response *FoodSkuPriceResponse) IsSuccess() bool

type Skus

type Skus struct {
	/**
	 *  sku码
	 */
	SkuId string `json:"sku_id"`
	/**
	 *  sku价格,只到小数点后两位
	 */
	Price string `json:"price"`
}

Jump to

Keyboard shortcuts

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