feat(construction): 구조검토관리 API 구현
- Migration: structure_reviews 테이블 생성
- Model: StructureReview (BelongsToTenant, SoftDeletes)
- Service: StructureReviewService (CRUD + 통계 + 일괄삭제)
- Controller: StructureReviewController (7 endpoints)
- FormRequest: Store/Update 검증 규칙
API Endpoints:
- GET /construction/structure-reviews (목록)
- POST /construction/structure-reviews (생성)
- GET /construction/structure-reviews/stats (통계)
- DELETE /construction/structure-reviews/bulk (일괄삭제)
- GET /construction/structure-reviews/{id} (상세)
- PUT /construction/structure-reviews/{id} (수정)
- DELETE /construction/structure-reviews/{id} (삭제)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
use App\Http\Controllers\Api\V1\ComprehensiveAnalysisController;
|
||||
use App\Http\Controllers\Api\V1\Construction\ContractController;
|
||||
use App\Http\Controllers\Api\V1\Construction\HandoverReportController;
|
||||
use App\Http\Controllers\Api\V1\Construction\StructureReviewController;
|
||||
use App\Http\Controllers\Api\V1\DailyReportController;
|
||||
use App\Http\Controllers\Api\V1\DashboardController;
|
||||
use App\Http\Controllers\Api\V1\DepartmentController;
|
||||
@@ -447,6 +448,17 @@
|
||||
Route::put('/{id}', [HandoverReportController::class, 'update'])->whereNumber('id')->name('v1.construction.handover-reports.update');
|
||||
Route::delete('/{id}', [HandoverReportController::class, 'destroy'])->whereNumber('id')->name('v1.construction.handover-reports.destroy');
|
||||
});
|
||||
|
||||
// StructureReview API (구조검토관리)
|
||||
Route::prefix('structure-reviews')->group(function () {
|
||||
Route::get('', [StructureReviewController::class, 'index'])->name('v1.construction.structure-reviews.index');
|
||||
Route::post('', [StructureReviewController::class, 'store'])->name('v1.construction.structure-reviews.store');
|
||||
Route::get('/stats', [StructureReviewController::class, 'stats'])->name('v1.construction.structure-reviews.stats');
|
||||
Route::delete('/bulk', [StructureReviewController::class, 'bulkDestroy'])->name('v1.construction.structure-reviews.bulk-destroy');
|
||||
Route::get('/{id}', [StructureReviewController::class, 'show'])->whereNumber('id')->name('v1.construction.structure-reviews.show');
|
||||
Route::put('/{id}', [StructureReviewController::class, 'update'])->whereNumber('id')->name('v1.construction.structure-reviews.update');
|
||||
Route::delete('/{id}', [StructureReviewController::class, 'destroy'])->whereNumber('id')->name('v1.construction.structure-reviews.destroy');
|
||||
});
|
||||
});
|
||||
|
||||
// Card API (카드 관리)
|
||||
|
||||
Reference in New Issue
Block a user