34 lines
710 B
PHP
34 lines
710 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Controller\Api;
|
|
|
|
use App\Controller\AbstractController;
|
|
use App\Middleware\Api\JwtAuthMiddleware;
|
|
use Hyperf\HttpServer\Annotation\Controller;
|
|
use Hyperf\HttpServer\Annotation\Middlewares;
|
|
use Hyperf\HttpServer\Annotation\RequestMapping;
|
|
use Hyperf\Validation\Annotation\Scene;
|
|
|
|
#[Controller(prefix: 'api/pay')]
|
|
#[Middlewares([
|
|
JwtAuthMiddleware::class,
|
|
])]
|
|
class PayController extends AbstractController
|
|
{
|
|
#[RequestMapping(path: 'order',methods: 'POST')]
|
|
#[Scene(scene: 'order')]
|
|
public function order()
|
|
{
|
|
|
|
}
|
|
|
|
#[RequestMapping(path: 'refund',methods: 'POST')]
|
|
#[Scene(scene: 'refund')]
|
|
public function refund()
|
|
{
|
|
|
|
}
|
|
}
|