update
This commit is contained in:
@@ -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")
|
||||
Reference in New Issue
Block a user