| 123456789101112131415161718192021 |
- from rest_framework.views import APIView
- from django.http import HttpResponse
- class User_management(APIView):
- authentication_classes = []
- # register
- @staticmethod
- def post(request, *args, **kwargs):
- return HttpResponse("用户注册页面")
- # login
- @staticmethod
- def put(request, *args, **kwargs):
- return HttpResponse("用户登录页面")
- # user list
- @staticmethod
- def get(request, *args, **kwargs):
- return HttpResponse("用户列表")
|