feat: 添加事件喇叭播放测试api
This commit is contained in:
parent
a11ce128be
commit
598cadc4bb
|
@ -469,6 +469,13 @@ class TestViewSet(CustomGenericViewSet):
|
|||
v_num=2)
|
||||
return Response()
|
||||
|
||||
@action(methods=['post'], detail=False, serializer_class=Serializer)
|
||||
def test_event_speak(self, request, pk=None):
|
||||
from apps.ecm.models import Event
|
||||
from apps.ecm.service import save_voice_and_speak
|
||||
save_voice_and_speak(Event.objects.get(id=request.data['event']))
|
||||
return Response()
|
||||
|
||||
@action(methods=['post'], detail=False, serializer_class=Serializer)
|
||||
def test_not_in_place(self, request, pk=None):
|
||||
opl = request.data.get('opl')
|
||||
|
|
Loading…
Reference in New Issue