GET api/role/search?pageSize={pageSize}&pageIndex={pageIndex}&key={key}&sort={sort}&pid={pid}

角色检索

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pageSize

每页条数

integer

Default value is 10

pageIndex

页码

integer

Default value is 1

key

关键字

string

Default value is

sort

按时间升序降序(true:降序)

boolean

Default value is True

pid

integer

Default value is -1

Body Parameters

None.

Response Information

Resource Description

角色检索

JsonRtnDtoOfPageResultOfRoles
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

PageResultOfRoles

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": {
    "Value": [
      {
        "RolesID": 1,
        "RolesName": "sample string 2",
        "Remark": "sample string 3",
        "EstablishDate": "2024-09-25T00:10:00.7965474+08:00",
        "Inlay": true,
        "IsSystem": true,
        "Pid": 7
      },
      {
        "RolesID": 1,
        "RolesName": "sample string 2",
        "Remark": "sample string 3",
        "EstablishDate": "2024-09-25T00:10:00.7965474+08:00",
        "Inlay": true,
        "IsSystem": true,
        "Pid": 7
      }
    ],
    "PageIndex": 1,
    "PageSize": 2,
    "total": 3,
    "TotalPages": 4,
    "HasPreviousPage": false,
    "HasNextPage": true
  }
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":{"Value":[{"RolesID":1,"RolesName":"sample string 2","Remark":"sample string 3","EstablishDate":"2024-09-25T00:10:00.7965474+08:00","Inlay":true,"IsSystem":true,"Pid":7},{"RolesID":1,"RolesName":"sample string 2","Remark":"sample string 3","EstablishDate":"2024-09-25T00:10:00.7965474+08:00","Inlay":true,"IsSystem":true,"Pid":7}],"PageIndex":1,"PageSize":2,"total":3,"TotalPages":4,"HasPreviousPage":false,"HasNextPage":true}}

application/xml, text/xml

Sample:
<JsonRtnDtoOfPageResultOfRolesmEDjlcEGS_STz13wm 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.Infrastructure">
    <d2p1:PageIndex>1</d2p1:PageIndex>
    <d2p1:PageSize>2</d2p1:PageSize>
    <d2p1:TotalPages>4</d2p1:TotalPages>
    <d2p1:total>3</d2p1:total>
    <d2p1:Value xmlns:d3p1="http://schemas.datacontract.org/2004/07/BJ.Data">
      <d3p1:Roles>
        <d3p1:EstablishDate>2024-09-25T00:10:00.7965474+08:00</d3p1:EstablishDate>
        <d3p1:Inlay>true</d3p1:Inlay>
        <d3p1:IsSystem>true</d3p1:IsSystem>
        <d3p1:Pid>7</d3p1:Pid>
        <d3p1:Remark>sample string 3</d3p1:Remark>
        <d3p1:RolesID>1</d3p1:RolesID>
        <d3p1:RolesName>sample string 2</d3p1:RolesName>
      </d3p1:Roles>
      <d3p1:Roles>
        <d3p1:EstablishDate>2024-09-25T00:10:00.7965474+08:00</d3p1:EstablishDate>
        <d3p1:Inlay>true</d3p1:Inlay>
        <d3p1:IsSystem>true</d3p1:IsSystem>
        <d3p1:Pid>7</d3p1:Pid>
        <d3p1:Remark>sample string 3</d3p1:Remark>
        <d3p1:RolesID>1</d3p1:RolesID>
        <d3p1:RolesName>sample string 2</d3p1:RolesName>
      </d3p1:Roles>
    </d2p1:Value>
  </Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfPageResultOfRolesmEDjlcEGS_STz13wm>

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

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"Value":[{"RolesID":1,"RolesName":"sample string 2","Remark":"sample string 3","EstablishDate":"2024-09-25T00:10:00.7965474+08:00","Inlay":true,"IsSystem":true,"Pid":7},{"RolesID":1,"RolesName":"sample string 2","Remark":"sample string 3","EstablishDate":"2024-09-25T00:10:00.7965474+08:00","Inlay":true,"IsSystem":true,"Pid":7}],"PageIndex":1,"PageSize":2,"total":3,"TotalPages":4,"HasPreviousPage":false,"HasNextPage":true}});