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.

43 lines
947 B

  1. <?php
  2. namespace App\Service\v3\Implementations;
  3. use App\Service\v3\Interfaces\GoodsServiceInterface;
  4. use Hyperf\DbConnection\Db;
  5. use App\Model\v3\Goods;
  6. class GoodsService implements GoodsServiceInterface
  7. {
  8. public function do()
  9. {
  10. $res = Goods::query()->where('id',35)->get();
  11. return $res;
  12. }
  13. public function check($goodsId)
  14. {
  15. // TODO: Implement check() method.
  16. }
  17. public function undo()
  18. {
  19. // TODO: Implement undo() method.
  20. }
  21. public function getBanner()
  22. {
  23. $banner = [
  24. [
  25. 'id' => 1,
  26. 'type' => 1,
  27. 'path' => 'https://img.lanzu.vip/static/img/dic_banners/dic_banner_0.jpg'
  28. ],
  29. [
  30. 'id' => 2,
  31. 'type' => 1,
  32. 'path' => 'https://img.lanzu.vip/static/img/dic_banners/dic_banner_1.jpg'
  33. ]
  34. ];
  35. return $banner;
  36. }
  37. }