Loading src/Constants/Department.php 0 → 100644 +15 −0 Original line number Diff line number Diff line <?php /** * Created by PhpStorm. * User: Zero * Time: 2020/10/27 9:21 */ namespace Meibuyu\Micro\Constants; class Department { const HR = 18; } src/Service/Interfaces/UserServiceInterface.php +10 −0 Original line number Diff line number Diff line Loading @@ -121,4 +121,14 @@ interface UserServiceInterface */ public function getDirectLeadersByIds($userIds); /** * 判断用户是否属于某个部门 * @param mixed $userId 用户id * @param mixed $deptId 部门id,判断多个部门传数组 * @param bool $withChildren 是否包含子部门,默认false * @return bool * @author Zero */ public function belongToDepartments($userId, $deptId, $withChildren = false): bool; } Loading
src/Constants/Department.php 0 → 100644 +15 −0 Original line number Diff line number Diff line <?php /** * Created by PhpStorm. * User: Zero * Time: 2020/10/27 9:21 */ namespace Meibuyu\Micro\Constants; class Department { const HR = 18; }
src/Service/Interfaces/UserServiceInterface.php +10 −0 Original line number Diff line number Diff line Loading @@ -121,4 +121,14 @@ interface UserServiceInterface */ public function getDirectLeadersByIds($userIds); /** * 判断用户是否属于某个部门 * @param mixed $userId 用户id * @param mixed $deptId 部门id,判断多个部门传数组 * @param bool $withChildren 是否包含子部门,默认false * @return bool * @author Zero */ public function belongToDepartments($userId, $deptId, $withChildren = false): bool; }