根据userId查找物料借还信息
GET
/materials-opers/get-by-user请求参数
Query 参数
materials_method
integer
可选
默认是11(借) 10是用
示例值:
10
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
array [object {15}]
必需
materials_address
string
物料地址
warehouse_name
string
仓库名字
borrow_num
integer
借了多少
materials_loc_id
integer
物料位置id
user_id
integer
用户id
description
string
描述
materials_id
integer
物料id
remain_num
integer
待还数量
materials_name
string
物料名称
return_num
integer
还的数量
warehouse_id
integer
仓库id
materials_type
string
物料规格
materials_sn
string
物料编号
materials_oper_id
integer
必需
category
string
物料类别
示例
成功示例
{
"code": 20000,
"message": "获取成功",
"data": [
{
"materials_address": "A-12-3-7",
"warehouse_name": "仓库二号",
"borrow_num": 5,
"materials_loc_id": 1,
"user_id": 1,
"description": "借出急用",
"materials_id": 1,
"remain_num": 0,
"materials_name": "A520解码器",
"return_num": 5,
"warehouse_id": 2
},
{
"materials_address": "A-13-7-10",
"warehouse_name": "仓库二号",
"borrow_num": 2,
"materials_loc_id": 2,
"user_id": 1,
"description": "再借",
"materials_id": 1,
"remain_num": 0,
"materials_name": "A520解码器",
"return_num": 2,
"warehouse_id": 2
}
]
}
最后修改时间: 8 个月前