|
|
|
@ -3,6 +3,7 @@ |
|
|
|
namespace App\Service\v3\Implementations; |
|
|
|
|
|
|
|
use App\Constants\v3\SsdbKeys; |
|
|
|
use App\Model\v3\Category; |
|
|
|
use App\Model\v3\Goods; |
|
|
|
use App\Model\v3\GoodsType; |
|
|
|
use App\Model\v3\StoreType; |
|
|
|
@ -30,12 +31,7 @@ class CategoryService implements CategoryServiceInterface |
|
|
|
|
|
|
|
public function all() |
|
|
|
{ |
|
|
|
return StoreType::query() |
|
|
|
->with('goodsTypes') |
|
|
|
->orderBy('sort', 'DESC') |
|
|
|
->orderBy('id', 'DESC') |
|
|
|
->get() |
|
|
|
->toArray(); |
|
|
|
return Category::query()->where(['parent_id' => 0])->get()->toArray(); |
|
|
|
} |
|
|
|
|
|
|
|
public function allForStore($storeId) |
|
|
|
|