POST api/menu/setrolemenu
设置角色菜单
Request Information
URI Parameters
None.
Body Parameters
MenuSetDtoName | Description | Type | Additional information |
---|---|---|---|
RoleId |
角色编号 |
integer |
None. |
ProfessionalCourseId |
专业 |
Collection of integer |
None. |
MenuSet |
菜单集合 |
Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "RoleId": 1, "ProfessionalCourseId": [ 1, 2 ], "MenuSet": [ 1, 2 ] }
text/html
Sample:
{"RoleId":1,"ProfessionalCourseId":[1,2],"MenuSet":[1,2]}
application/xml, text/xml
Sample:
<MenuSetDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <MenuSet xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </MenuSet> <ProfessionalCourseId xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </ProfessionalCourseId> <RoleId>1</RoleId> </MenuSetDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
设置角色菜单
JsonRtnDtoOfBooleanName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": true }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":true}
application/xml, text/xml
Sample:
<JsonRtnDtoOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Data>true</Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfboolean>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":true});