@csrf_exempt
def delHostUser(request):
    hostUserId = request.POST['hostUserId']
    if ((hostUserId == '') or (hostUserId is None)):
        result = {'status': 3, 'msg': '未选中任何记录!', 'data': ''}
        return HttpResponse(json.dumps(result), content_type='application/json')
    else:
        try:
            delResult = hostUser.objects.filter(id=hostUserId).delete()
            print(delResult)
            logger.error(delResult)
            result = {'status': 1, 'msg': '删除成功!', 'data': delResult}
            return HttpResponse(json.dumps(result), content_type='application/json')
        except Exception as e:
            print(e)
            logger.error(e)
            result = {'status': 2, 'msg': '删除失败!', 'data': ''}
            return HttpResponse(json.dumps(result), content_type='application/json')
@csrf_exempt
def delHostUser(request):
    hostUserId = request.POST['hostUserId']
    if ((hostUserId == ) or (hostUserId is None)):
        result = {'status': 3, 'msg': '未选中任何记录!', 'data': }
        return HttpResponse(json.dumps(result), content_type='application/json')
    else:
        try:
            delResult = hostUser.objects.filter(id=hostUserId).delete()
            print(delResult)
            logger.error(delResult)
            result = {'status': 1, 'msg': '删除成功!', 'data': delResult}
            return HttpResponse(json.dumps(result), content_type='application/json')
        except Exception as e:
            print(e)
            logger.error(e)
            result = {'status': 2, 'msg': '删除失败!', 'data': }
            return HttpResponse(json.dumps(result), content_type='application/json')