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

This commit is contained in:
2023-08-23 10:57:14 +08:00
parent d039cc69e1
commit 0ef80c8816
2 changed files with 12 additions and 3 deletions

View File

@@ -1,14 +1,17 @@
from apiflask import Schema
from apiflask.fields import String, Float, URL
from apiflask.fields import String, Float, URL, Boolean
class UserInfoIn(Schema):
nickname = String()
height = Float()
is_hidden_weight = Boolean()
class UserInfoOut(Schema):
user_id = String(attribute='_id')
nickname = String()
avatar_id = String()
avatar_url = URL()
height = Float(allow_nan=True)
height = Float(allow_nan=True)
is_hidden_weight = Boolean()