This commit is contained in:
chenyang
2022-06-30 16:48:42 +08:00
parent 03b914a0f0
commit c7cc3cc5c4
6 changed files with 44 additions and 10 deletions
+15
View File
@@ -0,0 +1,15 @@
from rest_framework.views import APIView
from django.http import HttpResponse
class MindUserView(APIView):
"""
用户注册
"""
def post(self, request):
data_dict = request.POST
user_name = data_dict.get('userName')
input_password = data_dict.get('inputPassword')
print('userName:%s,inputPassword:%s' % (user_name, input_password))
return HttpResponse("success")