feat(admin): add Montzar partner product list API for settings select
Expose GET /admin/montzar/products using MontzarService::listProductOptions(). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -6,6 +6,7 @@ use App\DB\Te\TableEngine;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Price;
|
||||
use App\Models\PriceCandle;
|
||||
use App\Services\MontzarService;
|
||||
use App\Services\ZaarboxPriceService;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
@@ -71,6 +72,17 @@ class PriceController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
public function montzarProducts(MontzarService $montzarService)
|
||||
{
|
||||
return response()->json([
|
||||
'code' => 0,
|
||||
'message' => 'عملیات با موفقیت انجام شد.',
|
||||
'data' => [
|
||||
'items' => $montzarService->listProductOptions(),
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
/** لیست مرجع قیمت برای ادمین قدیمی (ghatreh_admin) — GET /admin/p */
|
||||
public function methodPrices(ZaarboxPriceService $zaarboxPriceService)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user