文档
测试

查询所有商品

GET
http://localhost:3005/goods/goodsall?query=%7B%7D

请求参数

参数名
类型
描述
必填
query
string
示例:{}
必填

响应参数

参数名
类型
描述
必填
code
int
示例:2000
必填
flag
boolean
示例:true
必填
message
string
示例:查询成功
必填
total
int
示例:204
必填
data
array
数据列表
必填
_id
string
示例:5f8aa982797c7bb308a3e4f2
必填
disprice
int
示例:240
必填
hasCoupons
boolean
示例:false
必填
id
int
示例:17904
必填
name
string
示例: 茅台醇香1999酱香型53度白酒 500ml*2瓶装
必填
oldprice
int
示例:398
必填
pic5
object
示例:null
必填
piclogo
string
示例:http://best1-wexin.oss-cn-hangzhou.aliyuncs.com/images/upload/201901/25vsDoav.jpg
必填
piclogo2
string
示例:http://best1-wexin.oss-cn-hangzhou.aliyuncs.com/images/upload/201901/25AnQuJc.jpg
必填
price
int
示例:240
必填
store
int
示例:74
必填
tabType
object
示例:null
必填

说明 / 示例

git请求 必须填query={} 大括号{}里面可以为空 空为表示查询所有 如果写条件比如{"price":240} 表示 查询 及格为240的数据