简要描述:
| 版本号 | 制定人 | 制定日期 | 修订日期 |
|---|---|---|---|
| 1.0.0 | kevin | 2023-12-13 |
请求URL:
请求方式:
- GET
请求头:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| token | 是 | string | token参数 |
请求参数:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| module | 是 | string | 模块 |
| id | 是 | int | 商品id |
返回示例:
正确时返回:
{
"status": 200,
"msg": "ok",
"data": {
"id": 19,
"goods_name": "娃娃菜",
"cate_id": 1,
"cover": "https://wzbuploads.oss-cn-hangzhou.aliyuncs.com/shop/2023/12/12/65780b07c5afc.jpg",
"purchase_price": 11,
"today_price": 16,
"tomorrow_price": 30,
"tomorrow_discount": 0.7,
"unit": "斤",
"status": 1,
"created_at": "2023-12-12 17:37:59",
"view_cover": "https://wzbuploads.oss-cn-hangzhou.aliyuncs.com/shop/2023/12/12/65780b07c5afc.jpg",
"status_msg": "上架"
}
}
失败时返回:
{
"status": 0,
"msg": "更新失败"
}
返回参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| id | int | 商品id |
| goods_name | string | 商品名称 |
| cate_id | int | 分类id |
| cover | string | 商品封面 |
| purchase_price | string | 进价 |
| today_price | string | 现价 |
| tomorrow_price | string | 明日价 |
| tomorrow_discount | string | 明日折扣 |
| unit | string | 商品单位 |
备注:
- 无
作者:admin 创建时间:2023-12-13 15:11
更新时间:2025-04-10 15:43
更新时间:2025-04-10 15:43