add element pdf path
This commit is contained in:
parent
6c6b3ad257
commit
cc1735ee7b
13 changed files with 76 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ class CreateElement
|
|||
}
|
||||
$description = $request->description ?? '';
|
||||
$richText = $request->richText ?? '';
|
||||
$pdfPath = $request->pdfPath === '' ? null : $request->pdfPath;
|
||||
|
||||
$set = $this->setRepo->find($request->setId);
|
||||
if ($set === null) {
|
||||
|
|
@ -48,6 +49,7 @@ class CreateElement
|
|||
title: $request->title,
|
||||
description: $description,
|
||||
richText: $richText,
|
||||
pdfPath: $pdfPath,
|
||||
parentElement: null,
|
||||
));
|
||||
}
|
||||
|
|
@ -71,6 +73,7 @@ class CreateElement
|
|||
title: $request->title,
|
||||
description: $description,
|
||||
richText: $richText,
|
||||
pdfPath: $pdfPath,
|
||||
parentElement: $parentElement,
|
||||
));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ class CreateElementRequest
|
|||
public ?string $title,
|
||||
public ?string $description,
|
||||
public ?string $richText,
|
||||
public ?string $pdfPath,
|
||||
public ?int $parentElementId,
|
||||
) {
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue