dingxin_toolbox
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
779 B

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