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

This commit is contained in:
2023-08-23 11:11:15 +08:00
parent 0ef80c8816
commit 1bb276939a
4 changed files with 13 additions and 5 deletions

View File

@@ -28,6 +28,7 @@ class BodyRecordsOut(Schema):
class BodyRecordChartIn(Schema):
current_date = fields.String(required=True)
period = fields.String()
user_id = fields.String()
class BodyRecordChartNestedOut(Schema):

View File

@@ -8,6 +8,10 @@ class UserInfoIn(Schema):
is_hidden_weight = Boolean()
class UserIdIn(Schema):
user_id = String()
class UserInfoOut(Schema):
user_id = String(attribute='_id')
nickname = String()