dingtalk-mcp 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -32,12 +32,12 @@ tools:
|
|
|
32
32
|
description: 部门名称或者部门名称拼音
|
|
33
33
|
- name: offset
|
|
34
34
|
type: number
|
|
35
|
-
required:
|
|
35
|
+
required: true
|
|
36
36
|
position: body
|
|
37
37
|
description: 分页页码,默认0
|
|
38
38
|
- name: size
|
|
39
39
|
type: number
|
|
40
|
-
required:
|
|
40
|
+
required: true
|
|
41
41
|
position: body
|
|
42
42
|
description: 分页大小,默认10,最大100
|
|
43
43
|
|
|
@@ -458,18 +458,18 @@ export class DingTalkMCPServer {
|
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
});
|
|
461
|
-
// 为searchUser添加默认的分页参数
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
}
|
|
467
|
-
// 设置默认的size为20
|
|
468
|
-
if (body.size === undefined) {
|
|
469
|
-
body.size = 20;
|
|
470
|
-
}
|
|
471
|
-
console.error(`SearchUser API with params: offset=${body.offset}, size=${body.size}`);
|
|
461
|
+
// 为searchUser/searchDepartment添加默认的分页参数
|
|
462
|
+
|
|
463
|
+
// 设置默认的offset为0
|
|
464
|
+
if (body.offset === undefined) {
|
|
465
|
+
body.offset = 0;
|
|
472
466
|
}
|
|
467
|
+
// 设置默认的size为20
|
|
468
|
+
if (body.size === undefined) {
|
|
469
|
+
body.size = 20;
|
|
470
|
+
}
|
|
471
|
+
console.error(`SearchUser API with params: offset=${body.offset}, size=${body.size}`);
|
|
472
|
+
|
|
473
473
|
return Object.keys(body).length > 0 ? body : undefined;
|
|
474
474
|
}
|
|
475
475
|
async run() {
|