fix: 고객센터 시스템 게시판 API 엔드포인트 및 날짜 필터 수정

- shared/actions.ts: /boards/ → /system-boards/ 엔드포인트 변경
- EventList, InquiryList, NoticeList: 날짜 범위 초기값 빈 문자열로 변경 (전체 조회)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-28 02:49:46 +09:00
parent b295f60d1b
commit 3e74999e89
7 changed files with 201 additions and 35 deletions

View File

@@ -17,21 +17,23 @@ public function rules(): array
$stepTypes = implode(',', ApprovalLine::STEP_TYPES);
return [
'steps' => 'required|array|min:1',
'steps.*.type' => "required|string|in:{$stepTypes}",
'steps.*.user_id' => 'required|integer|exists:users,id',
// steps는 optional - 없으면 기존 결재선 사용
'steps' => 'nullable|array',
'steps.*.type' => "nullable|string|in:{$stepTypes}",
'steps.*.step_type' => "nullable|string|in:{$stepTypes}",
'steps.*.user_id' => 'nullable|integer|exists:users,id',
'steps.*.approver_id' => 'nullable|integer|exists:users,id',
'steps.*.step_order' => 'nullable|integer|min:1',
];
}
public function messages(): array
{
return [
'steps.required' => __('error.approval.steps_required'),
'steps.min' => __('validation.min.array', ['attribute' => '결재단계', 'min' => 1]),
'steps.*.type.required' => __('validation.required', ['attribute' => '단계유형']),
'steps.*.type.in' => __('validation.in', ['attribute' => '단계유형']),
'steps.*.user_id.required' => __('validation.required', ['attribute' => '결재자']),
'steps.*.step_type.in' => __('validation.in', ['attribute' => '단계유형']),
'steps.*.user_id.exists' => __('validation.exists', ['attribute' => '결재자']),
'steps.*.approver_id.exists' => __('validation.exists', ['attribute' => '결재자']),
];
}
}