feat: order

This commit is contained in:
2025-02-11 11:28:23 +08:00
parent 88ee75143e
commit cc5790ce20
4 changed files with 35 additions and 4 deletions

View File

@@ -8,14 +8,25 @@ 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/order')]
#[Controller(prefix: 'api/pay')]
#[Middlewares([
JwtAuthMiddleware::class,
])]
class PayController extends AbstractController
{
public function index()
#[RequestMapping(path: 'order',methods: 'POST')]
#[Scene(scene: 'order')]
public function order()
{
}
#[RequestMapping(path: 'refund',methods: 'POST')]
#[Scene(scene: 'refund')]
public function refund()
{
}