feat: add apis of user info
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-08-15 17:49:05 +08:00
parent 72bee4d3e1
commit d322c9488a
5 changed files with 83 additions and 2 deletions

14
app/api/v1/schema/user.py Normal file
View File

@@ -0,0 +1,14 @@
from apiflask import Schema
from apiflask.fields import String, URL, Float
class UserInfoIn(Schema):
nickname = String()
avatar_url = URL()
height = Float()
class UserInfoOut(Schema):
nickname = String()
avatar_url = URL()
height = Float()