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.

27 lines
461 B

  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Controller;
  4. use App\Service\AdServiceInterface;
  5. use Hyperf\Di\Annotation\Inject;
  6. /**
  7. * 系统AD广告/宣传图控制器
  8. * Class AdController
  9. * @package App\Controller
  10. */
  11. class AdController extends BaseController
  12. {
  13. /**
  14. * @Inject
  15. * @var AdServiceInterface
  16. */
  17. protected $adService;
  18. public function banners()
  19. {
  20. return $this->success($this->adService->banners());
  21. }
  22. }