fix: 更新授权服务,开放接口yaml文档
diff --git a/poa-api-docs/api-docs/user-authorization-service-poa.v1.yaml b/poa-api-docs/api-docs/user-authorization-service-poa.v1.yaml
index c1be9d3..aa27cdf 100644
--- a/poa-api-docs/api-docs/user-authorization-service-poa.v1.yaml
+++ b/poa-api-docs/api-docs/user-authorization-service-poa.v1.yaml
@@ -142,67 +142,6 @@
default:
$ref: '#/components/responses/DefaultErrorResponse'
- '/application/{applicationId}/roles/accounts':
- post:
- summary: 获取应用下的多个角色的用户帐号
- description: 获取应用下的多个角色的用户帐号
- operationId: loadAccountsByApplicationRole
- tags:
- - Role
- security:
- - oauth2:
- - "authz:v1:readRole"
- parameters:
- - name: applicationId
- in: path
- required: true
- description: 应用标识
- schema:
- type: string
- - name: loadAll
- in: query
- required: false
- description: 分页-是否返回所有(当为 true 时,不分页,参数 pageIndex、pageSize 无效)
- schema:
- type: boolean
- default: false
- - name: pageIndex
- in: query
- required: false
- description: 分页-页码
- schema:
- type: integer
- format: int32
- default: 0
- - name: pageSize
- in: query
- required: false
- description: 分页-每页记录数
- schema:
- type: integer
- format: int32
- default: 1000
- requestBody:
- description: 角色ID
- required: true
- content:
- application/json:
- schema:
- type: array
- items:
- title: 角色ID
- type: string
- responses:
- '200':
- description: 用户的帐号ID
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApplicationRolesAccountsResponse'
- default:
- $ref: '#/components/responses/DefaultErrorResponse'
-
-
'/application/{applicationId}/role/{rolecode}/groups':
get:
summary: 获取应用下的一个角色关联的用户组
@@ -243,6 +182,123 @@
$ref: '#/components/responses/DefaultErrorResponse'
+ '/application/{applicationId}/externalRole/{externalId}/accounts':
+ get:
+ summary: 获取应用下的一个角色的用户帐号
+ description: 获取应用下的一个角色的用户帐号
+ operationId: loadAccountsByApplicationExternalRole
+ tags:
+ - Role
+ security:
+ - oauth2:
+ - "authz:v1:readRole"
+ parameters:
+ - name: applicationId
+ in: path
+ required: true
+ description: 应用标识
+ schema:
+ type: string
+ - name: externalId
+ in: path
+ required: true
+ description: 应用内角色ID
+ schema:
+ type: string
+ - name: loadAll
+ in: query
+ required: false
+ description: 分页-是否返回所有(当为 true 时,不分页,参数 pageIndex、pageSize 无效)
+ schema:
+ type: boolean
+ default: false
+ - name: pageIndex
+ in: query
+ required: false
+ description: 分页-页码
+ schema:
+ type: integer
+ format: int32
+ default: 0
+ - name: pageSize
+ in: query
+ required: false
+ description: 分页-每页记录数
+ schema:
+ type: integer
+ format: int32
+ default: 1000
+ responses:
+ '200':
+ description: 角色关联的帐号ID
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ApplicationExternalRoleAccountsResponse'
+ default:
+ $ref: '#/components/responses/DefaultErrorResponse'
+
+ '/application/{applicationId}/externalRoles/accounts':
+ post:
+ summary: 获取应用下的多个角色的用户帐号
+ description: 获取应用下的多个角色的用户帐号
+ operationId: loadAccountsByApplicationExternalRoles
+ tags:
+ - Role
+ security:
+ - oauth2:
+ - "authz:v1:readRole"
+ parameters:
+ - name: applicationId
+ in: path
+ required: true
+ description: 应用标识
+ schema:
+ type: string
+ - name: loadAll
+ in: query
+ required: false
+ description: 分页-是否返回所有(当为 true 时,不分页,参数 pageIndex、pageSize 无效)
+ schema:
+ type: boolean
+ default: false
+ - name: pageIndex
+ in: query
+ required: false
+ description: 分页-页码
+ schema:
+ type: integer
+ format: int32
+ default: 0
+ - name: pageSize
+ in: query
+ required: false
+ description: 分页-每页记录数
+ schema:
+ type: integer
+ format: int32
+ default: 1000
+ requestBody:
+ description: 应用内角色ID列表
+ required: true
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ title: 应用内角色ID
+ type: string
+ responses:
+ '200':
+ description: 角色关联的帐号ID
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ApplicationExternalRolesAccountsResponse'
+ default:
+ $ref: '#/components/responses/DefaultErrorResponse'
+
+
components:
# Security Schemes
@@ -512,34 +568,6 @@
$ref: '#/components/schemas/Role'
- ApplicationRolesAccountsResponse:
- allOf:
- - $ref: '#/components/schemas/DefaultApiResponse'
- - type: object
- title: 响应数据
- properties:
- data:
- allOf:
- - type: object
- title: 数据
- properties:
- applicationId:
- title: 应用标识
- type: string
- roleIds:
- title: 角色IDs
- type: array
- items:
- title: 角色ID
- type: string
- accounts:
- title: 用户帐号数据
- type: array
- items:
- title: 用户的帐号ID
- type: string
-
-
ApplicationRoleGroupsResponse:
allOf:
- $ref: '#/components/schemas/DefaultApiResponse'
@@ -569,3 +597,54 @@
items:
$ref: '#/components/schemas/GroupModel'
+
+ ApplicationExternalRoleAccountsResponse:
+ allOf:
+ - $ref: '#/components/schemas/DefaultApiResponse'
+ - type: object
+ title: 响应数据
+ properties:
+ data:
+ allOf:
+ - type: object
+ title: 数据
+ properties:
+ applicationId:
+ title: 应用标识
+ type: string
+ externalId:
+ title: 应用内角色ID
+ type: string
+ accounts:
+ title: 用户帐号数据
+ type: array
+ items:
+ title: 用户的帐号ID
+ type: string
+
+ ApplicationExternalRolesAccountsResponse:
+ allOf:
+ - $ref: '#/components/schemas/DefaultApiResponse'
+ - type: object
+ title: 响应数据
+ properties:
+ data:
+ allOf:
+ - type: object
+ title: 数据
+ properties:
+ applicationId:
+ title: 应用标识
+ type: string
+ externalIds:
+ title: 应用内角色IDs
+ type: array
+ items:
+ title: 角色ID
+ type: string
+ accounts:
+ title: 用户帐号数据
+ type: array
+ items:
+ title: 用户的帐号ID
+ type: string