Files
hyperf_service/app/Controller/Api/CouponController.php
2025-02-27 15:32:36 +08:00

23 lines
563 B
PHP

<?php
declare(strict_types=1);
namespace App\Controller\Api;
use App\Controller\AbstractController;
use App\Service\Api\Coupon\HomePopupsService;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
use Hyperf\Validation\Annotation\Scene;
#[Controller(prefix: 'api/coupon')]
class CouponController extends AbstractController
{
#[RequestMapping(path: "home_popups", methods: "GET")]
#[Scene(scene: "home_popups")]
public function homePopups()
{
return (new HomePopupsService)->handle();
}
}