|
|
|
@ -6,6 +6,7 @@ use App\Commons\Log; |
|
|
|
use App\Constants\v3\ErrorCode; |
|
|
|
use App\Constants\v3\LogLabel; |
|
|
|
use App\Exception\ErrorCodeException; |
|
|
|
use App\Model\v3\Banner; |
|
|
|
use App\Service\v3\Interfaces\GoodsInventoryServiceInterface; |
|
|
|
use App\Service\v3\Interfaces\GoodsServiceInterface; |
|
|
|
use App\Model\v3\Goods; |
|
|
|
@ -207,4 +208,9 @@ class GoodsService implements GoodsServiceInterface |
|
|
|
$goods->on_sale = $onSale % 2; |
|
|
|
return $goods->save(); |
|
|
|
} |
|
|
|
|
|
|
|
public function bannerDelete($bannerId) |
|
|
|
{ |
|
|
|
return GoodsBanner::query()->where('id',$bannerId)->delete(); |
|
|
|
} |
|
|
|
} |