- SectionTemplateService: 독립 섹션 생성, page_id 있으면 링크 연결 - ItemMasterService: init API가 linkedSections 기반으로 조회 - SectionTemplateStoreRequest: page_id nullable로 변경 - Swagger: 스키마 업데이트 (sectionTemplates → sections)
25 lines
558 B
PHP
25 lines
558 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\ItemMaster;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class SectionTemplateStoreRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'page_id' => 'nullable|integer|exists:item_pages,id',
|
|
'title' => 'required|string|max:255',
|
|
'type' => 'required|in:fields,bom',
|
|
'description' => 'nullable|string',
|
|
'is_default' => 'nullable|boolean',
|
|
];
|
|
}
|
|
}
|