feat : coupon

This commit is contained in:
2025-02-27 15:32:36 +08:00
parent 81bc1d5456
commit d046b34cea
11 changed files with 338 additions and 17 deletions

View File

@@ -0,0 +1,22 @@
<?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();
}
}