feat: add gender field
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-08-26 12:40:23 +08:00
parent c34f1a4fed
commit 5a10303133
2 changed files with 8 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ from apiflask.fields import String, Float, URL, Boolean
class UserInfoIn(Schema):
nickname = String()
gender = String()
height = Float()
is_hidden_weight = Boolean()
@@ -15,6 +16,7 @@ class UserIdIn(Schema):
class UserInfoOut(Schema):
user_id = String(attribute='_id')
nickname = String()
gender = String()
avatar_id = String()
avatar_url = URL()
height = Float(allow_nan=True)