GET api/role/get?id={id}

获取角色

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

获取角色

JsonRtnDtoOfRoles
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

Roles

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": {
    "RolesID": 1,
    "RolesName": "sample string 2",
    "Remark": "sample string 3",
    "EstablishDate": "2024-09-25T00:10:38.3744961+08:00",
    "Inlay": true,
    "IsSystem": true,
    "Pid": 7
  }
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":{"RolesID":1,"RolesName":"sample string 2","Remark":"sample string 3","EstablishDate":"2024-09-25T00:10:38.3744961+08:00","Inlay":true,"IsSystem":true,"Pid":7}}

application/xml, text/xml

Sample:
<JsonRtnDtoOfRolesmEDjlcEG xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BJ.Data">
    <d2p1:EstablishDate>2024-09-25T00:10:38.3744961+08:00</d2p1:EstablishDate>
    <d2p1:Inlay>true</d2p1:Inlay>
    <d2p1:IsSystem>true</d2p1:IsSystem>
    <d2p1:Pid>7</d2p1:Pid>
    <d2p1:Remark>sample string 3</d2p1:Remark>
    <d2p1:RolesID>1</d2p1:RolesID>
    <d2p1:RolesName>sample string 2</d2p1:RolesName>
  </Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfRolesmEDjlcEG>

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

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"RolesID":1,"RolesName":"sample string 2","Remark":"sample string 3","EstablishDate":"2024-09-25T00:10:38.3744961+08:00","Inlay":true,"IsSystem":true,"Pid":7}});