Implement IIT quality workflow hardening across eQuery deduplication, guard metadata validation, timeline/readability improvements, and chat evidence fallbacks, then synchronize release and development documentation for deployment handoff. Includes migration/scripts for open eQuery dedupe guards, orchestration/status semantics, report/tool readability fixes, and updated module status plus deployment checklist. Made-with: Cursor
30 lines
916 B
TypeScript
30 lines
916 B
TypeScript
/**
|
|
* eQuery 路由
|
|
*/
|
|
|
|
import { FastifyInstance } from 'fastify';
|
|
import * as controller from './iitEqueryController.js';
|
|
|
|
export async function iitEqueryRoutes(fastify: FastifyInstance) {
|
|
// 获取项目的 eQuery 列表
|
|
fastify.get('/:projectId/equeries', controller.listEqueries);
|
|
|
|
// 获取 eQuery 统计
|
|
fastify.get('/:projectId/equeries/stats', controller.getEqueryStats);
|
|
|
|
// 获取单条 eQuery
|
|
fastify.get('/:projectId/equeries/:equeryId', controller.getEquery);
|
|
|
|
// CRC 回复 eQuery
|
|
fastify.post('/:projectId/equeries/:equeryId/respond', controller.respondEquery);
|
|
|
|
// AI 复核 eQuery
|
|
fastify.post('/:projectId/equeries/:equeryId/review', controller.reviewEquery);
|
|
|
|
// 手动关闭 eQuery
|
|
fastify.post('/:projectId/equeries/:equeryId/close', controller.closeEquery);
|
|
|
|
// 手动重开 eQuery
|
|
fastify.post('/:projectId/equeries/:equeryId/reopen', controller.reopenEquery);
|
|
}
|