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": "12c26835-c588-4d2c-b97d-5129476711f2",
"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": "2026-04-23 16:48:10",
"LastConnectionTime": "2026-04-23 16:48:10",
"TimeStateName": "时间正常",
"StateDescription": "sample string 13",
"Enabled": true,
"Phone": "sample string 14",
"LastSendTime": "2026-04-23 16:48:10",
"UserName": "sample string 15",
"Password": "sample string 16",
"CreationTime": "2026-04-23 16:48:10",
"CreatorId": "c38c1992-5c83-4e12-b754-9863b1dfd93d",
"LastModificationTime": "2026-04-23 16:48:10",
"LastModifierId": "fe8fc1f7-75b7-4be4-bfa4-47ce097d4535",
"IsDeleted": true,
"Version": "QEA=",
"DeviceCarPointDtoList": [
{
"DeviceId": "41fbddbc-f29c-400e-af44-30142a3097da",
"CarPointId": "1359bf82-7a69-46a6-86a1-7174fbaeb19b",
"DeviceCode": "sample string 3",
"CarPointCode": "sample string 4",
"CurrentCar": 5,
"CreationTime": "2026-04-23 16:48:10",
"CreatorId": "b4a412a2-6dc8-4664-a8de-333a01740931",
"LastModificationTime": "2026-04-23 16:48:10",
"LastModifierId": "a638aa04-b0ca-4881-a994-0a572b8af8ea",
"IsDeleted": true,
"Version": "QEA=",
"Id": "sample string 7"
},
{
"DeviceId": "41fbddbc-f29c-400e-af44-30142a3097da",
"CarPointId": "1359bf82-7a69-46a6-86a1-7174fbaeb19b",
"DeviceCode": "sample string 3",
"CarPointCode": "sample string 4",
"CurrentCar": 5,
"CreationTime": "2026-04-23 16:48:10",
"CreatorId": "b4a412a2-6dc8-4664-a8de-333a01740931",
"LastModificationTime": "2026-04-23 16:48:10",
"LastModifierId": "a638aa04-b0ca-4881-a994-0a572b8af8ea",
"IsDeleted": true,
"Version": "QEA=",
"Id": "sample string 7"
}
],
"ParkDtos": [
{
"AreaId": "71d92f81-0856-4d88-9343-5132f50c123a",
"StreetId": "b507a4d2-0e42-431a-9253-11e5a4ab3436",
"StreetName": "sample string 3",
"FeeStrategyId": "3c3fdfaf-5e68-4af3-86f2-c3a05bdef20c",
"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": "5f308c53-e284-4e21-8e69-df72e1c5c4b6",
"EmployeeName": "sample string 18",
"Name": "sample string 19",
"CreationTime": "2026-04-23 16:48:10",
"CreatorId": "bf8d6ec1-d62f-49ae-88a7-58b7867007ce",
"LastModificationTime": "2026-04-23 16:48:10",
"LastModifierId": "f17d372e-f705-4595-99ef-312b300677d3",
"IsDeleted": true,
"Version": "QEA=",
"StreetDtos": [
{
"AreaId": "830d1055-38e9-4de1-9817-b7c605d6364d",
"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": "2026-04-23 16:48:10",
"CreatorId": "0d0ae2a1-c0b5-4828-8266-b09b601e15a3",
"LastModificationTime": "2026-04-23 16:48:10",
"LastModifierId": "023fbfb6-0c93-4b12-bb6e-460e47e0a280",
"IsDeleted": true,
"Version": "QEA=",
"Id": "sample string 5"
},
{
"AreaId": "830d1055-38e9-4de1-9817-b7c605d6364d",
"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": "2026-04-23 16:48:10",
"CreatorId": "0d0ae2a1-c0b5-4828-8266-b09b601e15a3",
"LastModificationTime": "2026-04-23 16:48:10",
"LastModifierId": "023fbfb6-0c93-4b12-bb6e-460e47e0a280",
"IsDeleted": true,
"Version": "QEA=",
"Id": "sample string 5"
}
],
"Id": "sample string 21"
},
{
"AreaId": "71d92f81-0856-4d88-9343-5132f50c123a",
"StreetId": "b507a4d2-0e42-431a-9253-11e5a4ab3436",
"StreetName": "sample string 3",
"FeeStrategyId": "3c3fdfaf-5e68-4af3-86f2-c3a05bdef20c",
"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": "5f308c53-e284-4e21-8e69-df72e1c5c4b6",
"EmployeeName": "sample string 18",
"Name": "sample string 19",
"CreationTime": "2026-04-23 16:48:10",
"CreatorId": "bf8d6ec1-d62f-49ae-88a7-58b7867007ce",
"LastModificationTime": "2026-04-23 16:48:10",
"LastModifierId": "f17d372e-f705-4595-99ef-312b300677d3",
"IsDeleted": true,
"Version": "QEA=",
"StreetDtos": [
{
"AreaId": "830d1055-38e9-4de1-9817-b7c605d6364d",
"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": "2026-04-23 16:48:10",
"CreatorId": "0d0ae2a1-c0b5-4828-8266-b09b601e15a3",
"LastModificationTime": "2026-04-23 16:48:10",
"LastModifierId": "023fbfb6-0c93-4b12-bb6e-460e47e0a280",
"IsDeleted": true,
"Version": "QEA=",
"Id": "sample string 5"
},
{
"AreaId": "830d1055-38e9-4de1-9817-b7c605d6364d",
"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": "2026-04-23 16:48:10",
"CreatorId": "0d0ae2a1-c0b5-4828-8266-b09b601e15a3",
"LastModificationTime": "2026-04-23 16:48:10",
"LastModifierId": "023fbfb6-0c93-4b12-bb6e-460e47e0a280",
"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>