mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
improve hr + agent update
This commit is contained in:
@@ -2,6 +2,15 @@
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use App\Events\AgentAllowCreated;
|
||||
use App\Events\AgentAllowDeleted;
|
||||
use App\Events\AgentAllowUpdated;
|
||||
use App\Events\AgentDenyCreated;
|
||||
use App\Events\AgentDenyDeleted;
|
||||
use App\Events\AgentDenyUpdated;
|
||||
use App\Events\HitAndRunCreated;
|
||||
use App\Events\HitAndRunDeleted;
|
||||
use App\Events\HitAndRunUpdated;
|
||||
use App\Events\MessageCreated;
|
||||
use App\Events\NewsCreated;
|
||||
use App\Events\SnatchedUpdated;
|
||||
@@ -13,6 +22,9 @@ use App\Events\UserDeleted;
|
||||
use App\Events\UserDisabled;
|
||||
use App\Events\UserEnabled;
|
||||
use App\Events\UserUpdated;
|
||||
use App\Models\AgentAllow;
|
||||
use App\Models\AgentDeny;
|
||||
use App\Models\HitAndRun;
|
||||
use App\Models\Message;
|
||||
use App\Models\News;
|
||||
use App\Models\Snatch;
|
||||
@@ -32,6 +44,18 @@ final class ModelEventEnum {
|
||||
|
||||
const NEWS_CREATED = 'news_created';
|
||||
|
||||
const HIT_AND_RUN_CREATED = 'hit_and_run_created';
|
||||
const HIT_AND_RUN_UPDATED = 'hit_and_run_updated';
|
||||
const HIT_AND_RUN_DELETED = 'hit_and_run_deleted';
|
||||
|
||||
const AGENT_ALLOW_CREATED = 'agent_allow_created';
|
||||
const AGENT_ALLOW_UPDATED = 'agent_allow_updated';
|
||||
const AGENT_ALLOW_DELETED = 'agent_allow_deleted';
|
||||
|
||||
const AGENT_DENY_CREATED = 'agent_deny_created';
|
||||
const AGENT_DENY_UPDATED = 'agent_deny_updated';
|
||||
const AGENT_DENY_DELETED = 'agent_deny_deleted';
|
||||
|
||||
const SNATCHED_UPDATED = 'snatched_updated';
|
||||
const MESSAGE_CREATED = 'message_created';
|
||||
|
||||
@@ -51,5 +75,17 @@ final class ModelEventEnum {
|
||||
self::SNATCHED_UPDATED => ['event' => SnatchedUpdated::class, 'model' => Snatch::class],
|
||||
|
||||
self::MESSAGE_CREATED => ['event' => MessageCreated::class, 'model' => Message::class],
|
||||
|
||||
self::HIT_AND_RUN_CREATED => ['event' => HitAndRunCreated::class, 'model' => HitAndRun::class],
|
||||
self::HIT_AND_RUN_UPDATED => ['event' => HitAndRunUpdated::class, 'model' => HitAndRun::class],
|
||||
self::HIT_AND_RUN_DELETED => ['event' => HitAndRunDeleted::class, 'model' => HitAndRun::class],
|
||||
|
||||
self::AGENT_ALLOW_CREATED => ['event' => AgentAllowCreated::class, 'model' => AgentAllow::class],
|
||||
self::AGENT_ALLOW_UPDATED => ['event' => AgentAllowUpdated::class, 'model' => AgentAllow::class],
|
||||
self::AGENT_ALLOW_DELETED => ['event' => AgentAllowDeleted::class, 'model' => AgentAllow::class],
|
||||
|
||||
self::AGENT_DENY_CREATED => ['event' => AgentDenyCreated::class, 'model' => AgentDeny::class],
|
||||
self::AGENT_DENY_UPDATED => ['event' => AgentDenyUpdated::class, 'model' => AgentDeny::class],
|
||||
self::AGENT_DENY_DELETED => ['event' => AgentDenyDeleted::class, 'model' => AgentDeny::class],
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user