POST api/Role/addRole
Request Information
URI Parameters
None.
Body Parameters
EntSysRole| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| RoleId | string |
None. |
|
| RoleNameCn | string |
None. |
|
| Status | string |
None. |
|
| CreateBy | string |
None. |
|
| CreateTime | date |
None. |
|
| Descr | string |
None. |
|
| Usd1 | string |
None. |
|
| RoleNameEn | string |
None. |
|
| OrganizationCode | string |
None. |
|
| RoleType | string |
None. |
|
| PageSize | integer |
None. |
|
| PageIndex | integer |
None. |
|
| TotalCount | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"roleId": "sample string 2",
"roleNameCn": "sample string 3",
"status": "sample string 4",
"createBy": "sample string 5",
"createTime": "2025-10-30 22:57:15",
"descr": "sample string 6",
"usd1": "sample string 7",
"roleNameEn": "sample string 8",
"organizationCode": "sample string 9",
"roleType": "sample string 10",
"pageSize": 11,
"pageIndex": 12,
"totalCount": 13
}
application/xml, text/xml
Sample:
<EntSysRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Epass.Model"> <PageIndex>12</PageIndex> <PageSize>11</PageSize> <TotalCount>13</TotalCount> <CreateBy>sample string 5</CreateBy> <CreateTime>2025-10-30T22:57:15.4010608+08:00</CreateTime> <Descr>sample string 6</Descr> <Id>1</Id> <OrganizationCode>sample string 9</OrganizationCode> <RoleId>sample string 2</RoleId> <RoleNameCn>sample string 3</RoleNameCn> <RoleNameEn>sample string 8</RoleNameEn> <RoleType>sample string 10</RoleType> <Status>sample string 4</Status> <Usd1>sample string 7</Usd1> </EntSysRole>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ReturnResultOfInt32| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | integer |
None. |
|
| Success | boolean |
None. |
|
| Data | integer |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": 1,
"success": true,
"data": 3,
"message": "sample string 4"
}
application/xml, text/xml
Sample:
<ReturnResultOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Epass.Model"> <Data>3</Data> <Message>sample string 4</Message> <Status>1</Status> <Success>true</Success> </ReturnResultOfint>