Commit 56d055ba authored by 王源's avatar 王源 🎧

添加通过用户名称模糊获取用户方法

parent ee580351
...@@ -11,6 +11,14 @@ namespace Meibuyu\Micro\Service\Interfaces; ...@@ -11,6 +11,14 @@ namespace Meibuyu\Micro\Service\Interfaces;
interface UserServiceInterface interface UserServiceInterface
{ {
/**
* 通过用户名称模糊获取用户
* @param string $name
* @param array $columns
* @return array
*/
public function getByName(string $name, array $columns = ['id', 'name']): array;
/** /**
* 获取单个数据 * 获取单个数据
* @param int $id * @param int $id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment