- BendingItemController: CRUD + filters 엔드포인트 (pagination 메타 보존) - BendingItemService: items 테이블 item_category=BENDING 필터 기반 - BendingItemResource: options → 최상위 필드 노출 + 계산값(width_sum, bend_count) - FormRequest: Index/Store/Update 유효성 검증 (unique:items,code 포함) - BendingFillOptions: BD-* prefix/분류 속성 자동 보강 커맨드 - BendingImportLegacy: chandj 레거시 전개도(bendingData) 임포트 커맨드 (125/170건 매칭) - ensureContext: Bearer 토큰 없이 X-TENANT-ID 헤더로 컨텍스트 설정
28 lines
716 B
PHP
28 lines
716 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Api\V1;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class BendingItemIndexRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'item_sep' => 'nullable|string|in:스크린,철재',
|
|
'item_bending' => 'nullable|string',
|
|
'material' => 'nullable|string',
|
|
'model_UA' => 'nullable|string|in:인정,비인정',
|
|
'model_name' => 'nullable|string',
|
|
'search' => 'nullable|string|max:100',
|
|
'page' => 'nullable|integer|min:1',
|
|
'size' => 'nullable|integer|min:1|max:200',
|
|
];
|
|
}
|
|
}
|