递归获取部门树
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
work_bench_context | WorkBenchContext | 可选 | 平台统一权限校验 | ||
|
|||||
deptment_id | Number | 可选 | 1 | 部门id |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | PojoResult | {} | 请求响应 |
|
1 2 3 4 5 6 7 8 9 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaCampusCoreDepartmentGetalldepttreeRequest req = new AlibabaCampusCoreDepartmentGetalldepttreeRequest(); AlibabaCampusCoreDepartmentGetalldepttreeRequest.WorkBenchContext obj1 = new AlibabaCampusCoreDepartmentGetalldepttreeRequest.WorkBenchContext(); obj1.setCompanyId(1L); obj1.setCampusId(1L); req.setWorkBenchContext(obj1); req.setDeptmentId(1L); AlibabaCampusCoreDepartmentGetalldepttreeResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | < alibaba_campus_core_department_getalldepttree_response > < result > < content > < company_id >1</ company_id > < short_name >研发</ short_name > < dept_name_path >/阿里巴巴/研发部</ dept_name_path > < super_dept_id >1</ super_dept_id > < name >研发部</ name > < id >1</ id > < childs > < string >"{}"</ string > </ childs > </ content > < request_id >1</ request_id > < error_code >200</ error_code > < error_msg >ok</ error_msg > < success >true</ success > < error_ext_info >{"errormsg":"ok"}</ error_ext_info > < error_level >0</ error_level > </ result > </ alibaba_campus_core_department_getalldepttree_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|