[feature/backend] implement /users handler + switch to username + add display name + user management cli
This commit is contained in:
parent
1d712d4e6c
commit
86ab334bc9
38 changed files with 1851 additions and 506 deletions
|
@ -60,12 +60,20 @@ User:
|
|||
type: object
|
||||
required:
|
||||
- id
|
||||
- email
|
||||
- username
|
||||
- role
|
||||
- status
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
username:
|
||||
type: string
|
||||
minLength: 3
|
||||
maxLength: 32
|
||||
display_name:
|
||||
type: string
|
||||
maxLength: 64
|
||||
description: 用户显示名称
|
||||
email:
|
||||
type: string
|
||||
format: email
|
||||
|
@ -74,11 +82,13 @@ User:
|
|||
enum:
|
||||
- admin
|
||||
- editor
|
||||
- contributor
|
||||
status:
|
||||
type: string
|
||||
enum:
|
||||
- active
|
||||
- inactive
|
||||
- banned
|
||||
created_at:
|
||||
type: string
|
||||
format: date-time
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue