|
|
@@ -3,24 +3,16 @@
|
|
|
namespace App\Module\GameItems\Repositories;
|
|
|
|
|
|
use App\Module\GameItems\Models\ItemChestConfig;
|
|
|
-use UCore\DcatAdmin\Repository;
|
|
|
+use Dcat\Admin\Repositories\EloquentRepository;
|
|
|
|
|
|
/**
|
|
|
* 宝箱配置仓库类
|
|
|
*
|
|
|
* 提供宝箱配置的数据访问方法,专门用于后台管理
|
|
|
*/
|
|
|
-class ItemChestConfigRepository extends Repository
|
|
|
+class ItemChestConfigRepository extends EloquentRepository
|
|
|
{
|
|
|
- /**
|
|
|
- * 获取模型类名
|
|
|
- *
|
|
|
- * @return string
|
|
|
- */
|
|
|
- public function getModel(): string
|
|
|
- {
|
|
|
- return ItemChestConfig::class;
|
|
|
- }
|
|
|
+ protected $eloquentClass = ItemChestConfig::class;
|
|
|
|
|
|
/**
|
|
|
* 获取激活的宝箱配置
|