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

This commit is contained in:
2023-09-01 15:59:19 +08:00
parent 5a10303133
commit 721a5f1aa8
2 changed files with 8 additions and 3 deletions

View File

@@ -1,10 +1,11 @@
from apiflask import Schema
from apiflask.fields import String, Float, URL, Boolean
from apiflask.fields import String, Float, URL, Boolean, Integer
class UserInfoIn(Schema):
nickname = String()
gender = String()
age = Integer()
height = Float()
is_hidden_weight = Boolean()
@@ -17,6 +18,7 @@ class UserInfoOut(Schema):
user_id = String(attribute='_id')
nickname = String()
gender = String()
age = Integer()
avatar_id = String()
avatar_url = URL()
height = Float(allow_nan=True)