POST api/Device/UpdateDeviceState
修改设备的状态
Request Information
URI Parameters
None.
Body Parameters
DeviceDto| Name | Description | Type | Additional information |
|---|---|---|---|
| ParkId | globally unique identifier |
Required |
|
| ParkName | string |
None. |
|
| Lamppost | string |
None. |
|
| Remark | string |
None. |
|
| CarPointId | string |
None. |
|
| CarPointCode | string |
None. |
|
| Code | string |
Required String length: inclusive between 0 and 50 |
|
| Factory | string |
Required String length: inclusive between 0 and 50 |
|
| FactoryName | string |
None. |
|
| Mac | string |
String length: inclusive between 0 and 17 |
|
| Ip | string |
String length: inclusive between 0 and 36 |
|
| Port | integer |
None. |
|
| State | ParkDeviceType |
Required |
|
| TimeState | ParkDeviceTimeState |
None. |
|
| LastOrderTime | date |
None. |
|
| LastConnectionTime | date |
None. |
|
| TimeStateName | string |
None. |
|
| StateDescription | string |
None. |
|
| Enabled | boolean |
None. |
|
| Phone | string |
String length: inclusive between 0 and 36 |
|
| LastSendTime | date |
None. |
|
| UserName | string |
None. |
|
| Password | string |
String length: inclusive between 0 and 32 |
|
| CreationTime | date |
None. |
|
| CreatorId | globally unique identifier |
None. |
|
| LastModificationTime | date |
None. |
|
| LastModifierId | globally unique identifier |
None. |
|
| IsDeleted | boolean |
Required |
|
| Version | Collection of byte |
None. |
|
| DeviceCarPointDtoList | Collection of DeviceCarPointDto |
None. |
|
| ParkDtos | Collection of ParkDto |
None. |
|
| Id | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ParkId": "3e5c0f77-0550-4ea4-93bc-4974eb05ce93",
"ParkName": "sample string 2",
"Lamppost": "sample string 3",
"Remark": "sample string 4",
"CarPointId": "sample string 5",
"CarPointCode": "sample string 6",
"Code": "sample string 7",
"Factory": "sample string 8",
"FactoryName": null,
"Mac": "sample string 10",
"Ip": "sample string 11",
"Port": 12,
"State": 0,
"TimeState": 0,
"LastOrderTime": "2025-11-08 18:54:45",
"LastConnectionTime": "2025-11-08 18:54:45",
"TimeStateName": "时间正常",
"StateDescription": "sample string 13",
"Enabled": true,
"Phone": "sample string 14",
"LastSendTime": "2025-11-08 18:54:45",
"UserName": "sample string 15",
"Password": "sample string 16",
"CreationTime": "2025-11-08 18:54:45",
"CreatorId": "13bbc369-f09a-4d90-b917-4dc6c8bf63ef",
"LastModificationTime": "2025-11-08 18:54:45",
"LastModifierId": "2b2d8872-b85a-4c9a-bbd4-9bf766918c67",
"IsDeleted": true,
"Version": "QEA=",
"DeviceCarPointDtoList": [
{
"DeviceId": "434a3920-6bea-4e3c-bfca-c333e4290583",
"CarPointId": "9f6ada56-b33e-45f0-b709-a05106d1873a",
"DeviceCode": "sample string 3",
"CarPointCode": "sample string 4",
"CurrentCar": 5,
"CreationTime": "2025-11-08 18:54:45",
"CreatorId": "d690ed11-21e7-42d8-a5be-0e0aa91dbc57",
"LastModificationTime": "2025-11-08 18:54:45",
"LastModifierId": "68c4c4da-7e73-4677-8280-919a44eae546",
"IsDeleted": true,
"Version": "QEA=",
"Id": "sample string 7"
},
{
"DeviceId": "434a3920-6bea-4e3c-bfca-c333e4290583",
"CarPointId": "9f6ada56-b33e-45f0-b709-a05106d1873a",
"DeviceCode": "sample string 3",
"CarPointCode": "sample string 4",
"CurrentCar": 5,
"CreationTime": "2025-11-08 18:54:45",
"CreatorId": "d690ed11-21e7-42d8-a5be-0e0aa91dbc57",
"LastModificationTime": "2025-11-08 18:54:45",
"LastModifierId": "68c4c4da-7e73-4677-8280-919a44eae546",
"IsDeleted": true,
"Version": "QEA=",
"Id": "sample string 7"
}
],
"ParkDtos": [
{
"AreaId": "0f26eac9-1780-4266-b627-30d60a2066d1",
"StreetId": "0c175b82-61fb-407a-99e9-9a513f16316d",
"StreetName": "sample string 3",
"FeeStrategyId": "613f5eaf-b8c5-4db1-913f-3c55400e9716",
"IsIntelligentTollCollection": true,
"IsBarrierGate": true,
"IsBarrierGateSinglePay": true,
"FeeStrategyName": "sample string 10",
"IsSupportMonth": true,
"IsSupportMonthName": "是",
"MonthFeeUseDefault": true,
"MonthFee": 13.0,
"MonthFee3": 14.0,
"MonthFee6": 15.0,
"MonthFee12": 16.0,
"EmployeeId": "6203b69c-430f-46ca-80e3-a192cdb699a4",
"EmployeeName": "sample string 18",
"Name": "sample string 19",
"CreationTime": "2025-11-08 18:54:45",
"CreatorId": "764e38e0-2904-41f1-90e9-8b41dae1f620",
"LastModificationTime": "2025-11-08 18:54:45",
"LastModifierId": "e38af7b7-4255-4dc6-8418-a52e21b88dc7",
"IsDeleted": true,
"Version": "QEA=",
"StreetDtos": [
{
"AreaId": "296f77e4-8092-4e2d-91f8-2dbdc68257e0",
"AreaDtos": [
{
"Code": "sample string 1",
"Text": "sample string 2",
"PinYin": "sample string 3",
"FullPinYin": "sample string 4",
"Version": "QEA=",
"IsSelect": true,
"ParentId": "sample string 6",
"Path": "sample string 7",
"Level": 1,
"Enabled": true,
"SortId": 1,
"State": "sample string 9",
"Children": null,
"Id": "sample string 10"
},
{
"Code": "sample string 1",
"Text": "sample string 2",
"PinYin": "sample string 3",
"FullPinYin": "sample string 4",
"Version": "QEA=",
"IsSelect": true,
"ParentId": "sample string 6",
"Path": "sample string 7",
"Level": 1,
"Enabled": true,
"SortId": 1,
"State": "sample string 9",
"Children": null,
"Id": "sample string 10"
}
],
"AreaName": "sample string 2",
"Name": "sample string 3",
"CreationTime": "2025-11-08 18:54:45",
"CreatorId": "e227bfcc-3a5f-4317-8431-2f4622afc55a",
"LastModificationTime": "2025-11-08 18:54:45",
"LastModifierId": "4ca71e8f-b48a-41b4-80c4-27b3697bb68f",
"IsDeleted": true,
"Version": "QEA=",
"Id": "sample string 5"
},
{
"AreaId": "296f77e4-8092-4e2d-91f8-2dbdc68257e0",
"AreaDtos": [
{
"Code": "sample string 1",
"Text": "sample string 2",
"PinYin": "sample string 3",
"FullPinYin": "sample string 4",
"Version": "QEA=",
"IsSelect": true,
"ParentId": "sample string 6",
"Path": "sample string 7",
"Level": 1,
"Enabled": true,
"SortId": 1,
"State": "sample string 9",
"Children": null,
"Id": "sample string 10"
},
{
"Code": "sample string 1",
"Text": "sample string 2",
"PinYin": "sample string 3",
"FullPinYin": "sample string 4",
"Version": "QEA=",
"IsSelect": true,
"ParentId": "sample string 6",
"Path": "sample string 7",
"Level": 1,
"Enabled": true,
"SortId": 1,
"State": "sample string 9",
"Children": null,
"Id": "sample string 10"
}
],
"AreaName": "sample string 2",
"Name": "sample string 3",
"CreationTime": "2025-11-08 18:54:45",
"CreatorId": "e227bfcc-3a5f-4317-8431-2f4622afc55a",
"LastModificationTime": "2025-11-08 18:54:45",
"LastModifierId": "4ca71e8f-b48a-41b4-80c4-27b3697bb68f",
"IsDeleted": true,
"Version": "QEA=",
"Id": "sample string 5"
}
],
"Id": "sample string 21"
},
{
"AreaId": "0f26eac9-1780-4266-b627-30d60a2066d1",
"StreetId": "0c175b82-61fb-407a-99e9-9a513f16316d",
"StreetName": "sample string 3",
"FeeStrategyId": "613f5eaf-b8c5-4db1-913f-3c55400e9716",
"IsIntelligentTollCollection": true,
"IsBarrierGate": true,
"IsBarrierGateSinglePay": true,
"FeeStrategyName": "sample string 10",
"IsSupportMonth": true,
"IsSupportMonthName": "是",
"MonthFeeUseDefault": true,
"MonthFee": 13.0,
"MonthFee3": 14.0,
"MonthFee6": 15.0,
"MonthFee12": 16.0,
"EmployeeId": "6203b69c-430f-46ca-80e3-a192cdb699a4",
"EmployeeName": "sample string 18",
"Name": "sample string 19",
"CreationTime": "2025-11-08 18:54:45",
"CreatorId": "764e38e0-2904-41f1-90e9-8b41dae1f620",
"LastModificationTime": "2025-11-08 18:54:45",
"LastModifierId": "e38af7b7-4255-4dc6-8418-a52e21b88dc7",
"IsDeleted": true,
"Version": "QEA=",
"StreetDtos": [
{
"AreaId": "296f77e4-8092-4e2d-91f8-2dbdc68257e0",
"AreaDtos": [
{
"Code": "sample string 1",
"Text": "sample string 2",
"PinYin": "sample string 3",
"FullPinYin": "sample string 4",
"Version": "QEA=",
"IsSelect": true,
"ParentId": "sample string 6",
"Path": "sample string 7",
"Level": 1,
"Enabled": true,
"SortId": 1,
"State": "sample string 9",
"Children": null,
"Id": "sample string 10"
},
{
"Code": "sample string 1",
"Text": "sample string 2",
"PinYin": "sample string 3",
"FullPinYin": "sample string 4",
"Version": "QEA=",
"IsSelect": true,
"ParentId": "sample string 6",
"Path": "sample string 7",
"Level": 1,
"Enabled": true,
"SortId": 1,
"State": "sample string 9",
"Children": null,
"Id": "sample string 10"
}
],
"AreaName": "sample string 2",
"Name": "sample string 3",
"CreationTime": "2025-11-08 18:54:45",
"CreatorId": "e227bfcc-3a5f-4317-8431-2f4622afc55a",
"LastModificationTime": "2025-11-08 18:54:45",
"LastModifierId": "4ca71e8f-b48a-41b4-80c4-27b3697bb68f",
"IsDeleted": true,
"Version": "QEA=",
"Id": "sample string 5"
},
{
"AreaId": "296f77e4-8092-4e2d-91f8-2dbdc68257e0",
"AreaDtos": [
{
"Code": "sample string 1",
"Text": "sample string 2",
"PinYin": "sample string 3",
"FullPinYin": "sample string 4",
"Version": "QEA=",
"IsSelect": true,
"ParentId": "sample string 6",
"Path": "sample string 7",
"Level": 1,
"Enabled": true,
"SortId": 1,
"State": "sample string 9",
"Children": null,
"Id": "sample string 10"
},
{
"Code": "sample string 1",
"Text": "sample string 2",
"PinYin": "sample string 3",
"FullPinYin": "sample string 4",
"Version": "QEA=",
"IsSelect": true,
"ParentId": "sample string 6",
"Path": "sample string 7",
"Level": 1,
"Enabled": true,
"SortId": 1,
"State": "sample string 9",
"Children": null,
"Id": "sample string 10"
}
],
"AreaName": "sample string 2",
"Name": "sample string 3",
"CreationTime": "2025-11-08 18:54:45",
"CreatorId": "e227bfcc-3a5f-4317-8431-2f4622afc55a",
"LastModificationTime": "2025-11-08 18:54:45",
"LastModifierId": "4ca71e8f-b48a-41b4-80c4-27b3697bb68f",
"IsDeleted": true,
"Version": "QEA=",
"Id": "sample string 5"
}
],
"Id": "sample string 21"
}
],
"Id": "sample string 18"
}
application/xml
Sample:
text/xml
Sample:
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResultMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| status |
操作结果状态 |
MStatusCode |
None. |
| message |
操作结果消息 |
string |
None. |
| errors |
请求对象未通过验证的错误消息列表 |
Collection of ValidErrors |
None. |
| url |
操作成功后的跳转页面 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": 0,
"message": "sample string 1",
"errors": [
{
"field": "sample string 1",
"errorMessages": [
"sample string 1",
"sample string 2"
]
},
{
"field": "sample string 1",
"errorMessages": [
"sample string 1",
"sample string 2"
]
}
],
"url": "sample string 2"
}
application/xml, text/xml
Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Applications.WebApi.Common">
<Status>Fail</Status>
<Message>sample string 1</Message>
<Url>sample string 2</Url>
<Errors>
<ValidErrors>
<_x003C_ErrorMessages_x003E_k__BackingField xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</_x003C_ErrorMessages_x003E_k__BackingField>
<_x003C_Field_x003E_k__BackingField>sample string 1</_x003C_Field_x003E_k__BackingField>
</ValidErrors>
<ValidErrors>
<_x003C_ErrorMessages_x003E_k__BackingField xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</_x003C_ErrorMessages_x003E_k__BackingField>
<_x003C_Field_x003E_k__BackingField>sample string 1</_x003C_Field_x003E_k__BackingField>
</ValidErrors>
</Errors>
</Result>