feat: add api of delete one 2
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
b86ef1376e
commit
c34f1a4fed
|
@ -41,11 +41,10 @@ def get_record(record_id):
|
|||
|
||||
@record.delete('/<record_id>')
|
||||
@record.doc(summary='删除单条身体记录', description='删除单条身体记录')
|
||||
@record.input(BodyRecordIdIn, location='json')
|
||||
@login_required
|
||||
def delete_record(json_data):
|
||||
def delete_record(record_id):
|
||||
try:
|
||||
rpc.body_record.delete_one(json_data['record_id'])
|
||||
rpc.body_record.delete_one(record_id)
|
||||
except Exception as e:
|
||||
raise BodyRecordNotFound(extra_data={'error_docs': str(e)})
|
||||
return {'msg': ' delete body record success'}
|
||||
|
|
Loading…
Reference in New Issue