refactor: 섹션 관리를 entity_relationships 참조 방식으로 전환
- SectionTemplateService: 독립 섹션 생성, page_id 있으면 링크 연결 - ItemMasterService: init API가 linkedSections 기반으로 조회 - SectionTemplateStoreRequest: page_id nullable로 변경 - Swagger: 스키마 업데이트 (sectionTemplates → sections)
This commit is contained in:
@@ -330,7 +330,8 @@
|
||||
* type="object",
|
||||
* required={"title","type"},
|
||||
*
|
||||
* @OA\Property(property="title", type="string", maxLength=255, example="기본 템플릿"),
|
||||
* @OA\Property(property="page_id", type="integer", nullable=true, example=1, description="연결할 페이지 ID (선택, 있으면 즉시 링크 연결)"),
|
||||
* @OA\Property(property="title", type="string", maxLength=255, example="기본 섹션"),
|
||||
* @OA\Property(property="type", type="string", enum={"fields","bom"}, example="fields"),
|
||||
* @OA\Property(property="description", type="string", nullable=true, example="설명"),
|
||||
* @OA\Property(property="is_default", type="boolean", example=false)
|
||||
@@ -436,15 +437,17 @@
|
||||
* @OA\Property(
|
||||
* property="pages",
|
||||
* type="array",
|
||||
* description="페이지 목록 (linkedSections 기반)",
|
||||
*
|
||||
* @OA\Items(ref="#/components/schemas/ItemPage")
|
||||
* ),
|
||||
*
|
||||
* @OA\Property(
|
||||
* property="sectionTemplates",
|
||||
* property="sections",
|
||||
* type="array",
|
||||
* description="모든 독립 섹션 목록 (재사용 가능)",
|
||||
*
|
||||
* @OA\Items(ref="#/components/schemas/SectionTemplate")
|
||||
* @OA\Items(ref="#/components/schemas/ItemSection")
|
||||
* ),
|
||||
*
|
||||
* @OA\Property(
|
||||
|
||||
Reference in New Issue
Block a user