POST api/User/UpdateUserMenu
更新设备菜单
Request Information
Body Parameters
UserMenuModel| Name | Description | Type | Additional information |
|---|---|---|---|
| list |
集合 |
Collection of UserMenu |
None. |
| DeviceId |
设备Id |
integer |
None. |
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"list": [
{
"Type": 1,
"Name": "sample string 2",
"DeviceId": 3
},
{
"Type": 1,
"Name": "sample string 2",
"DeviceId": 3
}
],
"DeviceId": 1,
"Token": "sample string 2",
"Language": "sample string 3",
"AppId": "sample string 4"
}
application/xml, text/xml
Sample:
<UserMenuModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
<AppId>sample string 4</AppId>
<Language>sample string 3</Language>
<Token>sample string 2</Token>
<DeviceId>1</DeviceId>
<list xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.Entity.Entity">
<d2p1:UserMenu>
<d2p1:DeviceId>3</d2p1:DeviceId>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:Type>1</d2p1:Type>
</d2p1:UserMenu>
<d2p1:UserMenu>
<d2p1:DeviceId>3</d2p1:DeviceId>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:Type>1</d2p1:Type>
</d2p1:UserMenu>
</list>
</UserMenuModel>
Response Information
Resource Description
NormalResult
| Name | Description | Type | Additional information |
|---|---|---|---|
| Message |
消息 [大多数情况下可通过该消息做为提示语] |
string |
None. |
| State |
状态码 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Message": "sample string 1",
"State": 2
}
application/xml, text/xml
Sample:
<NormalResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel"> <State>2</State> <Message>sample string 1</Message> </NormalResult>