blog/app/service/RoleService.php

22 lines
330 B
PHP
Raw Permalink Normal View History

2024-06-08 15:54:41 +08:00
<?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);
}
}