获取角色表集合

URL地址:api/App/Roles/GetRoles

请求方式:GET

传递参数

None.

传递对象

RolesQuery (检索条件对象)
名   称描   述参数类型附加信息
IdQuery

integer

None.

RoleCodeQuery

角色编码

string

None.

RoleNameQuery

角色名称

string

None.

DescriptionQuery

描述

string

None.

CreationDateQuery

创建时间

date

None.

application/json, text/json

Sample:
{
  "IdQuery": 1,
  "RoleCodeQuery": "sample string 2",
  "RoleNameQuery": "sample string 3",
  "DescriptionQuery": "sample string 4",
  "CreationDateQuery": "2021-03-08T16:36:13.1320176+08:00"
}

application/xml, text/xml

Sample:
<RolesQuery xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WeChat.Api.Models">
  <CreationDateQuery>2021-03-08T16:36:13.1320176+08:00</CreationDateQuery>
  <DescriptionQuery>sample string 4</DescriptionQuery>
  <IdQuery>1</IdQuery>
  <RoleCodeQuery>sample string 2</RoleCodeQuery>
  <RoleNameQuery>sample string 3</RoleNameQuery>
</RolesQuery>

application/x-www-form-urlencoded

Sample:

Sample not available.

返回对象

HttpResultMessageOfIListOfRolesEntity (角色表集合)
名   称描   述参数类型附加信息
StatusCode

HttpStatusCode

None.

Errors

Dictionary of string [key] and string [value]

None.

Msg

string

None.

message

string

None.

Result

Collection of RolesEntity

None.

返回对象格式

application/json, text/json

Sample:
{
  "StatusCode": 100,
  "Errors": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "Msg": "sample string 1",
  "message": "sample string 2",
  "Result": [
    {
      "Id": 1,
      "RoleCode": "sample string 2",
      "RoleName": "sample string 3",
      "Description": "sample string 4",
      "CreationDate": "2021-03-08T16:36:13.1320176+08:00"
    },
    {
      "Id": 1,
      "RoleCode": "sample string 2",
      "RoleName": "sample string 3",
      "Description": "sample string 4",
      "CreationDate": "2021-03-08T16:36:13.1320176+08:00"
    }
  ]
}

application/xml, text/xml

Sample:
<HttpResultMessageOfArrayOfRolesEntityj2mLa_SCg xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WeChat.Api.Models">
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Errors>
  <Msg>sample string 1</Msg>
  <Result>
    <RolesEntity>
      <CreationDate>2021-03-08T16:36:13.1320176+08:00</CreationDate>
      <Description>sample string 4</Description>
      <Id>1</Id>
      <RoleCode>sample string 2</RoleCode>
      <RoleName>sample string 3</RoleName>
    </RolesEntity>
    <RolesEntity>
      <CreationDate>2021-03-08T16:36:13.1320176+08:00</CreationDate>
      <Description>sample string 4</Description>
      <Id>1</Id>
      <RoleCode>sample string 2</RoleCode>
      <RoleName>sample string 3</RoleName>
    </RolesEntity>
  </Result>
  <StatusCode>Continue</StatusCode>
  <message>sample string 2</message>
</HttpResultMessageOfArrayOfRolesEntityj2mLa_SCg>