feat: add api of today brief 2
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
4214e7b797
commit
53f0df91d7
|
@ -28,13 +28,13 @@ def add_interaction(json_data):
|
||||||
return {'msg': 'add interaction successfully'}
|
return {'msg': 'add interaction successfully'}
|
||||||
|
|
||||||
|
|
||||||
@interaction.get('/today/brief')
|
@interaction.get('/brief')
|
||||||
@interaction.doc(summary='查询食物记录列表', description='查询食物记录列表')
|
@interaction.doc(summary='查询食物记录列表', description='查询食物记录列表')
|
||||||
@interaction.input(InteractionTodayIn, location='query')
|
@interaction.input(InteractionTodayIn, location='query')
|
||||||
@interaction.output(InteractionTodayOut)
|
@interaction.output(InteractionTodayOut)
|
||||||
@login_required
|
@login_required
|
||||||
def get_interaction_today_brief(query_data):
|
def get_interaction_today_brief(query_data):
|
||||||
current_date = query_data.get('current_date', None)
|
current_date = query_data.get('current_date', None)
|
||||||
results = rpc.interaction.get_today_brief(session['user_id'],
|
results = rpc.interaction.get_interaction_brief(session['user_id'],
|
||||||
current_date=current_date)
|
current_date=current_date)
|
||||||
return results
|
return results
|
Loading…
Reference in New Issue