添加
[TOC]
简要描述
- 用户注册接口
请求URL
http://localhost:3030/commoditylist
请求方式
- POST
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
commodityname | 是 | string | 商品名称 |
commoditytype | 是 | string | 商品类型 |
commoditystatus | 否 | string | 商品状态 |
commodityclassification | 否 | string | 商品分类 |
hotstate | 否 | string | 热门状态 |
standardgoods | 否 | string | 标品 |
goodstype | 否 | string | 商品审核状态 |
inventory | 否 | string | 库存 |
commodityprice | 否 | INTEGER | 商品价格 |
sales | 否 | INTEGER | 销售额(元) |
salesvolume | 否 | INTEGER | 销量 |
type | 否 | string | 类型 |
label | 否 | string | 标签 |
commodityspecification | 否 | string | 商品规格 |
labelname | 否 | string | 标签名称 |
tagdescription | 否 | string | 标签描述 |
enablenot | 否 | string | 是否启用 |
inventorynumber | 否 | string | 外键-库房表 |
classificationname | 否 | string | 外键-商品分类 |
返回示例
{
"id": 2,
"commodityname": "大白菜",
"commoditytype": "蔬菜",
"commoditystatus": "新鲜",
"commodityclassification": "火热蔬菜区",
"hotstate": "火热中",
"standardgoods": "是",
"goodstype": "审核通过",
"inventory": "10000",
"commodityprice": "3",
"sales": "6000",
"salesvolume": "2000",
"type": "蔬菜",
"label": "大白菜",
"commodityspecification": "中小",
"labelname": "好产品",
"tagdescription": "新鲜",
"enablenot": "是",
"inventorynumber": "1",
"classificationname": "1",
"updatedAt": "2023-05-24T02:58:38.183Z",
"createdAt": "2023-05-24T02:58:38.183Z"
}
备注
- 更多返回错误代码请看首页的错误代码描述