💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
>[info] 获取指定部门的所有父部门列表 调用本接口获取指定部门的所有父部门ID列表。 **官方文档地址:** [链接](https://open.dingtalk.com/document/orgapp-server/query-the-list-of-all-parent-departments-of-a-department) * 代码: ~~~ $dept_id = 808357313; $res = Department::listparentbydept($dept_id); echo($res); ~~~ * 返回: ``` { "errcode": 0, "errmsg": "ok", "result": { "parent_id_list": [ 808357313, 1 ] }, "request_id": "15rk6m1hx86ax" } ```