提交资源信息
请求
POST /boss/order/modifyResource
请求体
参数 |
类型 |
是否必须 |
描述 |
orderId |
string |
是 |
订单ID |
offerId |
string |
是 |
资源方案id |
oldOfferId |
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 |
resources.isOld |
int |
是 |
是否为原资源方案 1 是 |
oldResources |
array |
是 |
原资源信息列表 |
oldResources.storeId |
string |
是 |
所在仓库ID |
oldResources.storeName |
string |
是 |
所在仓库名称 |
oldResources.serialNo |
string |
是 |
设备序列号 |
oldResources.chipId |
string |
是 |
CHIP_ID |
oldResources.resTypeId |
string |
是 |
资源类型ID |
oldResources.resTypeName |
string |
是 |
资源类型名称 |
oldResources.resSkuId |
string |
是 |
资源型号ID |
oldResources.resSkuName |
string |
是 |
资源型号名称 |
oldResources.resUseMode |
string |
是 |
用途ID |
oldResources.resUseModeName |
string |
是 |
用途名称 |
oldResources.mac |
string |
是 |
MAC地址 |
oldResources.cmmac |
string |
是 |
CMMAC |
oldResources.type |
int |
是 |
老资源处理方式 1 领用 2 回收 3 保留 |
oldResources.resInnetMode |
String |
是 |
资源来源 |
示例
{
"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": {}
}