()
return jsonify({'msg': '删除成功', 'status': 1})
删除用户
删除用户
删除用户
def del_user():
    """ 删除用户 """
    data = request.json
    ids = data.get('id')
    _edit = User.query.filter_by(id=ids).first()
    db.session.delete(_edit)
    db.session.commit()
    return jsonify({'msg': '删除成功', 'status': 1})
def del_user ( ) : data = request . json ids = data . get ( 'id' ) _edit = User . query . filter_by ( id = ids ) . first ( ) db . session . delete ( _edit ) db . session . commit ( ) return jsonify ( { 'msg' : '删除成功', 'statu s : 1})