feat: sku
This commit is contained in:
@@ -6,6 +6,7 @@ namespace App\Controller\Admin;
|
|||||||
|
|
||||||
use App\Middleware\Admin\JwtAuthMiddleware;
|
use App\Middleware\Admin\JwtAuthMiddleware;
|
||||||
use App\Request\Admin\GoodRequest;
|
use App\Request\Admin\GoodRequest;
|
||||||
|
use App\Service\Admin\Good\CategoryService;
|
||||||
use App\Service\Admin\Good\CycleService;
|
use App\Service\Admin\Good\CycleService;
|
||||||
use App\Service\Admin\Good\SkuService;
|
use App\Service\Admin\Good\SkuService;
|
||||||
use App\Service\Admin\Good\SpuService;
|
use App\Service\Admin\Good\SpuService;
|
||||||
@@ -151,4 +152,14 @@ class GoodController
|
|||||||
{
|
{
|
||||||
return (new CycleService)->handle();
|
return (new CycleService)->handle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function categoryList()
|
||||||
|
{
|
||||||
|
return (new CategoryService)->handle();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function categoryAdd()
|
||||||
|
{
|
||||||
|
return (new CategoryService)->add();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
26
app/Service/Admin/Good/CategoryService.php
Normal file
26
app/Service/Admin/Good/CategoryService.php
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* This service file is part of item.
|
||||||
|
*
|
||||||
|
* @author ctexthuang
|
||||||
|
* @contact ctexthuang@qq.com
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace App\Service\Admin\Good;
|
||||||
|
|
||||||
|
use App\Service\Admin\BaseService;
|
||||||
|
|
||||||
|
class CategoryService extends BaseService
|
||||||
|
{
|
||||||
|
public function handle()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function add()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user