feat : coupon
This commit is contained in:
22
app/Controller/Api/CouponController.php
Normal file
22
app/Controller/Api/CouponController.php
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user