user_edit.py 506 B

123456789101112131415161718192021
  1. from rest_framework.views import APIView
  2. from django.http import HttpResponse
  3. class User_management(APIView):
  4. authentication_classes = []
  5. # register
  6. @staticmethod
  7. def post(request, *args, **kwargs):
  8. return HttpResponse("用户注册页面")
  9. # login
  10. @staticmethod
  11. def put(request, *args, **kwargs):
  12. return HttpResponse("用户登录页面")
  13. # user list
  14. @staticmethod
  15. def get(request, *args, **kwargs):
  16. return HttpResponse("用户列表")