This commit is contained in:
2025-11-26 13:41:15 +08:00
parent a1ed0f2ecc
commit 24efeb25a0
4 changed files with 149 additions and 1 deletions
@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace App\Platform;
use Hyperf\Amqp\Message\ConsumerMessageInterface;
use App\Model\Company;
use App\Model\Platform;
use App\Model\Store;
use App\Model\Model as Entity;
interface EntityParseInterface
{
public function companyScopeMatch(ConsumerMessageInterface $message) : Company;
public function platformScopeMatch(ConsumerMessageInterface $message) : Platform;
public function storeScopeMatch(ConsumerMessageInterface $message) : Store;
public function entityMatch(ConsumerMessageInterface $message) : Entity;
public function entityMap(array $data, Entity $entity): Entity;
}