文档
测试

查询id为**的商品

GET
http://localhost:8018/goods/checkgoods?id=81

请求参数

参数名
类型
描述
必填
id
int
示例:81
必填

响应参数

参数名
类型
描述
必填
code
int
示例:2000
必填
flag
boolean
示例:true
必填
message
string
示例:查询成功,商品已存在
必填
data
array
数据列表
必填
_id
string
示例:5f0c1253b5173bb7212e896a
必填
src
string
示例:https://image4.benlailife.com/ProductImages/medium/ba1d3c35-bbc8-49a5-98f4-f48f37f19887.jpg?imageView2/2/format/webp
必填
name
string
示例:新西兰皇后苹果12个装(2kg以上)享有“女神果”的美称
必填
price
string
示例:¥99.00
必填
id
string
示例:8
必填
code
int
示例:3000
必填
flag
boolean
示例:false
必填
message
string
示例:查询成功,商品不存在
必填