feat: add gender field
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user