From 94f3b7cf7dda74dbc5dbc6c14836508f99953514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=89=8D=E6=98=8E?= <909355014@qq.com> Date: Wed, 14 Sep 2022 11:51:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E8=84=B8=E5=BA=93=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E5=88=B0=E6=89=80=E6=9C=89=E6=99=BA=E8=83=BD=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/third/views.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/third/views.py b/apps/third/views.py index 51a02b86..534f9c35 100755 --- a/apps/third/views.py +++ b/apps/third/views.py @@ -367,3 +367,14 @@ class DhCommonViewSet(CreateModelMixin, CustomGenericViewSet): data = request.data dispatch_dahua_event(data=data) return Response() + + @action(methods=['post'], detail=False, + authentication_classes=[], permission_classes=[], + serializer_class=serializers.Serializer, logging_methods=[]) # 日志 + def face_deploy(self, request, pk=None): + """人脸库同步到所有智能设备 + + 人脸库同步到所有智能设备 + """ + dhClient.face_deploy() + return Response()