- ApiClient 인터페이스: representative → manager_name, contact_person 변경 - transformApiToFrontend: client.representative → client.manager_name 수정 - ApiOrderItem에 floor_code, symbol_code 필드 추가 (제품-부품 매핑) - ApiOrder에 options 타입 정의 추가 - ApiQuote에 calculation_inputs 타입 정의 추가 - 수주 상세 페이지 제품-부품 트리 구조 UI 개선
33 lines
988 B
PHP
33 lines
988 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\V1\Subscription;
|
|
|
|
use App\Http\Requests\Traits\HasPagination;
|
|
use App\Models\Tenants\Subscription;
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
use Illuminate\Validation\Rule;
|
|
|
|
class SubscriptionIndexRequest extends FormRequest
|
|
{
|
|
use HasPagination;
|
|
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'status' => ['nullable', 'string', Rule::in(Subscription::STATUSES)],
|
|
'valid_only' => ['nullable', 'boolean'],
|
|
'expiring_within' => ['nullable', 'integer', 'min:1', 'max:365'],
|
|
'start_date' => ['nullable', 'date'],
|
|
'end_date' => ['nullable', 'date', 'after_or_equal:start_date'],
|
|
'sort_by' => ['nullable', 'string', 'in:started_at,ended_at,created_at'],
|
|
'sort_dir' => ['nullable', 'string', 'in:asc,desc'],
|
|
'per_page' => ['nullable', 'integer', 'min:1'],
|
|
];
|
|
}
|
|
}
|