| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- namespace App\Module\Game\AdminControllers;
- use App\Module\Game\AdminRepositories\GameRewardGroupPityCountRepository;
- use Dcat\Admin\Form;
- use Dcat\Admin\Grid;
- use Dcat\Admin\Show;
- use Spatie\RouteAttributes\Attributes\Resource;
- use UCore\DcatAdmin\AdminController;
- /**
- * 奖励组保底计数控制器
- *
- * 路由: /admin/game/reward-group-pity-counts
- */
- #[Resource('game-reward-group-pity-counts', names: 'dcat.admin.game-reward-group-pity-counts')]
- class GameRewardGroupPityCountController extends AdminController
- {
- /**
- * 获取仓库实例
- *
- * @return GameRewardGroupPityCountRepository
- */
- protected function repository(): GameRewardGroupPityCountRepository
- {
- return new GameRewardGroupPityCountRepository();
- }
- /**
- * 列表页面
- *
- * @return Grid
- */
- protected function grid(): Grid
- {
- return $this->repository()->grid();
- }
- /**
- * 详情页面
- *
- * @param mixed $id
- * @return Show
- */
- protected function detail($id): Show
- {
- return $this->repository()->detail($id);
- }
- /**
- * 表单页面
- *
- * @return Form
- */
- protected function form(): Form
- {
- return $this->repository()->form();
- }
- }
|