2025-07-23 18:06:33 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Services;
|
|
|
|
|
|
|
|
|
|
use App\Helpers\ApiResponse;
|
|
|
|
|
use App\Models\Products\CommonCode;
|
|
|
|
|
|
|
|
|
|
class ProductService
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 회원 조회(리스트)
|
|
|
|
|
*/
|
2025-07-26 14:25:45 +09:00
|
|
|
public static function getCategory()
|
2025-07-23 18:06:33 +09:00
|
|
|
{
|
|
|
|
|
$query = CommonCode::where('code_group','category')->where('parent_id',null);
|
|
|
|
|
|
2025-07-26 14:25:45 +09:00
|
|
|
return ApiResponse::response('get', $query);
|
2025-07-23 18:06:33 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|