feat: [items] 품목 생성/조회 개선
- 중복 코드 자동 증가 기능 추가 (P-001 → P-002, ABC → ABC-001)
- soft delete 항목 조회 파라미터 추가 (include_deleted)
- ValidationException 응답 포맷 수정 (공통 에러 형식)
- batch delete 라우트 순서 수정 (/{id} 보다 /batch 먼저)
- is_active 기본값 true 설정
This commit is contained in:
@@ -65,8 +65,9 @@ public function render($request, Throwable $exception)
|
||||
return response()->json([
|
||||
'success' => false,
|
||||
'message' => '입력값 검증 실패',
|
||||
'data' => [
|
||||
'errors' => $exception->errors(),
|
||||
'error' => [
|
||||
'code' => 422,
|
||||
'details' => $exception->errors(),
|
||||
],
|
||||
], 422);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user