<?php namespace app\admin\controller; use app\admin\attr\Permission; #[Permission('allocation')] class Allocation extends BaseAuthorized { public function page() { return $this->AllocationService()->page(); } public function info() { return $this->AllocationService()->info(); } public function create() { return $this->AllocationService()->createTrans($this->admin); } public function revert() { return $this->AllocationService()->revertTrans($this->admin); } }