eleenterpriserestaurant

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

企业订餐店铺接口 model

https://open.taobao.com/API.htm?docId=49167&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activite

type Activite struct {
	// 见附录【活动信息detail_type值】
	DetailType int64 `json:"detail_type,omitempty" xml:"detail_type,omitempty"`
	// 活动名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 餐厅描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 活动ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

Activite

type Activitie

type Activitie struct {
	// 见附录【活动信息detail_type值】
	DetailType int64 `json:"detail_type,omitempty" xml:"detail_type,omitempty"`
	// 活动名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 餐厅描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 活动ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

Activitie

type Activities

type Activities struct {
	// * 餐厅活动类型 	 * 3	优惠券(废弃) 	 * 7	新用户折扣(可以和其他活动共享) 	 * 100	额外折扣(废弃) 	 * 101	在线支付折扣(废弃) 	 * 102	活动折扣(类似满减的活动折扣) 	 * 103	新用户折扣(不可以和其他活动共享) 	 * 104	订单红包(废弃) 	 * 105	JINBAO折扣(专享红包,某些餐厅可以使用) 	 * 106	餐厅维度的赠品活动 	 * 美食活动类型 	 * 1	折扣价(按百分比折扣) 	 * 2	减价(按金额进行折扣) 	 * 3	第N份折扣价(第N件按百分比折扣) 	 * 4	固定价格(不管原价多少都按固定价格售卖,特价菜) 	 * 5	赠品(购物某个美食附送赠品,可以与其它美食活动并存)
	DetailType int64 `json:"detail_type,omitempty" xml:"detail_type,omitempty"`
	// 活动名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 活动文本描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 活动id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

Activities

type Activity

type Activity struct {
	// 活动名字
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
}

Activity

type AlibabaEleEnterpriseRestaurantCategoriesAPIResponse

type AlibabaEleEnterpriseRestaurantCategoriesAPIResponse struct {
	model.CommonResponse
	AlibabaEleEnterpriseRestaurantCategoriesResponse
}

餐厅分类 API返回值 alibaba.ele.enterprise.restaurant.categories

餐厅分类

type AlibabaEleEnterpriseRestaurantCategoriesRequest

type AlibabaEleEnterpriseRestaurantCategoriesRequest struct {
	model.Params
}

餐厅分类 API请求 alibaba.ele.enterprise.restaurant.categories

餐厅分类

func NewAlibabaEleEnterpriseRestaurantCategoriesRequest

func NewAlibabaEleEnterpriseRestaurantCategoriesRequest() *AlibabaEleEnterpriseRestaurantCategoriesRequest

初始化AlibabaEleEnterpriseRestaurantCategoriesRequest对象

func (AlibabaEleEnterpriseRestaurantCategoriesRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AlibabaEleEnterpriseRestaurantCategoriesRequest) GetApiParams

IRequest interface 方法, 获取API参数

type AlibabaEleEnterpriseRestaurantCategoriesResponse

type AlibabaEleEnterpriseRestaurantCategoriesResponse struct {
	XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_categories_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值信息
	EnterpriseDatas []EnterpriseData `json:"enterprise_datas,omitempty" xml:"enterprise_datas>enterprise_data,omitempty"`
	// 响应code
	EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"`
	// 响应信息
	EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"`
	// 请求id
	EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"`
}

餐厅分类 成功返回结果

type AlibabaEleEnterpriseRestaurantCheckaddressAPIResponse

type AlibabaEleEnterpriseRestaurantCheckaddressAPIResponse struct {
	model.CommonResponse
	AlibabaEleEnterpriseRestaurantCheckaddressResponse
}

检查地址是否在餐厅配送范围内 API返回值 alibaba.ele.enterprise.restaurant.checkaddress

检查地址是否在餐厅配送范围内

type AlibabaEleEnterpriseRestaurantCheckaddressRequest

type AlibabaEleEnterpriseRestaurantCheckaddressRequest struct {
	model.Params
	// contains filtered or unexported fields
}

检查地址是否在餐厅配送范围内 API请求 alibaba.ele.enterprise.restaurant.checkaddress

检查地址是否在餐厅配送范围内

func NewAlibabaEleEnterpriseRestaurantCheckaddressRequest

func NewAlibabaEleEnterpriseRestaurantCheckaddressRequest() *AlibabaEleEnterpriseRestaurantCheckaddressRequest

初始化AlibabaEleEnterpriseRestaurantCheckaddressRequest对象

func (AlibabaEleEnterpriseRestaurantCheckaddressRequest) GetAddresses

Addresses Getter

func (AlibabaEleEnterpriseRestaurantCheckaddressRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AlibabaEleEnterpriseRestaurantCheckaddressRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaEleEnterpriseRestaurantCheckaddressRequest) GetErestaurantId

ErestaurantId Getter

func (*AlibabaEleEnterpriseRestaurantCheckaddressRequest) SetAddresses

Addresses Setter [{"longitude": 1, "latitude": 2}], json 字符串, 每个元素是 一个 dict{longitude, latitude, …} 其他字段原样返回

func (*AlibabaEleEnterpriseRestaurantCheckaddressRequest) SetErestaurantId

func (r *AlibabaEleEnterpriseRestaurantCheckaddressRequest) SetErestaurantId(erestaurantId string) error

ErestaurantId Setter 餐厅Id

type AlibabaEleEnterpriseRestaurantCheckaddressResponse

type AlibabaEleEnterpriseRestaurantCheckaddressResponse struct {
	XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_checkaddress_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值信息
	EnterpriseDatas []EnterpriseData `json:"enterprise_datas,omitempty" xml:"enterprise_datas>enterprise_data,omitempty"`
	// 响应code
	EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"`
	// 响应信息
	EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"`
	// 请求id
	EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"`
}

检查地址是否在餐厅配送范围内 成功返回结果

type AlibabaEleEnterpriseRestaurantGetAPIResponse

type AlibabaEleEnterpriseRestaurantGetAPIResponse struct {
	model.CommonResponse
	AlibabaEleEnterpriseRestaurantGetResponse
}

查询餐厅信息 API返回值 alibaba.ele.enterprise.restaurant.get

查询餐厅信息

type AlibabaEleEnterpriseRestaurantGetRequest

type AlibabaEleEnterpriseRestaurantGetRequest struct {
	model.Params
	// contains filtered or unexported fields
}

查询餐厅信息 API请求 alibaba.ele.enterprise.restaurant.get

查询餐厅信息

func NewAlibabaEleEnterpriseRestaurantGetRequest

func NewAlibabaEleEnterpriseRestaurantGetRequest() *AlibabaEleEnterpriseRestaurantGetRequest

初始化AlibabaEleEnterpriseRestaurantGetRequest对象

func (AlibabaEleEnterpriseRestaurantGetRequest) GetApiMethodName

func (r AlibabaEleEnterpriseRestaurantGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaEleEnterpriseRestaurantGetRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaEleEnterpriseRestaurantGetRequest) GetErestaurantId

func (r AlibabaEleEnterpriseRestaurantGetRequest) GetErestaurantId() string

ErestaurantId Getter

func (AlibabaEleEnterpriseRestaurantGetRequest) GetGeo

Geo Getter

func (*AlibabaEleEnterpriseRestaurantGetRequest) SetErestaurantId

func (r *AlibabaEleEnterpriseRestaurantGetRequest) SetErestaurantId(erestaurantId string) error

ErestaurantId Setter 餐厅ID

func (*AlibabaEleEnterpriseRestaurantGetRequest) SetGeo

Geo Setter longitude和latitude用英文逗号分隔

type AlibabaEleEnterpriseRestaurantGetResponse

type AlibabaEleEnterpriseRestaurantGetResponse struct {
	XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 响应code
	EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"`
	// 响应信息
	EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"`
	// 返回餐厅信息
	EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"`
	// 请求id
	EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"`
}

查询餐厅信息 成功返回结果

type AlibabaEleEnterpriseRestaurantMixAPIResponse

type AlibabaEleEnterpriseRestaurantMixAPIResponse struct {
	model.CommonResponse
	AlibabaEleEnterpriseRestaurantMixResponse
}

混合搜索店铺 API返回值 alibaba.ele.enterprise.restaurant.mix

混合搜索店铺

type AlibabaEleEnterpriseRestaurantMixRequest

type AlibabaEleEnterpriseRestaurantMixRequest struct {
	model.Params
	// contains filtered or unexported fields
}

混合搜索店铺 API请求 alibaba.ele.enterprise.restaurant.mix

混合搜索店铺

func NewAlibabaEleEnterpriseRestaurantMixRequest

func NewAlibabaEleEnterpriseRestaurantMixRequest() *AlibabaEleEnterpriseRestaurantMixRequest

初始化AlibabaEleEnterpriseRestaurantMixRequest对象

func (AlibabaEleEnterpriseRestaurantMixRequest) GetApiMethodName

func (r AlibabaEleEnterpriseRestaurantMixRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaEleEnterpriseRestaurantMixRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaEleEnterpriseRestaurantMixRequest) GetCategoryIds

func (r AlibabaEleEnterpriseRestaurantMixRequest) GetCategoryIds() []int64

CategoryIds Getter

func (AlibabaEleEnterpriseRestaurantMixRequest) GetCostFrom

CostFrom Getter

func (AlibabaEleEnterpriseRestaurantMixRequest) GetCostTo

CostTo Getter

func (AlibabaEleEnterpriseRestaurantMixRequest) GetDeliveryMode

func (r AlibabaEleEnterpriseRestaurantMixRequest) GetDeliveryMode() int64

DeliveryMode Getter

func (AlibabaEleEnterpriseRestaurantMixRequest) GetGeo

Geo Getter

func (AlibabaEleEnterpriseRestaurantMixRequest) GetInsurance

Insurance Getter

func (AlibabaEleEnterpriseRestaurantMixRequest) GetInvoice

Invoice Getter

func (AlibabaEleEnterpriseRestaurantMixRequest) GetIsBookable

IsBookable Getter

func (AlibabaEleEnterpriseRestaurantMixRequest) GetIsPremium

IsPremium Getter

func (AlibabaEleEnterpriseRestaurantMixRequest) GetKeyword

Keyword Getter

func (AlibabaEleEnterpriseRestaurantMixRequest) GetLimit

Limit Getter

func (AlibabaEleEnterpriseRestaurantMixRequest) GetNewRestaurant

func (r AlibabaEleEnterpriseRestaurantMixRequest) GetNewRestaurant() int64

NewRestaurant Getter

func (AlibabaEleEnterpriseRestaurantMixRequest) GetOrderBy

OrderBy Getter

func (AlibabaEleEnterpriseRestaurantMixRequest) GetRankId

RankId Getter

func (AlibabaEleEnterpriseRestaurantMixRequest) GetStart

Start Getter

func (*AlibabaEleEnterpriseRestaurantMixRequest) SetCategoryIds

func (r *AlibabaEleEnterpriseRestaurantMixRequest) SetCategoryIds(categoryIds []int64) error

CategoryIds Setter 餐厅分类ids

func (*AlibabaEleEnterpriseRestaurantMixRequest) SetCostFrom

func (r *AlibabaEleEnterpriseRestaurantMixRequest) SetCostFrom(costFrom int64) error

CostFrom Setter 人均消费金额下限,最低为0,不传表示不限

func (*AlibabaEleEnterpriseRestaurantMixRequest) SetCostTo

CostTo Setter 人均消费金额上限,需要高于costFrom,不传表示不限

func (*AlibabaEleEnterpriseRestaurantMixRequest) SetDeliveryMode

func (r *AlibabaEleEnterpriseRestaurantMixRequest) SetDeliveryMode(deliveryMode int64) error

DeliveryMode Setter 配送方式(0-不限, 1-蜂鸟专送)不传表示不限

func (*AlibabaEleEnterpriseRestaurantMixRequest) SetGeo

Geo Setter longitude和latitude用英文逗号分隔

func (*AlibabaEleEnterpriseRestaurantMixRequest) SetInsurance

func (r *AlibabaEleEnterpriseRestaurantMixRequest) SetInsurance(insurance int64) error

Insurance Setter 是否支持食安保(0-不限,1-支持食安保)不传表示不限

func (*AlibabaEleEnterpriseRestaurantMixRequest) SetInvoice

func (r *AlibabaEleEnterpriseRestaurantMixRequest) SetInvoice(invoice int64) error

Invoice Setter 是否可开发票(0-不限,1-可开发票)不传表示不限

func (*AlibabaEleEnterpriseRestaurantMixRequest) SetIsBookable

func (r *AlibabaEleEnterpriseRestaurantMixRequest) SetIsBookable(isBookable int64) error

IsBookable Setter 是否筛选支持预定 0:不需要 1:需要(不传该字段则不筛选)

func (*AlibabaEleEnterpriseRestaurantMixRequest) SetIsPremium

func (r *AlibabaEleEnterpriseRestaurantMixRequest) SetIsPremium(isPremium int64) error

IsPremium Setter 是否品牌商家(0-不限,1-品牌商家)不传表示不限

func (*AlibabaEleEnterpriseRestaurantMixRequest) SetKeyword

func (r *AlibabaEleEnterpriseRestaurantMixRequest) SetKeyword(keyword string) error

Keyword Setter 搜索关键词(关键字需要urlencode处理

func (*AlibabaEleEnterpriseRestaurantMixRequest) SetLimit

Limit Setter 查询数量,默认是10,最大50

func (*AlibabaEleEnterpriseRestaurantMixRequest) SetNewRestaurant

func (r *AlibabaEleEnterpriseRestaurantMixRequest) SetNewRestaurant(newRestaurant int64) error

NewRestaurant Setter 是否新店(0-不限,1-新店)不传表示不限

func (*AlibabaEleEnterpriseRestaurantMixRequest) SetOrderBy

func (r *AlibabaEleEnterpriseRestaurantMixRequest) SetOrderBy(orderBy int64) error

OrderBy Setter 排序选项(1-默认排序(热门), 2-评价星级由高到低, 3-起送价由低到高, 4-销量由高到低, 5-送餐速度由快到慢, 6-餐厅距离由近到远, 7-订单量由高到低)

func (*AlibabaEleEnterpriseRestaurantMixRequest) SetRankId

RankId Setter 首次查询无需传入,后续需要传入前次返回

func (*AlibabaEleEnterpriseRestaurantMixRequest) SetStart

Start Setter 查询起始位置,默认为0。如果传的是10,那么餐厅会从第11个开始返回

type AlibabaEleEnterpriseRestaurantMixResponse

type AlibabaEleEnterpriseRestaurantMixResponse struct {
	XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_mix_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值信息
	EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"`
	// 响应code
	EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"`
	// 响应信息
	EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"`
	// 请求id
	EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"`
}

混合搜索店铺 成功返回结果

type AlibabaEleEnterpriseRestaurantMultispecmenuAPIResponse

type AlibabaEleEnterpriseRestaurantMultispecmenuAPIResponse struct {
	model.CommonResponse
	AlibabaEleEnterpriseRestaurantMultispecmenuResponse
}

查询餐厅菜单 API返回值 alibaba.ele.enterprise.restaurant.multispecmenu

查询餐厅菜单

type AlibabaEleEnterpriseRestaurantMultispecmenuRequest

type AlibabaEleEnterpriseRestaurantMultispecmenuRequest struct {
	model.Params
	// contains filtered or unexported fields
}

查询餐厅菜单 API请求 alibaba.ele.enterprise.restaurant.multispecmenu

查询餐厅菜单

func NewAlibabaEleEnterpriseRestaurantMultispecmenuRequest

func NewAlibabaEleEnterpriseRestaurantMultispecmenuRequest() *AlibabaEleEnterpriseRestaurantMultispecmenuRequest

初始化AlibabaEleEnterpriseRestaurantMultispecmenuRequest对象

func (AlibabaEleEnterpriseRestaurantMultispecmenuRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AlibabaEleEnterpriseRestaurantMultispecmenuRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaEleEnterpriseRestaurantMultispecmenuRequest) GetErestaurantId

ErestaurantId Getter

func (*AlibabaEleEnterpriseRestaurantMultispecmenuRequest) SetErestaurantId

func (r *AlibabaEleEnterpriseRestaurantMultispecmenuRequest) SetErestaurantId(erestaurantId string) error

ErestaurantId Setter 餐厅ID

type AlibabaEleEnterpriseRestaurantMultispecmenuResponse

type AlibabaEleEnterpriseRestaurantMultispecmenuResponse struct {
	XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_multispecmenu_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值信息
	EnterpriseDatas []EnterpriseData `json:"enterprise_datas,omitempty" xml:"enterprise_datas>enterprise_data,omitempty"`
	// 响应code
	EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"`
	// 响应信息
	EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"`
	// 请求id
	EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"`
}

查询餐厅菜单 成功返回结果

type AlibabaEleEnterpriseRestaurantSearchAPIResponse

type AlibabaEleEnterpriseRestaurantSearchAPIResponse struct {
	model.CommonResponse
	AlibabaEleEnterpriseRestaurantSearchResponse
}

餐厅列表 API返回值 alibaba.ele.enterprise.restaurant.search

餐厅列表

type AlibabaEleEnterpriseRestaurantSearchRequest

type AlibabaEleEnterpriseRestaurantSearchRequest struct {
	model.Params
	// contains filtered or unexported fields
}

餐厅列表 API请求 alibaba.ele.enterprise.restaurant.search

餐厅列表

func NewAlibabaEleEnterpriseRestaurantSearchRequest

func NewAlibabaEleEnterpriseRestaurantSearchRequest() *AlibabaEleEnterpriseRestaurantSearchRequest

初始化AlibabaEleEnterpriseRestaurantSearchRequest对象

func (AlibabaEleEnterpriseRestaurantSearchRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AlibabaEleEnterpriseRestaurantSearchRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaEleEnterpriseRestaurantSearchRequest) GetCategoryIds

CategoryIds Getter

func (AlibabaEleEnterpriseRestaurantSearchRequest) GetCostFrom

CostFrom Getter

func (AlibabaEleEnterpriseRestaurantSearchRequest) GetCostTo

CostTo Getter

func (AlibabaEleEnterpriseRestaurantSearchRequest) GetCrossDayBooking

func (r AlibabaEleEnterpriseRestaurantSearchRequest) GetCrossDayBooking() string

CrossDayBooking Getter

func (AlibabaEleEnterpriseRestaurantSearchRequest) GetDeliveryMode

DeliveryMode Getter

func (AlibabaEleEnterpriseRestaurantSearchRequest) GetGeo

Geo Getter

func (AlibabaEleEnterpriseRestaurantSearchRequest) GetInsurance

Insurance Getter

func (AlibabaEleEnterpriseRestaurantSearchRequest) GetInvoice

Invoice Getter

func (AlibabaEleEnterpriseRestaurantSearchRequest) GetIsBookable

IsBookable Getter

func (AlibabaEleEnterpriseRestaurantSearchRequest) GetIsPremium

IsPremium Getter

func (AlibabaEleEnterpriseRestaurantSearchRequest) GetLimit

Limit Getter

func (AlibabaEleEnterpriseRestaurantSearchRequest) GetNewRestaurant

NewRestaurant Getter

func (AlibabaEleEnterpriseRestaurantSearchRequest) GetOrderBy

OrderBy Getter

func (AlibabaEleEnterpriseRestaurantSearchRequest) GetRankId

RankId Getter

func (AlibabaEleEnterpriseRestaurantSearchRequest) GetStart

Start Getter

func (*AlibabaEleEnterpriseRestaurantSearchRequest) SetCategoryIds

func (r *AlibabaEleEnterpriseRestaurantSearchRequest) SetCategoryIds(categoryIds []int64) error

CategoryIds Setter 餐厅分类ids

func (*AlibabaEleEnterpriseRestaurantSearchRequest) SetCostFrom

func (r *AlibabaEleEnterpriseRestaurantSearchRequest) SetCostFrom(costFrom int64) error

CostFrom Setter 人均消费金额下限,最低为0,不传表示不限

func (*AlibabaEleEnterpriseRestaurantSearchRequest) SetCostTo

CostTo Setter 人均消费金额上限,需要高于costFrom,不传表示不限

func (*AlibabaEleEnterpriseRestaurantSearchRequest) SetCrossDayBooking

func (r *AlibabaEleEnterpriseRestaurantSearchRequest) SetCrossDayBooking(crossDayBooking string) error

CrossDayBooking Setter 是否支持跨天预定 1:需要(不传该字段则不筛选)

func (*AlibabaEleEnterpriseRestaurantSearchRequest) SetDeliveryMode

func (r *AlibabaEleEnterpriseRestaurantSearchRequest) SetDeliveryMode(deliveryMode int64) error

DeliveryMode Setter 配送方式(0-不限, 1-蜂鸟专送)不传表示不限

func (*AlibabaEleEnterpriseRestaurantSearchRequest) SetGeo

Geo Setter longitude和latitude用英文逗号分隔

func (*AlibabaEleEnterpriseRestaurantSearchRequest) SetInsurance

func (r *AlibabaEleEnterpriseRestaurantSearchRequest) SetInsurance(insurance int64) error

Insurance Setter 是否支持食安保(0-不限,1-支持食安保)不传表示不限

func (*AlibabaEleEnterpriseRestaurantSearchRequest) SetInvoice

Invoice Setter 是否可开发票(0-不限,1-可开发票)不传表示不限

func (*AlibabaEleEnterpriseRestaurantSearchRequest) SetIsBookable

func (r *AlibabaEleEnterpriseRestaurantSearchRequest) SetIsBookable(isBookable string) error

IsBookable Setter 是否筛选支持预定 0:不需要 1:需要(不传该字段则不筛选)

func (*AlibabaEleEnterpriseRestaurantSearchRequest) SetIsPremium

func (r *AlibabaEleEnterpriseRestaurantSearchRequest) SetIsPremium(isPremium int64) error

IsPremium Setter 是否品牌商家(0-不限,1-品牌商家)不传表示不限

func (*AlibabaEleEnterpriseRestaurantSearchRequest) SetLimit

Limit Setter 查询数量,默认是10,最大50

func (*AlibabaEleEnterpriseRestaurantSearchRequest) SetNewRestaurant

func (r *AlibabaEleEnterpriseRestaurantSearchRequest) SetNewRestaurant(newRestaurant int64) error

NewRestaurant Setter 是否新店(0-不限,1-新店)不传表示不限

func (*AlibabaEleEnterpriseRestaurantSearchRequest) SetOrderBy

OrderBy Setter 排序选项(1-默认排序(热门), 2-评价星级由高到低, 3-起送价由低到高, 4-销量由高到低, 5-送餐速度由快到慢, 6-餐厅距离由近到远, 7-订单量由高到低)

func (*AlibabaEleEnterpriseRestaurantSearchRequest) SetRankId

RankId Setter 首次查询无需传入,后续需要传入前次返回

func (*AlibabaEleEnterpriseRestaurantSearchRequest) SetStart

Start Setter 查询起始位置,默认为0。如果传的是10,那么餐厅会从第11个开始返回

type AlibabaEleEnterpriseRestaurantSearchResponse

type AlibabaEleEnterpriseRestaurantSearchResponse struct {
	XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_search_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值信息
	EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"`
	// 响应code
	EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"`
	// 响应信息
	EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"`
	// 请求id
	EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"`
}

餐厅列表 成功返回结果

type Attr

type Attr struct {
	// 值
	Values []string `json:"values,omitempty" xml:"values>string,omitempty"`
	// 姓名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
}

Attr

type DataList

type DataList struct {
	// 食物信息
	Foods []Foods `json:"foods,omitempty" xml:"foods>foods,omitempty"`
	// 餐厅信息
	Restaurant *Restaurant `json:"restaurant,omitempty" xml:"restaurant,omitempty"`
	// 距离(米)
	Distance string `json:"distance,omitempty" xml:"distance,omitempty"`
	// 是否支持食安保:0,否;1,是
	IsInsurance int64 `json:"is_insurance,omitempty" xml:"is_insurance,omitempty"`
	// 店铺综合评分
	Rating string `json:"rating,omitempty" xml:"rating,omitempty"`
	// 餐厅唯一码
	OnlyRestaurantCode string `json:"only_restaurant_code,omitempty" xml:"only_restaurant_code,omitempty"`
	// 是否新店:0,否;1,是
	IsNew int64 `json:"is_new,omitempty" xml:"is_new,omitempty"`
	// 促销信息或者商家公告
	PromotionInfo string `json:"promotion_info,omitempty" xml:"promotion_info,omitempty"`
	// 最近一个月订单量
	RecentOrderNum int64 `json:"recent_order_num,omitempty" xml:"recent_order_num,omitempty"`
	// 配送费
	AgentFee string `json:"agent_fee,omitempty" xml:"agent_fee,omitempty"`
	// 平均送餐时间
	DeliverSpent int64 `json:"deliver_spent,omitempty" xml:"deliver_spent,omitempty"`
	// 0.关店 1.营业
	IsOpen int64 `json:"is_open,omitempty" xml:"is_open,omitempty"`
	// 是否蜂鸟专送餐厅
	IsDistRst int64 `json:"is_dist_rst,omitempty" xml:"is_dist_rst,omitempty"`
	// 餐厅名称
	RestaurantName string `json:"restaurant_name,omitempty" xml:"restaurant_name,omitempty"`
	// 活动, 参考餐厅活动
	Activities []Activite `json:"activities,omitempty" xml:"activities>activite,omitempty"`
	// 餐厅
	ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	// 起送价
	DeliverAmount string `json:"deliver_amount,omitempty" xml:"deliver_amount,omitempty"`
	// 餐厅ID
	ErestaurantId string `json:"erestaurant_id,omitempty" xml:"erestaurant_id,omitempty"`
	// 是否支持开发票: 0,否;1, 是
	Invoice int64 `json:"invoice,omitempty" xml:"invoice,omitempty"`
	// 是否品牌店:0,否;1,是
	IsPremium int64 `json:"is_premium,omitempty" xml:"is_premium,omitempty"`
	// 人均消费金额(元)
	AverageCost string `json:"average_cost,omitempty" xml:"average_cost,omitempty"`
	// 是否支持预定. 0 不支持预定, 1 支持预定
	IsBookable int64 `json:"is_bookable,omitempty" xml:"is_bookable,omitempty"`
	// 水印序列号
	SerialNumber string `json:"serial_number,omitempty" xml:"serial_number,omitempty"`
	// 餐厅整体营业状态:1 餐厅营业中,2餐厅关闭,3 餐厅网路不稳定,4 餐厅休息中,5 直接说预定,6 只接受电话预定,7 餐厅休假中
	TotalStatus int64 `json:"total_status,omitempty" xml:"total_status,omitempty"`
}

DataList

type EnterpriseData

type EnterpriseData struct {
	// 类目名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 1-餐饮,2-新零售,目前只返回餐饮类目
	Channel int64 `json:"channel,omitempty" xml:"channel,omitempty"`
	// 类目id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 父级类目id,目前只返回一级类目id,都为0。预留字段,用于今后扩展
	ParentId int64 `json:"parent_id,omitempty" xml:"parent_id,omitempty"`
	// 餐厅维度
	Latitude string `json:"latitude,omitempty" xml:"latitude,omitempty"`
	// 是否可配送
	IsDeliverable bool `json:"is_deliverable,omitempty" xml:"is_deliverable,omitempty"`
	// 餐厅精度
	Longitude string `json:"longitude,omitempty" xml:"longitude,omitempty"`
	// 距离(米)
	Distance string `json:"distance,omitempty" xml:"distance,omitempty"`
	// 店铺综合评分
	Rating string `json:"rating,omitempty" xml:"rating,omitempty"`
	// 餐厅唯一码
	OnlyRestaurantCode string `json:"only_restaurant_code,omitempty" xml:"only_restaurant_code,omitempty"`
	// 促销信息或者商家公告
	PromotionInfo string `json:"promotion_info,omitempty" xml:"promotion_info,omitempty"`
	// 最近一个月订单量
	RecentOrderNum int64 `json:"recent_order_num,omitempty" xml:"recent_order_num,omitempty"`
	// 配送费
	AgentFee string `json:"agent_fee,omitempty" xml:"agent_fee,omitempty"`
	// 2周内的平均送餐时间
	DeliverSpent int64 `json:"deliver_spent,omitempty" xml:"deliver_spent,omitempty"`
	// 是否正在营业, 在营业的前提下,再通过total_status字段判断商家的具体营业状态 餐厅整体营业状态
	IsOpen int64 `json:"is_open,omitempty" xml:"is_open,omitempty"`
	// 是否蜂鸟专送餐厅
	IsDistRst int64 `json:"is_dist_rst,omitempty" xml:"is_dist_rst,omitempty"`
	// 餐厅名称
	RestaurantName string `json:"restaurant_name,omitempty" xml:"restaurant_name,omitempty"`
	// 活动, 参考餐厅活动
	Activities []Activitie `json:"activities,omitempty" xml:"activities>activitie,omitempty"`
	// 餐厅Logo地址
	ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	// 起送价
	DeliverAmount string `json:"deliver_amount,omitempty" xml:"deliver_amount,omitempty"`
	// 餐厅ID
	ErestaurantId string `json:"erestaurant_id,omitempty" xml:"erestaurant_id,omitempty"`
	// 是否支持开发票: 1, 是; 2, 否.
	Invoice int64 `json:"invoice,omitempty" xml:"invoice,omitempty"`
	// 序列号(无业务含义)
	SerialNumber string `json:"serial_number,omitempty" xml:"serial_number,omitempty"`
	// 是否支持预定. 0 不支持预定, 1 支持预定
	IsBookable int64 `json:"is_bookable,omitempty" xml:"is_bookable,omitempty"`
	// 是否新店:0,否;1,是
	IsNew int64 `json:"is_new,omitempty" xml:"is_new,omitempty"`
	// 是否品牌店:0,否;1,是
	IsPremium int64 `json:"is_premium,omitempty" xml:"is_premium,omitempty"`
	// 是否支持食安保:0,否;1,是
	IsInsurance string `json:"is_insurance,omitempty" xml:"is_insurance,omitempty"`
	// 餐厅地址
	AddressText string `json:"address_text,omitempty" xml:"address_text,omitempty"`
	// 餐厅营业时间
	ServingTimes []string `json:"serving_times,omitempty" xml:"serving_times>string,omitempty"`
	// 餐厅电话
	PhoneList []string `json:"phone_list,omitempty" xml:"phone_list>string,omitempty"`
	// 人均消费金额(元)
	AverageCost string `json:"average_cost,omitempty" xml:"average_cost,omitempty"`
	// 餐厅整体营业状态:1 餐厅营业中,2餐厅关闭,3 餐厅网路不稳定,4 餐厅休息中,5 直接说预定,6 只接受电话预定,7 餐厅休假中
	TotalStatus int64 `json:"total_status,omitempty" xml:"total_status,omitempty"`
	// 排序id
	RankId string `json:"rank_id,omitempty" xml:"rank_id,omitempty"`
	// 数据列表
	DataList []DataList `json:"data_list,omitempty" xml:"data_list>data_list,omitempty"`
	// 是否有下页
	HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"`
	// 食物信息
	Foods []Food `json:"foods,omitempty" xml:"foods>food,omitempty"`
	// 描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 是否为活动商品
	IsActivity bool `json:"is_activity,omitempty" xml:"is_activity,omitempty"`
	// 分类类型. 1: 普通分类 2: 热销榜 3: 优惠分类 4: 必点分类 5: 非必点分类
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
}

EnterpriseData

type Food

type Food struct {
	// 食物信息
	Specfoods []Specfood `json:"specfoods,omitempty" xml:"specfoods>specfood,omitempty"`
	// 活动
	Activity *Activity `json:"activity,omitempty" xml:"activity,omitempty"`
	// 餐品id
	FoodId string `json:"food_id,omitempty" xml:"food_id,omitempty"`
	// 评分
	Rating string `json:"rating,omitempty" xml:"rating,omitempty"`
	// 描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 规格信息, 例如: [{“name”: “规格”, “values”: [“不辣”, “中辣”, “大辣” ]}, …]
	Specifications []Specification `json:"specifications,omitempty" xml:"specifications>specification,omitempty"`
	// 概况说明, 例: “2评价 月售6份”
	Tips string `json:"tips,omitempty" xml:"tips,omitempty"`
	// 属性信息, 次要的规格信息, 不决定价格, 例如: [{“name”: “甜度”, “values”: [“加糖”, “不加糖”]}, …]
	Attrs []Attr `json:"attrs,omitempty" xml:"attrs>attr,omitempty"`
	// 月售份数
	MonthSales int64 `json:"month_sales,omitempty" xml:"month_sales,omitempty"`
	// 图片地址
	ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	// 名字
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 最少起购分数, 默认: 1
	MinPurchase int64 `json:"min_purchase,omitempty" xml:"min_purchase,omitempty"`
	// 好评率
	SatisfyRate int64 `json:"satisfy_rate,omitempty" xml:"satisfy_rate,omitempty"`
	// 是否必点菜品
	IsEssential bool `json:"is_essential,omitempty" xml:"is_essential,omitempty"`
}

Food

type Foods

type Foods struct {
	// 食物名称
	FoodName string `json:"food_name,omitempty" xml:"food_name,omitempty"`
	// 最近一个月的评价
	RecentRating string `json:"recent_rating,omitempty" xml:"recent_rating,omitempty"`
	// 食物价格
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 最近一个月的售出份数
	RecentPopularity int64 `json:"recent_popularity,omitempty" xml:"recent_popularity,omitempty"`
	// 食物id
	FoodId int64 `json:"food_id,omitempty" xml:"food_id,omitempty"`
	// 食物图片
	ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	// 食物描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 库存
	Stock int64 `json:"stock,omitempty" xml:"stock,omitempty"`
}

Foods

type Restaurant

type Restaurant struct {
	// 距离
	Distance string `json:"distance,omitempty" xml:"distance,omitempty"`
	// 评价
	Rating string `json:"rating,omitempty" xml:"rating,omitempty"`
	// 唯一店铺标识
	OnlyRestaurantCode string `json:"only_restaurant_code,omitempty" xml:"only_restaurant_code,omitempty"`
	// 促销信息
	PromotionInfo string `json:"promotion_info,omitempty" xml:"promotion_info,omitempty"`
	// 最近一个月订单量
	RecentOrderNum int64 `json:"recent_order_num,omitempty" xml:"recent_order_num,omitempty"`
	// 配送费
	AgentFee string `json:"agent_fee,omitempty" xml:"agent_fee,omitempty"`
	// 2周内的平均送餐时间
	DeliverSpent int64 `json:"deliver_spent,omitempty" xml:"deliver_spent,omitempty"`
	// 是否正在营业
	IsOpen int64 `json:"is_open,omitempty" xml:"is_open,omitempty"`
	// 是否蜂鸟专送餐厅
	IsDistRst int64 `json:"is_dist_rst,omitempty" xml:"is_dist_rst,omitempty"`
	// 餐厅名称
	RestaurantName string `json:"restaurant_name,omitempty" xml:"restaurant_name,omitempty"`
	// 活动详情
	Activities []Activities `json:"activities,omitempty" xml:"activities>activities,omitempty"`
	// 餐厅Logo地址
	ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	// 起送价
	DeliverAmount string `json:"deliver_amount,omitempty" xml:"deliver_amount,omitempty"`
	// 店铺id
	ErestaurantId string `json:"erestaurant_id,omitempty" xml:"erestaurant_id,omitempty"`
	// 是否支持开发票(是为1,否为0)
	Invoice int64 `json:"invoice,omitempty" xml:"invoice,omitempty"`
	// 是否品牌馆餐厅
	IsPremium int64 `json:"is_premium,omitempty" xml:"is_premium,omitempty"`
	// 人均值
	AverageCost string `json:"average_cost,omitempty" xml:"average_cost,omitempty"`
	// 是否支持食安保:0,否;1,是
	IsInsurance int64 `json:"is_insurance,omitempty" xml:"is_insurance,omitempty"`
	// 是否新开业
	IsNew int64 `json:"is_new,omitempty" xml:"is_new,omitempty"`
	// 水印序列号
	SerialNumber string `json:"serial_number,omitempty" xml:"serial_number,omitempty"`
	// 餐厅整体营业状态:1 餐厅营业中,2餐厅关闭,3 餐厅网路不稳定,4 餐厅休息中,5 直接说预定,6 只接受电话预定,7 餐厅休假中
	TotalStatus string `json:"total_status,omitempty" xml:"total_status,omitempty"`
	// 是否支持预定. 0 不支持预定, 1 支持预定
	IsBookable int64 `json:"is_bookable,omitempty" xml:"is_bookable,omitempty"`
}

Restaurant

type Spec

type Spec struct {
	// 姓名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 值
	Value string `json:"value,omitempty" xml:"value,omitempty"`
}

Spec

type Specfood

type Specfood struct {
	// 规格信息(示例为多规格例子,否则为 [])
	Specs []Spec `json:"specs,omitempty" xml:"specs>spec,omitempty"`
	// 名字
	FoodName string `json:"food_name,omitempty" xml:"food_name,omitempty"`
	// 原价, 如果没有绑定活动, 该字段为空
	OriginalPrice string `json:"original_price,omitempty" xml:"original_price,omitempty"`
	// 当前价格, 如果美食活动, 此价格是优惠后的价格
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 食物id
	FoodId string `json:"food_id,omitempty" xml:"food_id,omitempty"`
	// 是否必点, 必点分类下只要点一个 food 就好了, 如果必点商品售完, 不需要必点
	IsEssential bool `json:"is_essential,omitempty" xml:"is_essential,omitempty"`
	// 库存
	Stock int64 `json:"stock,omitempty" xml:"stock,omitempty"`
	// 是否售完
	SoldOut bool `json:"sold_out,omitempty" xml:"sold_out,omitempty"`
	// 商品规格id
	SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

Specfood

type Specification

type Specification struct {
	// 特别说明
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 规格说明
	Values []string `json:"values,omitempty" xml:"values>string,omitempty"`
}

Specification

Jump to

Keyboard shortcuts

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