# 商品列表

更新时间:2023-02-01 11:07:54

http请求方式:GET
请求path: goods/list
入参:params: { rules: FilterRules }
出参:data: IGoodsDetail[]

# FilterRules

属性
属性 类型 必填
category string
location string
sort 'default' | 'comment' | 'distance' | 'sell'
price '0-50' | '50-100' | '100-200' | '200-300' | '300-500' | '500-infinity'
operateTime '5:00-10:00' | '10:00-14:00' | '14:00-17:00' | '17:00-21:00' | '21:00-24:00' | '0:00-5:00'
maxDining '0-1' | '1-2' | '3-4' | '5-10' | '10-infinity'

# IGoodsDetail

# 属性

属性 类型 必填 说明
id string 商品 id
image string 商品头图
bigImage string 高清图
name string 商品名称
tags Tag[] 商品标签
desc string 商品简介
price string 现价
couponText string 优惠信息
originalPrice string 原价
saleCount number 已销售数量
saleCountDownSecond number 距离销售结束时间
productInfo IGoodsProductDetail[] 商品详情
rules IGoodsUseRules[] 使用规则
category string 商品分类标签(“,”分割标签,“-”分割标签细分)
location string 商品所在地区标签(“,”分割标签,“-”分割标签细分)
sell string 销量(月)
distance string 与我距离(米)
comment string 累计好评数
startOperateTime string 开始营业时间
endOperateTime string 结束营业时间
maxDining string 最大用餐人数
Tag
属性
属性 类型 必填 说明
content string 标签文字
type 'normal' | 'strong' | 'weak' 标签类型
IGoodsProductDetail
属性
属性 类型 必填 说明
name string 商品
choices { name: string, price: number }[] 详情
IGoodsUseRules
属性
属性 类型 必填 说明
name string 商品
content string[] 详情

# 获取筛选菜单筛选条件

http请求方式:GET
请求path: select-options
入参:params: undefined
出参:data: SelectOption[]

# SelectOption

# 属性

属性 类型 必填
type 'tree' | 'mix'
name string
rule 'sort' | 'location' | 'other' | 'category'
values number[]
data TreeData[]
TreeData
属性
属性 类型 必填
name string
rule string
count number
children TreeData[]
Copyright ©2026, All Rights Reserved