Update source into github

This commit is contained in:
pbao9
2025-07-24 16:18:27 +07:00
parent 41419358dd
commit 69851ac7bc
2642 changed files with 284095 additions and 0 deletions
@@ -0,0 +1,18 @@
<?php
namespace App\Repositories\Module\Snapshot;
use App\Repositories\BaseCachedRepository;
class SnapshotCachedRepository extends BaseCachedRepository implements SnapshotRepositoryInterface
{
public function __construct(
public SnapshotRepository $snapshotRepository
) {
parent::__construct();
}
public function getModel()
{
return $this->snapshotRepository->getModel();
}
}
@@ -0,0 +1,18 @@
<?php
namespace App\Repositories\Module\Snapshot;
use App\Repositories\BaseCachedRepository;
class SnapshotLimitCachedRepository extends BaseCachedRepository implements SnapshotLimitRepositoryInterface
{
public function __construct(
public SnapshotLimitRepository $snapshotLimitRepository
) {
parent::__construct();
}
public function getModel()
{
return $this->snapshotLimitRepository->getModel();
}
}
@@ -0,0 +1,12 @@
<?php
namespace App\Repositories\Module\Snapshot;
use App\Models\ModuleSnapshotLimit;
use App\Repositories\BaseRepository;
class SnapshotLimitRepository extends BaseRepository implements SnapshotLimitRepositoryInterface {
public function getModel()
{
return ModuleSnapshotLimit::class;
}
}
@@ -0,0 +1,6 @@
<?php
namespace App\Repositories\Module\Snapshot;
use App\Repositories\BaseRepositoryInterface;
interface SnapshotLimitRepositoryInterface extends BaseRepositoryInterface {}
@@ -0,0 +1,13 @@
<?php
namespace App\Repositories\Module\Snapshot;
use App\Models\ModuleSnapshot;
use App\Repositories\BaseRepository;
class SnapshotRepository extends BaseRepository implements SnapshotRepositoryInterface
{
public function getModel()
{
return ModuleSnapshot::class;
}
}
@@ -0,0 +1,6 @@
<?php
namespace App\Repositories\Module\Snapshot;
use App\Repositories\BaseRepositoryInterface;
interface SnapshotRepositoryInterface extends BaseRepositoryInterface{}