feat: ajout de la gestion des sources de contenu avec des commandes et des gestionnaires pour l'importation, la mise à jour et l'exportation, ainsi que la création des ressources API correspondantes.
This commit is contained in:
parent
ebcca466a9
commit
32b4e4fbb2
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\Setting\Application\Command;
|
||||
|
||||
readonly class ImportContentSourceCommand
|
||||
{
|
||||
public function __construct(
|
||||
public array $contentSources
|
||||
) {}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\Setting\Application\Command;
|
||||
|
||||
readonly class UpsertContentSourceCommand
|
||||
{
|
||||
public function __construct(
|
||||
public ?int $id,
|
||||
public string $baseUrl,
|
||||
public string $chapterUrlFormat,
|
||||
public string $scrapingType,
|
||||
public ?string $imageSelector = null,
|
||||
public ?string $nextPageSelector = null,
|
||||
public ?string $chapterSelector = null,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user