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