feat: add api of today brief 2
continuous-integration/drone/push Build is passing Details

This commit is contained in:
BryantHe 2023-09-19 17:34:43 +08:00
parent 4214e7b797
commit 53f0df91d7
1 changed files with 4 additions and 4 deletions

View File

@ -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)
results = rpc.interaction.get_interaction_brief(session['user_id'],
current_date=current_date)
return results