Files
sam-api/app/Services/ProductService.php

23 lines
367 B
PHP
Raw Normal View History

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