GET api/menu/getmenubyuserid?userId={userId}

加载用户菜单

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

integer

Required

Body Parameters

None.

Response Information

Resource Description

加载用户菜单

JsonRtnDtoOfListOfMenuPermissionDto
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

Collection of MenuPermissionDto

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": [
    {
      "MenuId": 1,
      "PermissionOrigin": 1
    },
    {
      "MenuId": 1,
      "PermissionOrigin": 1
    }
  ]
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":[{"MenuId":1,"PermissionOrigin":1},{"MenuId":1,"PermissionOrigin":1}]}

application/xml, text/xml

Sample:
<JsonRtnDtoOfArrayOfMenuPermissionDtov3CTEUQJ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Data>
    <MenuPermissionDto>
      <MenuId>1</MenuId>
      <PermissionOrigin>角色</PermissionOrigin>
    </MenuPermissionDto>
    <MenuPermissionDto>
      <MenuId>1</MenuId>
      <PermissionOrigin>角色</PermissionOrigin>
    </MenuPermissionDto>
  </Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfArrayOfMenuPermissionDtov3CTEUQJ>

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":[{"MenuId":1,"PermissionOrigin":1},{"MenuId":1,"PermissionOrigin":1}]});