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.

18 lines
537 B

1 year ago
from rest_framework import viewsets, permissions
1 year ago
from update.models import Cinema
from update.serializers import CinemaSerializer
1 year ago
1 year ago
class CinemaViewSet(viewsets.ModelViewSet):
# 接口文档的中文注释
"""
create: 添加测试影院
list: 获取测试影院列表
retrieve: 获取某个影院的信息
update: 更新某个影院的信息
delete: 删除指定影院
"""
1 year ago
queryset = Cinema.objects.all()
serializer_class = CinemaSerializer
1 year ago
permission_classes = (permissions.IsAuthenticated,)