@csrf_exempt
def getHostDetailInfo(request):
    hostId = request.POST['hostId']
    try:
        hostObj = host.objects.get(id=hostId)
        hostJson = hostObj.toJSON()
        result = {'status': 1, 'msg': '请求成功', 'obj': hostJson}
        print(result)
        return HttpResponse(json.dumps(result), content_type='application/json')
    except Exception as e:
        print(e)
        result = {'status': 2, 'msg': ('请求失败!' + str(e)), 'data': ''}
        return HttpResponse(json.dumps(result), content_type='application/json')
@csrf_exempt
def getHostDetailInfo(request):
    hostId = request.POST['hostId']
    try:
        hostObj = host.objects.get(id=hostId)
        hostJson = hostObj.toJSON()
        result = {'status': 1, 'msg': '请求成功', 'obj': hostJson}
        print(result)
        return HttpResponse(json.dumps(result), content_type='application/json')
    except Exception as e:
        print(e)
        result = {'status': 2, 'msg': ('请求失败!' + str(e)), 'data': }
        return HttpResponse(json.dumps(result), content_type='application/json')