refactor(user): refactor api
This commit is contained in:
parent
bf3233f7b8
commit
5c14d329bd
1 changed files with 15 additions and 8 deletions
|
@ -162,6 +162,18 @@ paths:
|
|||
content: { }
|
||||
components:
|
||||
schemas:
|
||||
Pagination:
|
||||
type: object
|
||||
required:
|
||||
- page
|
||||
- total
|
||||
properties:
|
||||
page:
|
||||
type: integer
|
||||
format: int32
|
||||
total:
|
||||
type: integer
|
||||
format: int32
|
||||
CreateUserRequest:
|
||||
type: object
|
||||
required:
|
||||
|
@ -260,19 +272,14 @@ components:
|
|||
type: object
|
||||
required:
|
||||
- users
|
||||
- page
|
||||
- max_page
|
||||
- pagination
|
||||
properties:
|
||||
users:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/User'
|
||||
page:
|
||||
type: integer
|
||||
format: int32
|
||||
max_page:
|
||||
type: integer
|
||||
format: int32
|
||||
pagination:
|
||||
$ref: '#/components/schemas/Pagination'
|
||||
securitySchemes:
|
||||
bearerAuth:
|
||||
type: http
|
||||
|
|
Loading…
Add table
Reference in a new issue