feat(private-api): support upload cover
This commit is contained in:
@@ -28,7 +28,7 @@ async def upload_avatar(
|
||||
):
|
||||
"""上传用户头像
|
||||
|
||||
接收 Base64 编码的图片数据,验证图片格式和大小后存储到头像目录,并更新用户的头像 URL
|
||||
接收图片数据,验证图片格式和大小后存储到存储服务,并更新用户的头像 URL
|
||||
|
||||
限制条件:
|
||||
- 支持的图片格式: PNG、JPEG、GIF
|
||||
|
||||
Reference in New Issue
Block a user