Allocation.php 546 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace app\admin\controller;
  3. use app\admin\attr\Permission;
  4. #[Permission('allocation')]
  5. class Allocation extends BaseAuthorized
  6. {
  7. public function page()
  8. {
  9. return $this->AllocationService()->page();
  10. }
  11. public function info()
  12. {
  13. return $this->AllocationService()->info();
  14. }
  15. public function create()
  16. {
  17. return $this->AllocationService()->createTrans($this->admin);
  18. }
  19. public function revert()
  20. {
  21. return $this->AllocationService()->revertTrans($this->admin);
  22. }
  23. }