refactor: CategoryField API를 SAM API Rules에 맞게 리팩토링

- FormRequest 패턴 적용 (CategoryFieldStoreRequest, CategoryFieldUpdateRequest)
- Service에서 Validator::make() 제거
- Controller 메시지 i18n 키로 변경 (__('message.category_field.*'))
- is_required 타입을 'Y'/'N' → boolean으로 통일
- Swagger 스키마 is_required boolean 타입으로 업데이트
- Model scopeRequired() boolean 조건으로 변경
This commit is contained in:
2025-11-14 13:45:54 +09:00
parent e848e12412
commit d4e9f2a6e4
7 changed files with 91 additions and 53 deletions

View File

@@ -26,7 +26,7 @@
* @OA\Property(property="field_key", type="string", example="width"),
* @OA\Property(property="field_name", type="string", example="폭(mm)"),
* @OA\Property(property="field_type", type="string", example="number"),
* @OA\Property(property="is_required", type="string", enum={"Y","N"}, example="N"),
* @OA\Property(property="is_required", type="boolean", example=false),
* @OA\Property(property="sort_order", type="integer", example=1),
* @OA\Property(property="default_value", type="string", nullable=true, example=null),
* @OA\Property(