@swagger_auto_schema(request_body=openapi.Schema(type=openapi.TYPE_OBJECT, required=['keys'], properties={'keys': keys}), operation_summary='批量删除')
@action(methods=['delete'], detail=False)
def multiple_delete(self, request, *args, **kwargs):
    request_data = request.data
    keys = request_data.get('keys', None)
    if keys:
        self.get_queryset().filter(id__in=keys).delete()
        return SuccessResponse(data=[], msg='删除成功')
    else:
        return ErrorResponse(msg='未获取到keys字段')
@swagger_auto_schema(request_body=openapi.Schema(type=openapi.TYPE_OBJECT, required=['keys'], properties={'keys': keys}), operation_summary='批量删除')
@action(methods=['delete'], detail=False)
def multiple_delete(self, request, *args, **kwargs):
    request_data = request.data
    keys = request_data.get('keys', None)
    if keys:
        self.get_queryset().filter(id__in=keys).delete()
        return SuccessResponse(data=[], msg='删除成功')
    else:
        return ErrorResponse(msg='未获取到keys字段')