adminReturn->success( 'success', $this->adminRoleRepository->page( $this->getRequestData(), $this->getCurrentPage(), $this->getPageSize() ) ); } /** * @return array */ public function create(): array { if (!$this->adminRoleRepository->create( array_merge( $this->getRequestData(), ['created_by' => $this->adminId] ) )) throw new ErrException('添加失败'); return $this->adminReturn->success(); } public function update(int $id) { if (!$this->adminRoleRepository->updateById( $id, array_merge() )); } public function delete() { } public function getRole() { } public function setRole() { } }