コード例 #1
0
        /// <summary>
        /// 获取部门成员(详情)
        /// </summary>
        /// <param name="department_id"></param>
        /// <param name="fetch_child">1/0:是否递归获取子部门下面的成员</param>
        /// <param name="status">0获取全部成员,1获取已关注成员列表,2获取禁用成员列表,4获取未关注成员列表。status可叠加</param>
        /// <returns></returns>
        public UserListRes User_List(int department_id, int fetch_child, int status)
        {
            var rel = QyAPI.User_List(access_token, department_id, fetch_child, status);

            if (IsAccessTokenError(rel))
            {
                rel = QyAPI.User_List(access_token, department_id, fetch_child, status);
                IsAccessTokenError(rel, false);
            }
            return(rel);
        }