Skip to content

Commit 8c6eeca

Browse files
committed
feat(KnowledgeBase): add KnowledgeBaseEntity and KnowledgeType imports; implement toArray method in DocumentFileInterface
1 parent 4762efb commit 8c6eeca

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

backend/magic-service/app/Application/KnowledgeBase/Service/KnowledgeBaseDocumentAppService.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
use App\Domain\Flow\Entity\ValueObject\Query\KnowledgeBaseDocumentQuery;
1111
use App\Domain\KnowledgeBase\Entity\KnowledgeBaseDocumentEntity;
12+
use App\Domain\KnowledgeBase\Entity\KnowledgeBaseEntity;
13+
use App\Domain\KnowledgeBase\Entity\ValueObject\KnowledgeType;
1214
use App\Domain\KnowledgeBase\Entity\ValueObject\Query\KnowledgeBaseFragmentQuery;
1315
use App\Domain\KnowledgeBase\Event\KnowledgeBaseDocumentSavedEvent;
1416
use App\ErrorCode\PermissionErrorCode;

backend/magic-service/app/Domain/KnowledgeBase/Entity/ValueObject/DocumentFile/Interfaces/DocumentFileInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ public function getName(): string;
1616
public function getPlatformType(): ?string;
1717

1818
public function getThirdFileId(): ?string;
19+
20+
public function toArray(): array;
1921
}

backend/magic-service/app/Infrastructure/Core/File/Parser/FileParser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use App\ErrorCode\FlowErrorCode;
1111
use App\Infrastructure\Core\Exception\ExceptionBuilder;
1212
use App\Infrastructure\Core\File\Parser\Driver\Interfaces\ExcelFileParserDriverInterface;
13+
use App\Infrastructure\Core\File\Parser\Driver\Interfaces\FileParserDriverInterface;
1314
use App\Infrastructure\Core\File\Parser\Driver\Interfaces\OcrFileParserDriverInterface;
1415
use App\Infrastructure\Core\File\Parser\Driver\Interfaces\PdfFileParserDriverInterface;
1516
use App\Infrastructure\Core\File\Parser\Driver\Interfaces\TextFileParserDriverInterface;

0 commit comments

Comments
 (0)