15 lines
388 B
Python
15 lines
388 B
Python
from utils.viewset import CustomModelViewSet
|
|
from .models import MapPoint
|
|
from .serializers import MapPointSerializer
|
|
|
|
class MapPointViewSet(CustomModelViewSet):
|
|
"""
|
|
地图点位管理接口
|
|
list:查询
|
|
create:新增
|
|
update:修改
|
|
destroy:删除
|
|
"""
|
|
queryset = MapPoint.objects.all()
|
|
serializer_class = MapPointSerializer
|
|
extra_filter_backends = [] |