Http方法:POST
路由:api/Base_ProductInfo_SpecRelation/Update
更新单条数据
请求参数
None.
Body Parameters
商品规格对象 SpecRelation_Id:必填,根据这个id值更新对象
Base_ProductInfo_SpecRelation| 参数名称 | 参数描述 | 类型 | 附加信息 |
|---|---|---|---|
| SpecRelation_Id |
商品规格ID |
integer |
None |
| Product_Id |
商品ID |
integer |
None |
| ProductCode |
编号 |
string |
None |
| ProductName |
商品名称 |
string |
None |
| Specification_Id |
规格ID |
integer |
None |
| SpecificationName |
规格名称 |
string |
None |
| OrderNo |
排序号 |
integer |
None |
| CreateID |
创建人ID |
integer |
None |
| Creator |
创建人 |
string |
None |
| CreateDate |
创建时间 |
date |
None |
| ModifyID |
修改人ID |
integer |
None |
| Modifier |
修改人 |
string |
None |
| ModifyDate |
修改时间 |
date |
None |
| Enable |
是否可用 |
integer |
None |
| Base_ProductInfo_SpecValueRelation | Collection of Base_ProductInfo_SpecValueRelation |
None |
|
| RecordAction |
记录操作动作 |
RecordAction |
None |
Request Formats
application/json, text/json
Sample:
{
"SpecRelation_Id": 1,
"Product_Id": 2,
"ProductCode": "sample string 3",
"ProductName": "sample string 4",
"Specification_Id": 5,
"SpecificationName": "sample string 6",
"OrderNo": 1,
"CreateID": 1,
"Creator": "sample string 7",
"CreateDate": "2025-12-13T08:59:09.3057866+08:00",
"ModifyID": 1,
"Modifier": "sample string 8",
"ModifyDate": "2025-12-13T08:59:09.3057866+08:00",
"Enable": 1,
"Base_ProductInfo_SpecValueRelation": [
{
"SpecValueRelation_Id": 1,
"SpecRelation_Id": 2,
"Product_Id": 3,
"ProductCode": "sample string 4",
"ProductName": "sample string 5",
"Specification_Id": 6,
"SpecificationName": "sample string 7",
"SpecValue_Id": 8,
"SpecValue": "sample string 9",
"OrderNo": 1,
"CreateID": 1,
"Creator": "sample string 10",
"CreateDate": "2025-12-13T08:59:09.3057866+08:00",
"ModifyID": 1,
"Modifier": "sample string 11",
"ModifyDate": "2025-12-13T08:59:09.3057866+08:00",
"Enable": 1,
"RecordAction": 0
},
{
"SpecValueRelation_Id": 1,
"SpecRelation_Id": 2,
"Product_Id": 3,
"ProductCode": "sample string 4",
"ProductName": "sample string 5",
"Specification_Id": 6,
"SpecificationName": "sample string 7",
"SpecValue_Id": 8,
"SpecValue": "sample string 9",
"OrderNo": 1,
"CreateID": 1,
"Creator": "sample string 10",
"CreateDate": "2025-12-13T08:59:09.3057866+08:00",
"ModifyID": 1,
"Modifier": "sample string 11",
"ModifyDate": "2025-12-13T08:59:09.3057866+08:00",
"Enable": 1,
"RecordAction": 0
},
{
"SpecValueRelation_Id": 1,
"SpecRelation_Id": 2,
"Product_Id": 3,
"ProductCode": "sample string 4",
"ProductName": "sample string 5",
"Specification_Id": 6,
"SpecificationName": "sample string 7",
"SpecValue_Id": 8,
"SpecValue": "sample string 9",
"OrderNo": 1,
"CreateID": 1,
"Creator": "sample string 10",
"CreateDate": "2025-12-13T08:59:09.3057866+08:00",
"ModifyID": 1,
"Modifier": "sample string 11",
"ModifyDate": "2025-12-13T08:59:09.3057866+08:00",
"Enable": 1,
"RecordAction": 0
}
],
"RecordAction": 0
}
返回响应信息
更新单条数据
ResultInfoOfInt32| 参数名称 | 参数描述 | 类型 | 附加信息 |
|---|---|---|---|
| Result | boolean |
None |
|
| State | string |
None |
|
| Dynamic | Object |
None |
|
| Msg | string |
None |
|
| Data | integer |
None |
Response Formats
application/json, text/json
Sample:
{
"Result": true,
"State": "sample string 2",
"Dynamic": {},
"Msg": "sample string 4",
"Data": 5
}