feat: add bodyinfo field age
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user