# 获取商品详情

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

  http请求方式:GET
  请求path: goods/detail
  入参:params: { id: string }
  出参:data: IGoodsDetail

# 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: store/user-review
  入参:params: { id: string }
  出参:data: IUserReview

# IUserReview

# 属性

属性 类型 必填 说明
reviewCount number 评论总数
comments IComment[] 评论列表
overallReview IOverallReview 综合评分
commentTags ICommentTag[] 评论标签列表
IComment
属性
属性 类型 必填 说明
userName string 用户名
userAvatar string 用户头像url
images string[] 评论附带图片列表
message string 评论文字内容
rating number 评分
ratingText string 评分补充文字
dateTag string 日期文案
id string 评论id
IOverallReview
属性
属性 类型 必填 说明
overallRating number 综合评分
ratingList { label: string, rating: number }[] 各方面评分列表
ICommentTag
属性
属性 类型 必填 说明
label string 标签文案
count number 数量

# 获取店铺套餐

  http请求方式:GET
  请求path: store/meal-set
  入参:params: { id: string }
  出参:data: IMealSetItem[]

# IMealSetItem

# 属性

属性 类型 必填 说明
imageUrl string 图片
title string 名称
tagList { type: string, label: string }[] 标签列表
price string | number 价格
inactivePrice string | number 原价
priceTag string 价格标签
buttonText string 按钮文字
sales number 销量
id string 套餐(商品)id

# 获取店铺详情

  http请求方式:GET
  请求path: store/detail
  入参:params: { id: string }
  出参:data: IStoreInfo

# IStoreInfo

# 属性

属性 类型 必填 说明
storeName string 店铺名称
id string 店铺id
priceText string 价格文案
rating number 评分
extraInfo string 附加信息
storeCount number 店铺总数
phone string 联系电话
thumbnailImg string 缩略图
location { city: string, distance: string | number, time: string | number, name: string } 地理位置信息
Copyright ©2026, All Rights Reserved