新建 CooperationMind
This commit is contained in:
@@ -4,6 +4,7 @@ from rest_framework.response import Response
|
||||
from server.models import *
|
||||
from datetime import datetime as dt
|
||||
from rest_framework.generics import GenericAPIView
|
||||
from server.util import build_response
|
||||
|
||||
|
||||
def list(request):
|
||||
@@ -24,6 +25,11 @@ class JsMindLogView(GenericAPIView):
|
||||
def get(self, request):
|
||||
pass
|
||||
|
||||
def post(self, request):
|
||||
coop_mind_name = request.data.get('mind_name')
|
||||
CooperationMind(coop_mind_name=coop_mind_name, client_id='', snapshot_log_id=-1, creator=-1).save()
|
||||
return build_response()
|
||||
|
||||
|
||||
# Create your views here.
|
||||
class JsMindCallbackView(APIView):
|
||||
|
||||
Reference in New Issue
Block a user