Commit 1735bf21 authored by 梁俊杰's avatar 梁俊杰

新增根据id获取岗位信息接口

parent de493eb4
......@@ -11,6 +11,16 @@ namespace Meibuyu\Micro\Service\Interfaces;
interface BaseInfoServiceInterface
{
/**
* 通过单个id获取岗位信息
* @param int $id 职位id
* @param array $relations 职位的关联信息 支持["position_level","users","parent"
* ,"children","perms"] 分别是 岗位职级,岗位用户,岗位父级,岗位子集,岗位对应的权限
* @param array $columns 默认显示所有字段
* @return array
*/
public function getPositionById(int $id, array $relations = [], array $columns = ['*']): array;
/**
* 通过单个id获取岗位数组
* @param int $id
......@@ -20,6 +30,7 @@ interface BaseInfoServiceInterface
*/
public function getPositionListById(int $id, array $columns = ['*'], array $relations = []): array;
/**
* 通过id数组获取国家数组
* @param array $idList
......
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