refactor : 불필요한 소스 정리 및 수정

This commit is contained in:
2025-08-20 17:01:32 +09:00
parent 0f01c100d6
commit 3741dba27b
20 changed files with 8 additions and 34 deletions

View File

@@ -9,8 +9,11 @@ class CommonController
{
public static function getComeCode()
{
$query = DB::table('COM_CODE')
->select(['CODE_TP_ID', 'CODE_ID', 'CODE_VAL', 'CODE_DESC', 'USE_YN']);
return ApiResponse::response('get', $query);
return ApiResponse::handle(function () {
DB::table('common_codes')
->select(['code_group', 'code', 'name', 'description', 'is_active'])
->where('tenant_id', app('tenant_id'))
->get();
}, '공통코드');
}
}