batchqueryfooddna

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 BatchQueryFoodDnaRequest

type BatchQueryFoodDnaRequest struct {
	/**
	 *  菜品id列表,使用逗号隔开,最多200个。
	 */
	EDishCodes string `json:"eDishCodes"`
}

func (*BatchQueryFoodDnaRequest) DoInvoke

func (req *BatchQueryFoodDnaRequest) DoInvoke(client mtclient.MeituanClient, appAuthToken string) (*BatchQueryFoodDnaResponse, error)

type BatchQueryFoodDnaResponse

type BatchQueryFoodDnaResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	/**
	 * 商品DNA信息
	 */
	Data    []FoodDna `json:"data"`
	TraceId string    `json:"traceId"`
}

func (*BatchQueryFoodDnaResponse) IsSuccess

func (response *BatchQueryFoodDnaResponse) IsSuccess() bool

type FoodDna

type FoodDna struct {
	/**
	 * 后台类目id
	 */
	CategoryId   int64 `json:"categoryId"`
	Customizable int64 `json:"customizable"`
	/**
	 * 菜品id
	 */
	AppFoodCode string `json:"app_food_code"`
	/**
	 * 模板信息
	 */
	PropertiesValues []PropertiesValue `json:"properties_values"`
}

type PropertiesValue

type PropertiesValue struct {
	/**
	 * 后台类目对应模板下属性ID
	 */
	Code int64 `json:"code"`
	/**
	 * 模板ID
	 */
	TemplateId int64 `json:"template_id"`
	/**
	 * 后台类目id
	 */
	CategoryId int64 `json:"category_id"`
	/**
	 * 后台类目对应模板下属性父ID
	 */
	ParentPropertyId int64 `json:"parent_property_id"`
	/**
	 * 后台类目对应模板下属性名称
	 */
	Name string `json:"name"`
	/**
	 * 后台类目对应模板下属性填的值
	 */
	Value string `json:"value"`
	/**
	 * 后台类目对应模板下属性填的值的ID
	 */
	ValueId int64 `json:"value_id"`
	/**
	 * 层级
	 */
	Level int32 `json:"level"`
	/**
	 * 是否叶子节点
	 */
	IsLeaf int32 `json:"is_leaf"`
	/**
	 * 排序
	 */
	Sequence int32 `json:"sequence"`
	/**
	 * 子节点
	 */
	Child []PropertiesValue `json:"child"`
}

Jump to

Keyboard shortcuts

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