添加
[TOC]
简要描述
- 用户注册接口
请求URL
http://localhost:3030/warehouse
请求方式
- POST
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
inventorynumber | 是 | string | 库存单号 |
warehouseaddress | 是 | string | 库房地址 |
goodsname | 否 | string | 商品名称 |
goodsnumber | 否 | INTEGER | 商品数量 |
unit | 否 | string | 单位 |
commodityclassification | 否 | string | 商品分类 |
currentinventory | 否 | INTEGER | 当前库存 |
inventoryprice | 否 | INTEGER | 库存价格 |
inventoryamount | 否 | INTEGER | 库存金额 |
storagelocation | 否 | string | 存放位置 |
state | 否 | string | 状态 |
lossamount | 否 | INTEGER | 盘损金额 |
excessamount | 否 | INTEGER | 盘溢金额 |
creationtime | 否 | DATE | 创建时间 |
classificationname | 否 | string | 外键-商品分类 |
commodityname | 否 | string | 外键-商品 |
返回示例
{
"id": 2,
"inventorynumber": "sa123456",
"warehouseaddress": "广州",
"goodsname": "扇贝",
"goodsnumber": "200",
"unit": "只",
"commodityclassification": "生腌",
"currentinventory": "300",
"inventoryprice": "5",
"inventoryamount": "3000",
"storagelocation": "a-1",
"state": "新鲜",
"lossamount": "0",
"excessamount": "0",
"creationtime": "2023-05-22T16:00:00.000Z",
"classificationname": "1",
"commodityname": "1",
"updatedAt": "2023-05-24T02:43:36.206Z",
"createdAt": "2023-05-24T02:43:36.206Z"
}
备注
- 更多返回错误代码请看首页的错误代码描述