Documentation ¶
Overview ¶
Package eleenterpriserestaurant 包含企业订餐店铺接口相关结构体
Index ¶
- type Activite
- type Activitie
- type Activities
- type Activity
- type AlibabaEleEnterpriseRestaurantCategoriesAPIRequest
- type AlibabaEleEnterpriseRestaurantCategoriesAPIResponse
- type AlibabaEleEnterpriseRestaurantCategoriesAPIResponseModel
- type AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest
- func (r AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) GetAddresses() string
- func (r AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) GetApiMethodName() string
- func (r AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) GetErestaurantId() string
- func (r AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) GetRawParams() model.Params
- func (r *AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) SetAddresses(_addresses string) error
- func (r *AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) SetErestaurantId(_erestaurantId string) error
- type AlibabaEleEnterpriseRestaurantCheckaddressAPIResponse
- type AlibabaEleEnterpriseRestaurantCheckaddressAPIResponseModel
- type AlibabaEleEnterpriseRestaurantGetAPIRequest
- func (r AlibabaEleEnterpriseRestaurantGetAPIRequest) GetApiMethodName() string
- func (r AlibabaEleEnterpriseRestaurantGetAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaEleEnterpriseRestaurantGetAPIRequest) GetErestaurantId() string
- func (r AlibabaEleEnterpriseRestaurantGetAPIRequest) GetGeo() string
- func (r AlibabaEleEnterpriseRestaurantGetAPIRequest) GetRawParams() model.Params
- func (r *AlibabaEleEnterpriseRestaurantGetAPIRequest) SetErestaurantId(_erestaurantId string) error
- func (r *AlibabaEleEnterpriseRestaurantGetAPIRequest) SetGeo(_geo string) error
- type AlibabaEleEnterpriseRestaurantGetAPIResponse
- type AlibabaEleEnterpriseRestaurantGetAPIResponseModel
- type AlibabaEleEnterpriseRestaurantMixAPIRequest
- func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetApiMethodName() string
- func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetCategoryIds() []int64
- func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetCostFrom() int64
- func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetCostTo() int64
- func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetDeliveryMode() int64
- func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetGeo() string
- func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetInsurance() int64
- func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetInvoice() int64
- func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetIsBookable() int64
- func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetIsPremium() int64
- func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetKeyword() string
- func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetLimit() int64
- func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetNewRestaurant() int64
- func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetOrderBy() int64
- func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetRankId() string
- func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetRawParams() model.Params
- func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetStart() int64
- func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetCategoryIds(_categoryIds []int64) error
- func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetCostFrom(_costFrom int64) error
- func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetCostTo(_costTo int64) error
- func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetDeliveryMode(_deliveryMode int64) error
- func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetGeo(_geo string) error
- func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetInsurance(_insurance int64) error
- func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetInvoice(_invoice int64) error
- func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetIsBookable(_isBookable int64) error
- func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetIsPremium(_isPremium int64) error
- func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetKeyword(_keyword string) error
- func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetLimit(_limit int64) error
- func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetNewRestaurant(_newRestaurant int64) error
- func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetOrderBy(_orderBy int64) error
- func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetRankId(_rankId string) error
- func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetStart(_start int64) error
- type AlibabaEleEnterpriseRestaurantMixAPIResponse
- type AlibabaEleEnterpriseRestaurantMixAPIResponseModel
- type AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest
- func (r AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest) GetApiMethodName() string
- func (r AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest) GetErestaurantId() string
- func (r AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest) GetRawParams() model.Params
- func (r *AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest) SetErestaurantId(_erestaurantId string) error
- type AlibabaEleEnterpriseRestaurantMultispecmenuAPIResponse
- type AlibabaEleEnterpriseRestaurantMultispecmenuAPIResponseModel
- type AlibabaEleEnterpriseRestaurantSearchAPIRequest
- func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetApiMethodName() string
- func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetCategoryIds() []int64
- func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetCostFrom() int64
- func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetCostTo() int64
- func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetCrossDayBooking() string
- func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetDeliveryMode() int64
- func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetGeo() string
- func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetInsurance() int64
- func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetInvoice() int64
- func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetIsBookable() string
- func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetIsPremium() int64
- func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetLimit() int64
- func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetNewRestaurant() int64
- func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetOrderBy() int64
- func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetRankId() string
- func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetRawParams() model.Params
- func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetStart() int64
- func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetCategoryIds(_categoryIds []int64) error
- func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetCostFrom(_costFrom int64) error
- func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetCostTo(_costTo int64) error
- func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetCrossDayBooking(_crossDayBooking string) error
- func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetDeliveryMode(_deliveryMode int64) error
- func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetGeo(_geo string) error
- func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetInsurance(_insurance int64) error
- func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetInvoice(_invoice int64) error
- func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetIsBookable(_isBookable string) error
- func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetIsPremium(_isPremium int64) error
- func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetLimit(_limit int64) error
- func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetNewRestaurant(_newRestaurant int64) error
- func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetOrderBy(_orderBy int64) error
- func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetRankId(_rankId string) error
- func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetStart(_start int64) error
- type AlibabaEleEnterpriseRestaurantSearchAPIResponse
- type AlibabaEleEnterpriseRestaurantSearchAPIResponseModel
- type Attr
- type DataList
- type EnterpriseData
- type Food
- type Foods
- type Restaurant
- type Spec
- type Specfood
- type Specification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activite ¶
type Activite struct { // 活动名称 Name string `json:"name,omitempty" xml:"name,omitempty"` // 餐厅描述 Description string `json:"description,omitempty" xml:"description,omitempty"` // 见附录【活动信息detail_type值】 DetailType int64 `json:"detail_type,omitempty" xml:"detail_type,omitempty"` // 活动ID Id int64 `json:"id,omitempty" xml:"id,omitempty"` }
Activite 结构体
type Activitie ¶
type Activitie struct { // 活动名称 Name string `json:"name,omitempty" xml:"name,omitempty"` // 餐厅描述 Description string `json:"description,omitempty" xml:"description,omitempty"` // 见附录【活动信息detail_type值】 DetailType int64 `json:"detail_type,omitempty" xml:"detail_type,omitempty"` // 活动ID Id int64 `json:"id,omitempty" xml:"id,omitempty"` }
Activitie 结构体
type Activities ¶
type Activities struct { // 活动名称 Name string `json:"name,omitempty" xml:"name,omitempty"` // 活动文本描述 Description string `json:"description,omitempty" xml:"description,omitempty"` // * 餐厅活动类型 * 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"` // 活动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 AlibabaEleEnterpriseRestaurantCategoriesAPIRequest ¶ added in v1.2.0
AlibabaEleEnterpriseRestaurantCategoriesAPIRequest 餐厅分类 API请求 alibaba.ele.enterprise.restaurant.categories
餐厅分类
func NewAlibabaEleEnterpriseRestaurantCategoriesRequest ¶
func NewAlibabaEleEnterpriseRestaurantCategoriesRequest() *AlibabaEleEnterpriseRestaurantCategoriesAPIRequest
NewAlibabaEleEnterpriseRestaurantCategoriesRequest 初始化AlibabaEleEnterpriseRestaurantCategoriesAPIRequest对象
func (AlibabaEleEnterpriseRestaurantCategoriesAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantCategoriesAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaEleEnterpriseRestaurantCategoriesAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantCategoriesAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaEleEnterpriseRestaurantCategoriesAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlibabaEleEnterpriseRestaurantCategoriesAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
type AlibabaEleEnterpriseRestaurantCategoriesAPIResponse ¶
type AlibabaEleEnterpriseRestaurantCategoriesAPIResponse struct { model.CommonResponse AlibabaEleEnterpriseRestaurantCategoriesAPIResponseModel }
AlibabaEleEnterpriseRestaurantCategoriesAPIResponse 餐厅分类 API返回值 alibaba.ele.enterprise.restaurant.categories
餐厅分类
type AlibabaEleEnterpriseRestaurantCategoriesAPIResponseModel ¶ added in v1.2.0
type AlibabaEleEnterpriseRestaurantCategoriesAPIResponseModel 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"` }
AlibabaEleEnterpriseRestaurantCategoriesAPIResponseModel is 餐厅分类 成功返回结果
type AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest ¶ added in v1.2.0
type AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest 检查地址是否在餐厅配送范围内 API请求 alibaba.ele.enterprise.restaurant.checkaddress
检查地址是否在餐厅配送范围内
func NewAlibabaEleEnterpriseRestaurantCheckaddressRequest ¶
func NewAlibabaEleEnterpriseRestaurantCheckaddressRequest() *AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest
NewAlibabaEleEnterpriseRestaurantCheckaddressRequest 初始化AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest对象
func (AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) GetAddresses ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) GetAddresses() string
GetAddresses Addresses Getter
func (AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) GetErestaurantId ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) GetErestaurantId() string
GetErestaurantId ErestaurantId Getter
func (AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) SetAddresses ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) SetAddresses(_addresses string) error
SetAddresses is Addresses Setter [{"longitude": 1, "latitude": 2}], json 字符串, 每个元素是 一个 dict{longitude, latitude, …} 其他字段原样返回
func (*AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) SetErestaurantId ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) SetErestaurantId(_erestaurantId string) error
SetErestaurantId is ErestaurantId Setter 餐厅Id
type AlibabaEleEnterpriseRestaurantCheckaddressAPIResponse ¶
type AlibabaEleEnterpriseRestaurantCheckaddressAPIResponse struct { model.CommonResponse AlibabaEleEnterpriseRestaurantCheckaddressAPIResponseModel }
AlibabaEleEnterpriseRestaurantCheckaddressAPIResponse 检查地址是否在餐厅配送范围内 API返回值 alibaba.ele.enterprise.restaurant.checkaddress
检查地址是否在餐厅配送范围内
type AlibabaEleEnterpriseRestaurantCheckaddressAPIResponseModel ¶ added in v1.2.0
type AlibabaEleEnterpriseRestaurantCheckaddressAPIResponseModel 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"` }
AlibabaEleEnterpriseRestaurantCheckaddressAPIResponseModel is 检查地址是否在餐厅配送范围内 成功返回结果
type AlibabaEleEnterpriseRestaurantGetAPIRequest ¶ added in v1.2.0
type AlibabaEleEnterpriseRestaurantGetAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaEleEnterpriseRestaurantGetAPIRequest 查询餐厅信息 API请求 alibaba.ele.enterprise.restaurant.get
查询餐厅信息
func NewAlibabaEleEnterpriseRestaurantGetRequest ¶
func NewAlibabaEleEnterpriseRestaurantGetRequest() *AlibabaEleEnterpriseRestaurantGetAPIRequest
NewAlibabaEleEnterpriseRestaurantGetRequest 初始化AlibabaEleEnterpriseRestaurantGetAPIRequest对象
func (AlibabaEleEnterpriseRestaurantGetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaEleEnterpriseRestaurantGetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantGetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaEleEnterpriseRestaurantGetAPIRequest) GetErestaurantId ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantGetAPIRequest) GetErestaurantId() string
GetErestaurantId ErestaurantId Getter
func (AlibabaEleEnterpriseRestaurantGetAPIRequest) GetGeo ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantGetAPIRequest) GetGeo() string
GetGeo Geo Getter
func (AlibabaEleEnterpriseRestaurantGetAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlibabaEleEnterpriseRestaurantGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlibabaEleEnterpriseRestaurantGetAPIRequest) SetErestaurantId ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantGetAPIRequest) SetErestaurantId(_erestaurantId string) error
SetErestaurantId is ErestaurantId Setter 餐厅ID
func (*AlibabaEleEnterpriseRestaurantGetAPIRequest) SetGeo ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantGetAPIRequest) SetGeo(_geo string) error
SetGeo is Geo Setter longitude和latitude用英文逗号分隔
type AlibabaEleEnterpriseRestaurantGetAPIResponse ¶
type AlibabaEleEnterpriseRestaurantGetAPIResponse struct { model.CommonResponse AlibabaEleEnterpriseRestaurantGetAPIResponseModel }
AlibabaEleEnterpriseRestaurantGetAPIResponse 查询餐厅信息 API返回值 alibaba.ele.enterprise.restaurant.get
查询餐厅信息
type AlibabaEleEnterpriseRestaurantGetAPIResponseModel ¶ added in v1.2.0
type AlibabaEleEnterpriseRestaurantGetAPIResponseModel 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"` // 请求id EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` // 返回餐厅信息 EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` }
AlibabaEleEnterpriseRestaurantGetAPIResponseModel is 查询餐厅信息 成功返回结果
type AlibabaEleEnterpriseRestaurantMixAPIRequest ¶ added in v1.2.0
type AlibabaEleEnterpriseRestaurantMixAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaEleEnterpriseRestaurantMixAPIRequest 混合搜索店铺 API请求 alibaba.ele.enterprise.restaurant.mix
混合搜索店铺
func NewAlibabaEleEnterpriseRestaurantMixRequest ¶
func NewAlibabaEleEnterpriseRestaurantMixRequest() *AlibabaEleEnterpriseRestaurantMixAPIRequest
NewAlibabaEleEnterpriseRestaurantMixRequest 初始化AlibabaEleEnterpriseRestaurantMixAPIRequest对象
func (AlibabaEleEnterpriseRestaurantMixAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaEleEnterpriseRestaurantMixAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaEleEnterpriseRestaurantMixAPIRequest) GetCategoryIds ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetCategoryIds() []int64
GetCategoryIds CategoryIds Getter
func (AlibabaEleEnterpriseRestaurantMixAPIRequest) GetCostFrom ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetCostFrom() int64
GetCostFrom CostFrom Getter
func (AlibabaEleEnterpriseRestaurantMixAPIRequest) GetCostTo ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetCostTo() int64
GetCostTo CostTo Getter
func (AlibabaEleEnterpriseRestaurantMixAPIRequest) GetDeliveryMode ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetDeliveryMode() int64
GetDeliveryMode DeliveryMode Getter
func (AlibabaEleEnterpriseRestaurantMixAPIRequest) GetGeo ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetGeo() string
GetGeo Geo Getter
func (AlibabaEleEnterpriseRestaurantMixAPIRequest) GetInsurance ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetInsurance() int64
GetInsurance Insurance Getter
func (AlibabaEleEnterpriseRestaurantMixAPIRequest) GetInvoice ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetInvoice() int64
GetInvoice Invoice Getter
func (AlibabaEleEnterpriseRestaurantMixAPIRequest) GetIsBookable ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetIsBookable() int64
GetIsBookable IsBookable Getter
func (AlibabaEleEnterpriseRestaurantMixAPIRequest) GetIsPremium ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetIsPremium() int64
GetIsPremium IsPremium Getter
func (AlibabaEleEnterpriseRestaurantMixAPIRequest) GetKeyword ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetKeyword() string
GetKeyword Keyword Getter
func (AlibabaEleEnterpriseRestaurantMixAPIRequest) GetLimit ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetLimit() int64
GetLimit Limit Getter
func (AlibabaEleEnterpriseRestaurantMixAPIRequest) GetNewRestaurant ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetNewRestaurant() int64
GetNewRestaurant NewRestaurant Getter
func (AlibabaEleEnterpriseRestaurantMixAPIRequest) GetOrderBy ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetOrderBy() int64
GetOrderBy OrderBy Getter
func (AlibabaEleEnterpriseRestaurantMixAPIRequest) GetRankId ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetRankId() string
GetRankId RankId Getter
func (AlibabaEleEnterpriseRestaurantMixAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (AlibabaEleEnterpriseRestaurantMixAPIRequest) GetStart ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetStart() int64
GetStart Start Getter
func (*AlibabaEleEnterpriseRestaurantMixAPIRequest) SetCategoryIds ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetCategoryIds(_categoryIds []int64) error
SetCategoryIds is CategoryIds Setter 餐厅分类ids
func (*AlibabaEleEnterpriseRestaurantMixAPIRequest) SetCostFrom ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetCostFrom(_costFrom int64) error
SetCostFrom is CostFrom Setter 人均消费金额下限,最低为0,不传表示不限
func (*AlibabaEleEnterpriseRestaurantMixAPIRequest) SetCostTo ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetCostTo(_costTo int64) error
SetCostTo is CostTo Setter 人均消费金额上限,需要高于costFrom,不传表示不限
func (*AlibabaEleEnterpriseRestaurantMixAPIRequest) SetDeliveryMode ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetDeliveryMode(_deliveryMode int64) error
SetDeliveryMode is DeliveryMode Setter 配送方式(0-不限, 1-蜂鸟专送)不传表示不限
func (*AlibabaEleEnterpriseRestaurantMixAPIRequest) SetGeo ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetGeo(_geo string) error
SetGeo is Geo Setter longitude和latitude用英文逗号分隔
func (*AlibabaEleEnterpriseRestaurantMixAPIRequest) SetInsurance ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetInsurance(_insurance int64) error
SetInsurance is Insurance Setter 是否支持食安保(0-不限,1-支持食安保)不传表示不限
func (*AlibabaEleEnterpriseRestaurantMixAPIRequest) SetInvoice ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetInvoice(_invoice int64) error
SetInvoice is Invoice Setter 是否可开发票(0-不限,1-可开发票)不传表示不限
func (*AlibabaEleEnterpriseRestaurantMixAPIRequest) SetIsBookable ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetIsBookable(_isBookable int64) error
SetIsBookable is IsBookable Setter 是否筛选支持预定 0:不需要 1:需要(不传该字段则不筛选)
func (*AlibabaEleEnterpriseRestaurantMixAPIRequest) SetIsPremium ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetIsPremium(_isPremium int64) error
SetIsPremium is IsPremium Setter 是否品牌商家(0-不限,1-品牌商家)不传表示不限
func (*AlibabaEleEnterpriseRestaurantMixAPIRequest) SetKeyword ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetKeyword(_keyword string) error
SetKeyword is Keyword Setter 搜索关键词(关键字需要urlencode处理
func (*AlibabaEleEnterpriseRestaurantMixAPIRequest) SetLimit ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetLimit(_limit int64) error
SetLimit is Limit Setter 查询数量,默认是10,最大50
func (*AlibabaEleEnterpriseRestaurantMixAPIRequest) SetNewRestaurant ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetNewRestaurant(_newRestaurant int64) error
SetNewRestaurant is NewRestaurant Setter 是否新店(0-不限,1-新店)不传表示不限
func (*AlibabaEleEnterpriseRestaurantMixAPIRequest) SetOrderBy ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetOrderBy(_orderBy int64) error
SetOrderBy is OrderBy Setter 排序选项(1-默认排序(热门), 2-评价星级由高到低, 3-起送价由低到高, 4-销量由高到低, 5-送餐速度由快到慢, 6-餐厅距离由近到远, 7-订单量由高到低)
func (*AlibabaEleEnterpriseRestaurantMixAPIRequest) SetRankId ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetRankId(_rankId string) error
SetRankId is RankId Setter 首次查询无需传入,后续需要传入前次返回
func (*AlibabaEleEnterpriseRestaurantMixAPIRequest) SetStart ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetStart(_start int64) error
SetStart is Start Setter 查询起始位置,默认为0。如果传的是10,那么餐厅会从第11个开始返回
type AlibabaEleEnterpriseRestaurantMixAPIResponse ¶
type AlibabaEleEnterpriseRestaurantMixAPIResponse struct { model.CommonResponse AlibabaEleEnterpriseRestaurantMixAPIResponseModel }
AlibabaEleEnterpriseRestaurantMixAPIResponse 混合搜索店铺 API返回值 alibaba.ele.enterprise.restaurant.mix
混合搜索店铺
type AlibabaEleEnterpriseRestaurantMixAPIResponseModel ¶ added in v1.2.0
type AlibabaEleEnterpriseRestaurantMixAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_mix_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"` // 请求id EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` // 返回值信息 EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` }
AlibabaEleEnterpriseRestaurantMixAPIResponseModel is 混合搜索店铺 成功返回结果
type AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest ¶ added in v1.2.0
type AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest struct { // contains filtered or unexported fields }
AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest 查询餐厅菜单 API请求 alibaba.ele.enterprise.restaurant.multispecmenu
查询餐厅菜单
func NewAlibabaEleEnterpriseRestaurantMultispecmenuRequest ¶
func NewAlibabaEleEnterpriseRestaurantMultispecmenuRequest() *AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest
NewAlibabaEleEnterpriseRestaurantMultispecmenuRequest 初始化AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest对象
func (AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest) GetErestaurantId ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest) GetErestaurantId() string
GetErestaurantId ErestaurantId Getter
func (AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest) SetErestaurantId ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest) SetErestaurantId(_erestaurantId string) error
SetErestaurantId is ErestaurantId Setter 餐厅ID
type AlibabaEleEnterpriseRestaurantMultispecmenuAPIResponse ¶
type AlibabaEleEnterpriseRestaurantMultispecmenuAPIResponse struct {}
AlibabaEleEnterpriseRestaurantMultispecmenuAPIResponse 查询餐厅菜单 API返回值 alibaba.ele.enterprise.restaurant.multispecmenu
查询餐厅菜单
type AlibabaEleEnterpriseRestaurantMultispecmenuAPIResponseModel ¶ added in v1.2.0
type AlibabaEleEnterpriseRestaurantMultispecmenuAPIResponseModel struct { string `json:"request_id,omitempty" xml:"request_id,omitempty"` EnterpriseDatas []EnterpriseData `json:"enterprise_datas,omitempty" xml:"enterprise_datas>enterprise_data,omitempty"` EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` }RequestId
AlibabaEleEnterpriseRestaurantMultispecmenuAPIResponseModel is 查询餐厅菜单 成功返回结果
type AlibabaEleEnterpriseRestaurantSearchAPIRequest ¶ added in v1.2.0
type AlibabaEleEnterpriseRestaurantSearchAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaEleEnterpriseRestaurantSearchAPIRequest 餐厅列表 API请求 alibaba.ele.enterprise.restaurant.search
餐厅列表
func NewAlibabaEleEnterpriseRestaurantSearchRequest ¶
func NewAlibabaEleEnterpriseRestaurantSearchRequest() *AlibabaEleEnterpriseRestaurantSearchAPIRequest
NewAlibabaEleEnterpriseRestaurantSearchRequest 初始化AlibabaEleEnterpriseRestaurantSearchAPIRequest对象
func (AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetCategoryIds ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetCategoryIds() []int64
GetCategoryIds CategoryIds Getter
func (AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetCostFrom ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetCostFrom() int64
GetCostFrom CostFrom Getter
func (AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetCostTo ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetCostTo() int64
GetCostTo CostTo Getter
func (AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetCrossDayBooking ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetCrossDayBooking() string
GetCrossDayBooking CrossDayBooking Getter
func (AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetDeliveryMode ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetDeliveryMode() int64
GetDeliveryMode DeliveryMode Getter
func (AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetGeo ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetGeo() string
GetGeo Geo Getter
func (AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetInsurance ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetInsurance() int64
GetInsurance Insurance Getter
func (AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetInvoice ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetInvoice() int64
GetInvoice Invoice Getter
func (AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetIsBookable ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetIsBookable() string
GetIsBookable IsBookable Getter
func (AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetIsPremium ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetIsPremium() int64
GetIsPremium IsPremium Getter
func (AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetLimit ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetLimit() int64
GetLimit Limit Getter
func (AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetNewRestaurant ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetNewRestaurant() int64
GetNewRestaurant NewRestaurant Getter
func (AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetOrderBy ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetOrderBy() int64
GetOrderBy OrderBy Getter
func (AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetRankId ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetRankId() string
GetRankId RankId Getter
func (AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetStart ¶ added in v1.2.0
func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetStart() int64
GetStart Start Getter
func (*AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetCategoryIds ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetCategoryIds(_categoryIds []int64) error
SetCategoryIds is CategoryIds Setter 餐厅分类ids
func (*AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetCostFrom ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetCostFrom(_costFrom int64) error
SetCostFrom is CostFrom Setter 人均消费金额下限,最低为0,不传表示不限
func (*AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetCostTo ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetCostTo(_costTo int64) error
SetCostTo is CostTo Setter 人均消费金额上限,需要高于costFrom,不传表示不限
func (*AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetCrossDayBooking ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetCrossDayBooking(_crossDayBooking string) error
SetCrossDayBooking is CrossDayBooking Setter 是否支持跨天预定 1:需要(不传该字段则不筛选)
func (*AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetDeliveryMode ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetDeliveryMode(_deliveryMode int64) error
SetDeliveryMode is DeliveryMode Setter 配送方式(0-不限, 1-蜂鸟专送)不传表示不限
func (*AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetGeo ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetGeo(_geo string) error
SetGeo is Geo Setter longitude和latitude用英文逗号分隔
func (*AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetInsurance ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetInsurance(_insurance int64) error
SetInsurance is Insurance Setter 是否支持食安保(0-不限,1-支持食安保)不传表示不限
func (*AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetInvoice ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetInvoice(_invoice int64) error
SetInvoice is Invoice Setter 是否可开发票(0-不限,1-可开发票)不传表示不限
func (*AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetIsBookable ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetIsBookable(_isBookable string) error
SetIsBookable is IsBookable Setter 是否筛选支持预定 0:不需要 1:需要(不传该字段则不筛选)
func (*AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetIsPremium ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetIsPremium(_isPremium int64) error
SetIsPremium is IsPremium Setter 是否品牌商家(0-不限,1-品牌商家)不传表示不限
func (*AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetLimit ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetLimit(_limit int64) error
SetLimit is Limit Setter 查询数量,默认是10,最大50
func (*AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetNewRestaurant ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetNewRestaurant(_newRestaurant int64) error
SetNewRestaurant is NewRestaurant Setter 是否新店(0-不限,1-新店)不传表示不限
func (*AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetOrderBy ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetOrderBy(_orderBy int64) error
SetOrderBy is OrderBy Setter 排序选项(1-默认排序(热门), 2-评价星级由高到低, 3-起送价由低到高, 4-销量由高到低, 5-送餐速度由快到慢, 6-餐厅距离由近到远, 7-订单量由高到低)
func (*AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetRankId ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetRankId(_rankId string) error
SetRankId is RankId Setter 首次查询无需传入,后续需要传入前次返回
func (*AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetStart ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetStart(_start int64) error
SetStart is Start Setter 查询起始位置,默认为0。如果传的是10,那么餐厅会从第11个开始返回
type AlibabaEleEnterpriseRestaurantSearchAPIResponse ¶
type AlibabaEleEnterpriseRestaurantSearchAPIResponse struct { model.CommonResponse AlibabaEleEnterpriseRestaurantSearchAPIResponseModel }
AlibabaEleEnterpriseRestaurantSearchAPIResponse 餐厅列表 API返回值 alibaba.ele.enterprise.restaurant.search
餐厅列表
type AlibabaEleEnterpriseRestaurantSearchAPIResponseModel ¶ added in v1.2.0
type AlibabaEleEnterpriseRestaurantSearchAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_search_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"` // 请求id EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` // 返回值信息 EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` }
AlibabaEleEnterpriseRestaurantSearchAPIResponseModel is 餐厅列表 成功返回结果
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"` // 活动, 参考餐厅活动 Activities []Activite `json:"activities,omitempty" xml:"activities>activite,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"` // 配送费 AgentFee string `json:"agent_fee,omitempty" xml:"agent_fee,omitempty"` // 餐厅名称 RestaurantName string `json:"restaurant_name,omitempty" xml:"restaurant_name,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"` // 人均消费金额(元) AverageCost string `json:"average_cost,omitempty" xml:"average_cost,omitempty"` // 水印序列号 SerialNumber string `json:"serial_number,omitempty" xml:"serial_number,omitempty"` // 餐厅信息 Restaurant *Restaurant `json:"restaurant,omitempty" xml:"restaurant,omitempty"` // 是否支持食安保:0,否;1,是 IsInsurance int64 `json:"is_insurance,omitempty" xml:"is_insurance,omitempty"` // 是否新店:0,否;1,是 IsNew int64 `json:"is_new,omitempty" xml:"is_new,omitempty"` // 最近一个月订单量 RecentOrderNum int64 `json:"recent_order_num,omitempty" xml:"recent_order_num,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"` // 是否支持开发票: 0,否;1, 是 Invoice int64 `json:"invoice,omitempty" xml:"invoice,omitempty"` // 是否品牌店:0,否;1,是 IsPremium int64 `json:"is_premium,omitempty" xml:"is_premium,omitempty"` // 是否支持预定. 0 不支持预定, 1 支持预定 IsBookable int64 `json:"is_bookable,omitempty" xml:"is_bookable,omitempty"` // 餐厅整体营业状态:1 餐厅营业中,2餐厅关闭,3 餐厅网路不稳定,4 餐厅休息中,5 直接说预定,6 只接受电话预定,7 餐厅休假中 TotalStatus int64 `json:"total_status,omitempty" xml:"total_status,omitempty"` }
DataList 结构体
type EnterpriseData ¶
type EnterpriseData struct { // 活动, 参考餐厅活动 Activities []Activitie `json:"activities,omitempty" xml:"activities>activitie,omitempty"` // 餐厅营业时间 ServingTimes []string `json:"serving_times,omitempty" xml:"serving_times>string,omitempty"` // 餐厅电话 PhoneList []string `json:"phone_list,omitempty" xml:"phone_list>string,omitempty"` // 数据列表 DataList []DataList `json:"data_list,omitempty" xml:"data_list>data_list,omitempty"` // 食物信息 Foods []Food `json:"foods,omitempty" xml:"foods>food,omitempty"` // 类目名称 Name string `json:"name,omitempty" xml:"name,omitempty"` // 餐厅维度 Latitude string `json:"latitude,omitempty" xml:"latitude,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"` // 配送费 AgentFee string `json:"agent_fee,omitempty" xml:"agent_fee,omitempty"` // 餐厅名称 RestaurantName string `json:"restaurant_name,omitempty" xml:"restaurant_name,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"` // 序列号(无业务含义) SerialNumber string `json:"serial_number,omitempty" xml:"serial_number,omitempty"` // 是否支持食安保:0,否;1,是 IsInsurance string `json:"is_insurance,omitempty" xml:"is_insurance,omitempty"` // 餐厅地址 AddressText string `json:"address_text,omitempty" xml:"address_text,omitempty"` // 人均消费金额(元) AverageCost string `json:"average_cost,omitempty" xml:"average_cost,omitempty"` // 排序id RankId string `json:"rank_id,omitempty" xml:"rank_id,omitempty"` // 描述 Description string `json:"description,omitempty" xml:"description,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"` // 最近一个月订单量 RecentOrderNum int64 `json:"recent_order_num,omitempty" xml:"recent_order_num,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"` // 是否支持开发票: 1, 是; 2, 否. Invoice int64 `json:"invoice,omitempty" xml:"invoice,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"` // 餐厅整体营业状态:1 餐厅营业中,2餐厅关闭,3 餐厅网路不稳定,4 餐厅休息中,5 直接说预定,6 只接受电话预定,7 餐厅休假中 TotalStatus int64 `json:"total_status,omitempty" xml:"total_status,omitempty"` // 分类类型. 1: 普通分类 2: 热销榜 3: 优惠分类 4: 必点分类 5: 非必点分类 Type int64 `json:"type,omitempty" xml:"type,omitempty"` // 是否可配送 IsDeliverable bool `json:"is_deliverable,omitempty" xml:"is_deliverable,omitempty"` // 是否有下页 HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` // 是否为活动商品 IsActivity bool `json:"is_activity,omitempty" xml:"is_activity,omitempty"` }
EnterpriseData 结构体
type Food ¶
type Food struct { // 食物信息 Specfoods []Specfood `json:"specfoods,omitempty" xml:"specfoods>specfood,omitempty"` // 规格信息, 例如: [{“name”: “规格”, “values”: [“不辣”, “中辣”, “大辣” ]}, …] Specifications []Specification `json:"specifications,omitempty" xml:"specifications>specification,omitempty"` // 属性信息, 次要的规格信息, 不决定价格, 例如: [{“name”: “甜度”, “values”: [“加糖”, “不加糖”]}, …] Attrs []Attr `json:"attrs,omitempty" xml:"attrs>attr,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"` // 概况说明, 例: “2评价 月售6份” Tips string `json:"tips,omitempty" xml:"tips,omitempty"` // 图片地址 ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"` // 名字 Name string `json:"name,omitempty" xml:"name,omitempty"` // 活动 Activity *Activity `json:"activity,omitempty" xml:"activity,omitempty"` // 月售份数 MonthSales int64 `json:"month_sales,omitempty" xml:"month_sales,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"` // 食物图片 ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"` // 食物描述 Description string `json:"description,omitempty" xml:"description,omitempty"` // 最近一个月的售出份数 RecentPopularity int64 `json:"recent_popularity,omitempty" xml:"recent_popularity,omitempty"` // 食物id FoodId int64 `json:"food_id,omitempty" xml:"food_id,omitempty"` // 库存 Stock int64 `json:"stock,omitempty" xml:"stock,omitempty"` }
Foods 结构体
type Restaurant ¶
type Restaurant struct { // 活动详情 Activities []Activities `json:"activities,omitempty" xml:"activities>activities,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"` // 配送费 AgentFee string `json:"agent_fee,omitempty" xml:"agent_fee,omitempty"` // 餐厅名称 RestaurantName string `json:"restaurant_name,omitempty" xml:"restaurant_name,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"` // 人均值 AverageCost string `json:"average_cost,omitempty" xml:"average_cost,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"` // 最近一个月订单量 RecentOrderNum int64 `json:"recent_order_num,omitempty" xml:"recent_order_num,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"` // 是否支持开发票(是为1,否为0) Invoice int64 `json:"invoice,omitempty" xml:"invoice,omitempty"` // 是否品牌馆餐厅 IsPremium int64 `json:"is_premium,omitempty" xml:"is_premium,omitempty"` // 是否支持食安保:0,否;1,是 IsInsurance int64 `json:"is_insurance,omitempty" xml:"is_insurance,omitempty"` // 是否新开业 IsNew int64 `json:"is_new,omitempty" xml:"is_new,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"` // 商品规格id SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"` // 库存 Stock int64 `json:"stock,omitempty" xml:"stock,omitempty"` // 是否必点, 必点分类下只要点一个 food 就好了, 如果必点商品售完, 不需要必点 IsEssential bool `json:"is_essential,omitempty" xml:"is_essential,omitempty"` // 是否售完 SoldOut bool `json:"sold_out,omitempty" xml:"sold_out,omitempty"` }
Specfood 结构体
type Specification ¶
type Specification struct { // 规格说明 Values []string `json:"values,omitempty" xml:"values>string,omitempty"` // 特别说明 Name string `json:"name,omitempty" xml:"name,omitempty"` }
Specification 结构体
Source Files ¶
- Activite.go
- Activitie.go
- Activities.go
- Activity.go
- AlibabaEleEnterpriseRestaurantCategoriesAPIRequest.go
- AlibabaEleEnterpriseRestaurantCategoriesAPIResponse.go
- AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest.go
- AlibabaEleEnterpriseRestaurantCheckaddressAPIResponse.go
- AlibabaEleEnterpriseRestaurantGetAPIRequest.go
- AlibabaEleEnterpriseRestaurantGetAPIResponse.go
- AlibabaEleEnterpriseRestaurantMixAPIRequest.go
- AlibabaEleEnterpriseRestaurantMixAPIResponse.go
- AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest.go
- AlibabaEleEnterpriseRestaurantMultispecmenuAPIResponse.go
- AlibabaEleEnterpriseRestaurantSearchAPIRequest.go
- AlibabaEleEnterpriseRestaurantSearchAPIResponse.go
- Attr.go
- DataList.go
- EnterpriseData.go
- Food.go
- Foods.go
- Restaurant.go
- Spec.go
- Specfood.go
- Specification.go
- doc.go