feat: order
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user