[feature/backend] update put /users/me endpoint, allow setting username and display name

This commit is contained in:
CDN 2025-02-21 19:57:00 +08:00
parent 1526c27b49
commit 79912925db
Signed by: CDN
GPG key ID: 0C656827F9F80080
4 changed files with 46 additions and 3 deletions

View file

@ -216,14 +216,23 @@ user_me:
schema:
type: object
properties:
username:
type: string
minLength: 3
maxLength: 32
display_name:
type: string
maxLength: 64
email:
type: string
format: email
current_password:
type: string
description: 当修改密码时必填
new_password:
type: string
minLength: 8
description: 新密码,如果要修改密码则必填
responses:
'200':
description: 用户信息更新成功