from django.shortcuts import render from django.http.response import JsonResponse # Create your views here. # 1、票房数据上报接口 POST /report/reportTicket def report_ticket(request): if request.method == 'POST': print(request.headers) print(request.body) return JsonResponse({'status': 'success'}) # 数据下载 # 1、影片信息下载接口 GET /data/downloadFilmInfo # 2、影院信息下载接口 GET /data/getCinemaInfo def get_cinema_info(request): print(request.headers) print(request.body) if request.method == 'GET': print('getCinemaInfo') print(request.headers) print(request.body) return JsonResponse({'status': 'success'}) # 3、影厅信息下载接口 GET /data/getScreenInfo