|
@@ -14,12 +14,12 @@ class Dingtalk extends Base
|
|
|
* 获取部门列表
|
|
|
*
|
|
|
* @Apidoc\Method("POST")
|
|
|
- * @Apidoc\Param("parent_id", type="string",require=true, desc="父部门ID")
|
|
|
+ * @Apidoc\Param("dept_id", type="integer",require=true, desc="父部门ID")
|
|
|
*/
|
|
|
public function department_listsub()
|
|
|
{
|
|
|
- $parent_id = input('parent_id');
|
|
|
- $resp = DingtalkService::department_listsub($parent_id);
|
|
|
+ $dept_id = input('dept_id');
|
|
|
+ $resp = DingtalkService::department_listsub($dept_id);
|
|
|
$data = [];
|
|
|
foreach ($resp as $value) {
|
|
|
$data[] = [
|
|
@@ -38,7 +38,7 @@ class Dingtalk extends Base
|
|
|
* 获取部门详情
|
|
|
*
|
|
|
* @Apidoc\Method("POST")
|
|
|
- * @Apidoc\Param("dept_id", type="string",require=true, desc="部门ID")
|
|
|
+ * @Apidoc\Param("dept_id", type="integer",require=true, desc="部门ID")
|
|
|
*/
|
|
|
public function department_get()
|
|
|
{
|
|
@@ -51,7 +51,7 @@ class Dingtalk extends Base
|
|
|
* 获取部门用户详情
|
|
|
*
|
|
|
* @Apidoc\Method("POST")
|
|
|
- * @Apidoc\Param("dept_id", type="string",require=true, desc="部门ID")
|
|
|
+ * @Apidoc\Param("dept_id", type="integer",require=true, desc="部门ID")
|
|
|
*/
|
|
|
public function user_list()
|
|
|
{
|