提交资源信息
请求
POST /boss/order/addResource
请求体
参数 |
类型 |
是否必须 |
描述 |
orderId |
string |
是 |
订单ID |
offerId |
string |
是 |
资源方案id |
resources |
array |
是 |
新资源信息列表 |
resources.storeId |
string |
是 |
所在仓库ID |
resources.storeName |
string |
是 |
所在仓库名称 |
resources.serialNo |
string |
是 |
设备序列号 |
resources.chipId |
string |
是 |
CHIP_ID |
resources.resTypeId |
string |
是 |
资源类型ID |
resources.resTypeName |
string |
是 |
资源类型名称 |
resources.resSkuId |
string |
是 |
资源型号ID |
resources.resSkuName |
string |
是 |
资源型号名称 |
resources.resUseMode |
string |
是 |
用途ID |
resources.resUseModeName |
string |
是 |
用途名称 |
resources.mac |
string |
是 |
MAC地址 |
resources.cmmac |
string |
是 |
CMMAC |
示例
{
"orderId": "123456",
"resources": [
{
"storeId": "001",
"storeName": "北京仓库",
"deviceSerialNo": "A123456",
"chipId": "001",
"resourceTypeId": "001",
"resourceTypeName": "电脑",
"resourceModelId": "001",
"resourceModelName": "ThinkPad X1 Carbon",
"usageId": "001",
"usageName": "办公",
"macAddress": "00-11-22-33-44-55",
"cmmac": "001"
}
]
}
响应
成功
参数 |
类型 |
描述 |
code |
integer |
返回码,20000表示成功 |
data |
object |
返回数据,通常为空 |
失败
参数 |
类型 |
描述 |
code |
integer |
返回码,非20000表示失败 |
data |
object |
返回数据,通常为空 |
示例
{
"code": 0,
"data": {}
}