GameRewardGroupPityCountController.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. namespace App\Module\Game\AdminControllers;
  3. use App\Module\Game\AdminRepositories\GameRewardGroupPityCountRepository;
  4. use Dcat\Admin\Form;
  5. use Dcat\Admin\Grid;
  6. use Dcat\Admin\Show;
  7. use UCore\DcatAdmin\AdminController;
  8. /**
  9. * 奖励组保底计数控制器
  10. *
  11. * 路由: /admin/game/reward-group-pity-counts
  12. */
  13. class GameRewardGroupPityCountController extends AdminController
  14. {
  15. /**
  16. * 获取仓库实例
  17. *
  18. * @return GameRewardGroupPityCountRepository
  19. */
  20. protected function repository(): GameRewardGroupPityCountRepository
  21. {
  22. return new GameRewardGroupPityCountRepository();
  23. }
  24. /**
  25. * 列表页面
  26. *
  27. * @return Grid
  28. */
  29. protected function grid(): Grid
  30. {
  31. return $this->repository()->grid();
  32. }
  33. /**
  34. * 详情页面
  35. *
  36. * @param mixed $id
  37. * @return Show
  38. */
  39. protected function detail($id): Show
  40. {
  41. return $this->repository()->detail($id);
  42. }
  43. /**
  44. * 表单页面
  45. *
  46. * @return Form
  47. */
  48. protected function form(): Form
  49. {
  50. return $this->repository()->form();
  51. }
  52. }