人脸库同步到所有智能设备

This commit is contained in:
曹前明 2022-09-14 11:51:28 +08:00
parent ebbfba94de
commit 94f3b7cf7d
1 changed files with 11 additions and 0 deletions

View File

@ -367,3 +367,14 @@ class DhCommonViewSet(CreateModelMixin, CustomGenericViewSet):
data = request.data data = request.data
dispatch_dahua_event(data=data) dispatch_dahua_event(data=data)
return Response() 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()