You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
947 B
44 lines
947 B
<?php
|
|
|
|
namespace App\Service\v3\Implementations;
|
|
|
|
use App\Service\v3\Interfaces\GoodsServiceInterface;
|
|
use Hyperf\DbConnection\Db;
|
|
use App\Model\v3\Goods;
|
|
|
|
class GoodsService implements GoodsServiceInterface
|
|
{
|
|
public function do()
|
|
{
|
|
$res = Goods::query()->where('id',35)->get();
|
|
return $res;
|
|
}
|
|
|
|
|
|
public function check($goodsId)
|
|
{
|
|
// TODO: Implement check() method.
|
|
}
|
|
|
|
public function undo()
|
|
{
|
|
// TODO: Implement undo() method.
|
|
}
|
|
|
|
public function getBanner()
|
|
{
|
|
$banner = [
|
|
[
|
|
'id' => 1,
|
|
'type' => 1,
|
|
'path' => 'https://img.lanzu.vip/static/img/dic_banners/dic_banner_0.jpg'
|
|
],
|
|
[
|
|
'id' => 2,
|
|
'type' => 1,
|
|
'path' => 'https://img.lanzu.vip/static/img/dic_banners/dic_banner_1.jpg'
|
|
]
|
|
];
|
|
return $banner;
|
|
}
|
|
}
|