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()