feat : statement

This commit is contained in:
2025-03-21 17:41:10 +08:00
parent 8176feb77b
commit 005fc4879a
12 changed files with 450 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
namespace App\Amqp\Consumer\Statement;
use Hyperf\Amqp\Result;
use Hyperf\Amqp\Annotation\Consumer;
use Hyperf\Amqp\Message\ConsumerMessage;
use PhpAmqpLib\Message\AMQPMessage;
#[Consumer(exchange: 'hyperf', routingKey: 'hyperf', queue: 'hyperf', name: "DriverConsumer", nums: 1)]
class DriverConsumer extends ConsumerMessage
{
public function consumeMessage($data, AMQPMessage $message): Result
{
return Result::ACK;
}
}