Commit 89d915e7 authored by 王源's avatar 王源
Browse files

Merge branch 'user-rpc'

parents 012667a2 6de0b9f3
Loading
Loading
Loading
Loading
+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;

}
+10 −0
Original line number Diff line number Diff line
@@ -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;

}