/** * 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); }