mirror of
https://github.com/huge-dream/django-vue3-admin.git
synced 2026-09-28 23:27:08 +00:00
24 lines
469 B
Python
24 lines
469 B
Python
from rest_framework.views import APIView
|
|
from django.shortcuts import render
|
|
|
|
|
|
class PrivacyView(APIView):
|
|
"""
|
|
后台隐私政策
|
|
"""
|
|
permission_classes = []
|
|
|
|
def get(self, request, *args, **kwargs):
|
|
return render(request, 'privacy.html')
|
|
|
|
|
|
|
|
class TermsServiceView(APIView):
|
|
"""
|
|
后台服务条款
|
|
"""
|
|
permission_classes = []
|
|
|
|
def get(self, request, *args, **kwargs):
|
|
return render(request, 'terms_service.html')
|