feat:쿠콘 API 신용평가 조회 기능 구현
- CooconConfig 모델 및 마이그레이션 추가 - CooconService 클래스 구현 (OA12~OA17 API) - CreditController 확장 (설정 관리, 조회 기능) - 설정 관리 화면 추가 (CRUD, 활성화 토글) - 사업자번호 조회 화면 업데이트 (API 연동) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('coocon_configs', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name', 100)->comment('설정 이름');
|
||||
$table->enum('environment', ['test', 'production'])->default('test')->comment('환경');
|
||||
$table->string('api_key', 100)->comment('API 키');
|
||||
$table->string('base_url', 255)->comment('API 기본 URL');
|
||||
$table->text('description')->nullable()->comment('설명');
|
||||
$table->boolean('is_active')->default(false)->comment('활성화 여부');
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('coocon_configs');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user