文档
测试

获取商品详情

GET
http://39.105.217.42:8081/index/index/getProductsOne?pid=1

请求头

参数名
类型
描述
必填
Content-Type
string
application/x-www-form-urlencoded
必填

请求参数

application/x-www-form-urlencoded
参数名
类型
描述
必填
pid
string
1
必填

响应参数

参数名
类型
描述
必填
meta
object
数据字典
必填
msg
string
示例:获取成功
必填
status
int
示例:200
必填
message
object
数据字典
必填
pid
int
示例:1
必填
pname
string
示例:联想
必填
price
string
示例:4000.00 优惠后
必填
discounts_price
string
示例:5000.00 优惠前价格
必填
flag
string
示例:1
必填
category_id
int
示例:1 分组id
必填
img_path
string
示例:http://39.105.217.42:8081/static/img/联想.webp
必填
number
int
示例:0 库存
必填
text
商品详情介绍
必填