| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?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 UCore\DcatAdmin\AdminController;
- /**
- * 奖励组保底计数控制器
- *
- * 路由: /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();
- }
- }
|