[]
添加角色。
Request Body
Type: application/json-patch+json
Example:
{
"RoleName": "Intern"
}
Type: application/json
Example:
{
"RoleName": "Intern"
}
Type: text/json
Example:
{
"RoleName": "Intern"
}
Type: application/*+json
Example:
{
"RoleName": "Intern"
}
Responses
[200] OK
Type: [text/plain]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
Type: [application/json]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
Type: [text/json]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
更新角色名。
Request Body
Type: application/json-patch+json
Example:
{
"OldRoleName": "Intern",
"NewRoleName": "Newbie"
}
Type: application/json
Example:
{
"OldRoleName": "Intern",
"NewRoleName": "Newbie"
}
Type: text/json
Example:
{
"OldRoleName": "Intern",
"NewRoleName": "Newbie"
}
Type: application/*+json
Example:
{
"OldRoleName": "Intern",
"NewRoleName": "Newbie"
}
Responses
[200] OK
Type: [text/plain]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
Type: [application/json]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
Type: [text/json]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
删除角色。
Request Body
Type: application/json-patch+json
Example:
{
"RoleName": "Intern"
}
Type: application/json
Example:
{
"RoleName": "Intern"
}
Type: text/json
Example:
{
"RoleName": "Intern"
}
Type: application/*+json
Example:
{
"RoleName": "Intern"
}
Responses
[200] OK
Type: [text/plain]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
Type: [application/json]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
Type: [text/json]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
给指定的角色添加普通用户。
Request Body
Type: application/json-patch+json
Example:
{
"Users": [
"Bob",
"Andy"
],
"RoleName": "Developer"
}
Type: application/json
Example:
{
"Users": [
"Bob",
"Andy"
],
"RoleName": "Developer"
}
Type: text/json
Example:
{
"Users": [
"Bob",
"Andy"
],
"RoleName": "Developer"
}
Type: application/*+json
Example:
{
"Users": [
"Bob",
"Andy"
],
"RoleName": "Developer"
}
Responses
[200] OK
Type: [text/plain]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
Type: [application/json]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
Type: [text/json]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
给指定的角色添加域用户。
Request Body
Type: application/json-patch+json
Example:
{
"Users": [
"Bob",
"Andy"
],
"RoleName": "Developer"
}
Type: application/json
Example:
{
"Users": [
"Bob",
"Andy"
],
"RoleName": "Developer"
}
Type: text/json
Example:
{
"Users": [
"Bob",
"Andy"
],
"RoleName": "Developer"
}
Type: application/*+json
Example:
{
"Users": [
"Bob",
"Andy"
],
"RoleName": "Developer"
}
Responses
[200] OK
Type: [text/plain]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
Type: [application/json]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
Type: [text/json]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
从指定的角色移除普通用户。
Request Body
Type: application/json-patch+json
Example:
{
"Users": [
"Bob",
"Andy"
],
"RoleName": "Developer"
}
Type: application/json
Example:
{
"Users": [
"Bob",
"Andy"
],
"RoleName": "Developer"
}
Type: text/json
Example:
{
"Users": [
"Bob",
"Andy"
],
"RoleName": "Developer"
}
Type: application/*+json
Example:
{
"Users": [
"Bob",
"Andy"
],
"RoleName": "Developer"
}
Responses
[200] OK
Type: [text/plain]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
Type: [application/json]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
Type: [text/json]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
从指定的角色移除域用户。
Request Body
Type: application/json-patch+json
Example:
{
"Users": [
"Bob",
"Andy"
],
"RoleName": "Developer"
}
Type: application/json
Example:
{
"Users": [
"Bob",
"Andy"
],
"RoleName": "Developer"
}
Type: text/json
Example:
{
"Users": [
"Bob",
"Andy"
],
"RoleName": "Developer"
}
Type: application/*+json
Example:
{
"Users": [
"Bob",
"Andy"
],
"RoleName": "Developer"
}
Responses
[200] OK
Type: [text/plain]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
Type: [application/json]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
Type: [text/json]
Example:
{
"Result": false,
"Message": "Error message.",
"ErrorCode": 0,
"MessageProperties": null
}
获取所有角色。
Responses
[200] OK
Type: [text/plain]
Example:
{
"Roles": [
"Intern",
"Developer",
"RoleA",
"RoleB",
"RoleC"
],
"Result": false,
"Message": null,
"ErrorCode": 0,
"MessageProperties": null
}
Type: [application/json]
Example:
{
"Roles": [
"Intern",
"Developer",
"RoleA",
"RoleB",
"RoleC"
],
"Result": false,
"Message": null,
"ErrorCode": 0,
"MessageProperties": null
}
Type: [text/json]
Example:
{
"Roles": [
"Intern",
"Developer",
"RoleA",
"RoleB",
"RoleC"
],
"Result": false,
"Message": null,
"ErrorCode": 0,
"MessageProperties": null
}
请求结果。
属性名 | 类型 | 说明 | Example |
---|---|---|---|
Result | Boolean | 请求是否成功。 | |
MessageNullable | string | 请求返回的信息。 | |
ErrorCode | int32 | 请求返回的错误码。 | |
MessagePropertiesNullable | Array |
请求返回信息中的数据。 |
角色相关请求中的参数。
属性名 | 类型 | 说明 | Example |
---|---|---|---|
RoleNameNullable | string | 角色名。 |
更新角色请求中的参数。
属性名 | 类型 | 说明 | Example |
---|---|---|---|
OldRoleNameNullable | string | 旧的角色名。 | |
NewRoleNameNullable | string | 新的角色名。 |
给指定角色添加用户请求中的参数。
属性名 | 类型 | 说明 | Example |
---|---|---|---|
UsersNullable | Array<string> |
用户列表。 | |
RoleNameNullable | string | 指定角色的名称。 |
请求返回的角色。
属性名 | 类型 | 说明 | Example |
---|---|---|---|
RolesNullable | Array<string> |
角色列表。 | |
Result | Boolean | 请求是否成功。 | |
MessageNullable | string | 请求返回的信息。 | |
ErrorCode | int32 | 请求返回的错误码。 | |
MessagePropertiesNullable | Array |
请求返回信息中的数据。 |