22 lines
330 B
PHP
22 lines
330 B
PHP
![]() |
<?php
|
||
|
namespace app\service;
|
||
|
|
||
|
use app\model\Role;
|
||
|
|
||
|
class RoleService
|
||
|
{
|
||
|
/**
|
||
|
* @Inject
|
||
|
* @var Role
|
||
|
*/
|
||
|
private $role;
|
||
|
public function allList():array
|
||
|
{
|
||
|
return $this->role->allList();
|
||
|
}
|
||
|
|
||
|
public function save(array $param):array
|
||
|
{
|
||
|
return $this->role->saveData($param);
|
||
|
}
|
||
|
}
|