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.

30 lines
625 B

  1. <?php
  2. namespace App\Service\v3\Implementations;
  3. use App\Service\v3\Interfaces\LocationServiceInterface;
  4. use App\Model\v3\Area;
  5. use App\Model\v3\Market;
  6. class LocationService implements LocationServiceInterface
  7. {
  8. public function do()
  9. {
  10. // TODO: Implement do() method.
  11. }
  12. public function check()
  13. {
  14. // TODO: Implement check() method.
  15. }
  16. public function undo()
  17. {
  18. // TODO: Implement undo() method.
  19. }
  20. public function getMarketListByLocation($cityIds)
  21. {
  22. $res = Area::query()->with('markets')->whereIn('id',$cityIds)->get();
  23. return $res;
  24. }
  25. }