20 lines
472 B
PHP
20 lines
472 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Api\V1;
|
|
|
|
use App\Helpers\ApiResponse;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class CommonController
|
|
{
|
|
public static function getComeCode()
|
|
{
|
|
return ApiResponse::handle(function () {
|
|
DB::table('common_codes')
|
|
->select(['code_group', 'code', 'name', 'description', 'is_active'])
|
|
->where('tenant_id', app('tenant_id'))
|
|
->get();
|
|
}, '공통코드');
|
|
}
|
|
}
|