From 82258e8386fb57a41383adccb34e9a5af39c75c5 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Tue, 19 Sep 2023 11:34:28 +0800 Subject: [PATCH] feat: diet schema add fields --- app/api/v1/schema/diet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/api/v1/schema/diet.py b/app/api/v1/schema/diet.py index 905aef3..e898e66 100644 --- a/app/api/v1/schema/diet.py +++ b/app/api/v1/schema/diet.py @@ -12,6 +12,8 @@ class DietRecordOut(Schema): category = fields.String() diet_image_id = fields.String() diet_image_url = fields.URL() + heart_count = fields.Integer() + comment_count = fields.Integer() create_time = fields.String() update_time = fields.String(allow_none=True)