feat(wecom): 企微 MCP 增加开发计划版本与任务查询
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -219,4 +219,29 @@ export class WecomPluginController {
|
||||
) {
|
||||
return this.query.queryMetrics(plugin, wecomPluginCaller(req), kind);
|
||||
}
|
||||
|
||||
@Get('versions')
|
||||
versions(
|
||||
@CurrentWecomPlugin() plugin: WecomPluginRuntime,
|
||||
@Req() req: Request,
|
||||
@Query('q') q?: string,
|
||||
@Query('status') status?: string,
|
||||
@Query('page') page?: string,
|
||||
@Query('pageSize') pageSize?: string,
|
||||
) {
|
||||
return this.query.queryVersions(plugin, wecomPluginCaller(req), q, status, page, pageSize);
|
||||
}
|
||||
|
||||
@Get('tasks')
|
||||
tasks(
|
||||
@CurrentWecomPlugin() plugin: WecomPluginRuntime,
|
||||
@Req() req: Request,
|
||||
@Query('q') q?: string,
|
||||
@Query('status') status?: string,
|
||||
@Query('versionNo') versionNo?: string,
|
||||
@Query('page') page?: string,
|
||||
@Query('pageSize') pageSize?: string,
|
||||
) {
|
||||
return this.query.queryTasks(plugin, wecomPluginCaller(req), q, status, versionNo, page, pageSize);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user