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.

36 lines
821 B

  1. <?php
  2. namespace App\Service\v3\Implementations;
  3. use App\Model\v3\Store;
  4. use App\Service\v3\Interfaces\StoreServiceInterface;
  5. class StoreService implements StoreServiceInterface
  6. {
  7. public function do()
  8. {
  9. // TODO: Implement do() method.
  10. }
  11. public function check()
  12. {
  13. // TODO: Implement check() method.
  14. }
  15. public function undo()
  16. {
  17. // TODO: Implement undo() method.
  18. }
  19. public function detail($storeId, $marketId)
  20. {
  21. return Store::query()
  22. ->select([
  23. 'id', 'name', 'logo', 'introduction', 'announcement', 'address', 'tel', 'stall_info',
  24. 'is_rest','time1', 'time2', 'time3', 'time4',
  25. ])
  26. ->where(['id' => $storeId, 'market_id' => $marketId])
  27. ->first()->toArray();
  28. }
  29. }