From 53f0df91d7090ac9afdda91f7d5c53ee69cefb20 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Tue, 19 Sep 2023 17:34:43 +0800 Subject: [PATCH] feat: add api of today brief 2 --- app/api/v1/interaction.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/api/v1/interaction.py b/app/api/v1/interaction.py index f52e1f0..ec8fa0f 100644 --- a/app/api/v1/interaction.py +++ b/app/api/v1/interaction.py @@ -28,13 +28,13 @@ def add_interaction(json_data): return {'msg': 'add interaction successfully'} -@interaction.get('/today/brief') +@interaction.get('/brief') @interaction.doc(summary='查询食物记录列表', description='查询食物记录列表') @interaction.input(InteractionTodayIn, location='query') @interaction.output(InteractionTodayOut) @login_required def get_interaction_today_brief(query_data): current_date = query_data.get('current_date', None) - results = rpc.interaction.get_today_brief(session['user_id'], - current_date=current_date) - return results \ No newline at end of file + results = rpc.interaction.get_interaction_brief(session['user_id'], + current_date=current_date) + return results