16 lines
422 B
Python
16 lines
422 B
Python
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")
|