23 lines
367 B
PHP
23 lines
367 B
PHP
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
use App\Helpers\ApiResponse;
|
|
use App\Models\Products\CommonCode;
|
|
|
|
class ProductService
|
|
{
|
|
|
|
/**
|
|
* 회원 조회(리스트)
|
|
*/
|
|
public static function getCategory()
|
|
{
|
|
$query = CommonCode::where('code_group','category')->where('parent_id',null);
|
|
|
|
return ApiResponse::response('get', $query);
|
|
}
|
|
|
|
|
|
}
|