feat: add api of get_interaction_list
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-09-20 11:59:51 +08:00
parent 53f0df91d7
commit 5bc9e25c7a
2 changed files with 38 additions and 8 deletions

View File

@@ -9,11 +9,27 @@ class InteractionIn(Schema):
comment = fields.String(allow_none=True)
class InteractionTodayIn(Schema):
class InteractionBriefIn(Schema):
current_date = fields.String()
class InteractionTodayOut(Schema):
class InteractionListIn(Schema):
current_date = fields.String()
category = fields.Integer(required=True)
class InteractionBriefOut(Schema):
fire_count = fields.Integer()
heart_count = fields.Integer()
comment_count = fields.Integer()
comment_count = fields.Integer()
class InteractionOut(Schema):
nickname = fields.String()
avatar_url = fields.String()
comment = fields.String()
create_time = fields.String()
class InteractionListOut(Schema):
interactions = fields.List(fields.Nested(InteractionOut))