feat: 自动提取方法参数和DTO/VO类型导入

🎯 核心修复:
1. generateMethodParameters - 从Java方法提取真实参数列表
   - 提取参数名和类型
   - 转换Java类型为TypeScript类型
   - 处理DTO/Vo/Param业务类型

2. extractDtosFromParameters - 从方法参数提取DTO/VO
   - 识别Dto/Vo/Param后缀的类型
   - 识别首字母大写的业务类型
   - 自动添加到import列表

 预期效果:
- 'Cannot find name param' → 0 (方法参数已提取)
- 'Cannot find name AddonDevelopListVo' → 0 (自动导入)
- 'Cannot find name AddonLogParam' → 0 (自动导入)

📊 预计错误: 14,948 → 预计 <10,000
This commit is contained in:
wanwu
2025-10-29 16:41:51 +08:00
parent 7bced43365
commit 3b754debe1
84 changed files with 165 additions and 86 deletions

View File

@@ -141,7 +141,7 @@ class ServiceGenerator {
/**
* 生成服务内容
*
* ✅ 增强自动分析方法体添加需要的imports
* ✅ 增强:自动分析方法体和参数添加需要的imports
*/
generateServiceContent(javaService, serviceName) {
// 先生成方法以便分析需要哪些imports
@@ -150,6 +150,18 @@ class ServiceGenerator {
// 分析方法体获取需要的imports
const additionalImports = this.analyzeAdditionalImports(methods);
// ✅ 分析方法参数提取DTO/VO类型
const parameterDtos = this.extractDtosFromParameters(javaService);
if (!javaService.dtos) {
javaService.dtos = [];
}
// 合并参数中的DTO到javaService.dtos去重
parameterDtos.forEach(dto => {
if (!javaService.dtos.includes(dto)) {
javaService.dtos.push(dto);
}
});
const imports = this.generateImports(javaService, additionalImports);
const decorators = this.generateDecorators();
const constructor = this.generateConstructor(javaService, additionalImports);
@@ -164,6 +176,46 @@ ${methods}
`;
}
/**
* 从方法参数中提取DTO/VO类型
*
* @param {object} javaService - Java服务对象
* @returns {string[]} DTO/VO类型列表
*/
extractDtosFromParameters(javaService) {
const dtos = new Set();
if (!javaService.methods) {
return [];
}
javaService.methods.forEach(method => {
if (!method.parameters) {
return;
}
method.parameters.forEach(param => {
const paramType = param.type;
if (!paramType) {
return;
}
// 检查是否是DTO/VO/Param类型通常包含这些后缀或首字母大写
if (paramType.includes('Dto') || paramType.includes('Vo') || paramType.includes('Param')) {
// 提取纯类型名(去除包名)
const simpleType = paramType.split('.').pop();
dtos.add(simpleType);
} else if (paramType[0] === paramType[0].toUpperCase() && !paramType.startsWith('String') && !paramType.startsWith('Integer') && !paramType.startsWith('Long')) {
// 其他业务类型首字母大写但排除Java基本类型
const simpleType = paramType.split('.').pop();
dtos.add(simpleType);
}
});
});
return Array.from(dtos);
}
/**
* 分析方法体识别需要的额外imports
*
@@ -479,10 +531,37 @@ ${body}
/**
* 生成方法参数
*
* ✅ 从Java方法中提取真实参数列表
*/
generateMethodParameters(method) {
// 简化:所有方法都接受任意参数,避免参数类型不匹配
return '...args: any[]';
// 如果没有参数列表,返回空
if (!method.parameters || method.parameters.length === 0) {
return '';
}
// 提取每个参数,转换类型
const params = method.parameters.map(param => {
const paramName = param.name || 'arg';
let paramType = this.mapJavaTypeToTypeScript(param.type || 'any');
// 如果是业务类型首字母大写检查是否需要添加Dto后缀
if (paramType && paramType[0] === paramType[0].toUpperCase()) {
// 已经有Dto/Vo/Param后缀的不重复添加
if (!paramType.endsWith('Dto') && !paramType.endsWith('Vo') && !paramType.endsWith('Param')) {
// 如果Java类型包含Param/Vo说明是DTO类型添加Dto后缀
if (param.type && (param.type.includes('Param') || param.type.includes('Vo') || param.type.includes('Dto'))) {
// 保持原类型名
} else {
// 其他业务类型暂不添加后缀
}
}
}
return `${paramName}: ${paramType}`;
});
return params.join(', ');
}
/**

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, AppConfigService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, AppConfigService, CommonUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, AppConfigService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, nestjs:UnauthorizedException, BadRequestException, UnauthorizedException } from '@nestjs/common';
import { Injectable, BadRequestException, UnauthorizedException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, AppConfigService, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:UnauthorizedException, UnauthorizedException } from '@nestjs/common';
import { Injectable, UnauthorizedException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, StringUtils, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, StringUtils, JsonUtils, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, AppConfigService, CommonUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, AppConfigService, CommonUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, AppConfigService, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, AppConfigService, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, StringUtils, AppConfigService, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, AppConfigService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, AppConfigService, CommonUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, AppConfigService, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, AppConfigService, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, AppConfigService, CommonUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, StringUtils, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, AppConfigService, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, StringUtils, AppConfigService, CommonUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, AppConfigService, CommonUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, AppConfigService, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, AppConfigService, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, AppConfigService, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, AppConfigService, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:UnauthorizedException, UnauthorizedException } from '@nestjs/common';
import { Injectable, UnauthorizedException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, AppConfigService, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, AppConfigService, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, StringUtils, AppConfigService, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, AppConfigService, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, AppConfigService, CommonUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:UnauthorizedException, UnauthorizedException } from '@nestjs/common';
import { Injectable, UnauthorizedException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, AppConfigService, CommonUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, CommonUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, StringUtils, JsonUtils, AppConfigService, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, StringUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, CommonUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, CommonUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, CommonUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, AppConfigService, CommonUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, AppConfigService, CommonUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, AppConfigService, CommonUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, AppConfigService, CommonUtils } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, AppConfigService, CommonUtils, RequestContextService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result, JsonUtils, AppConfigService } from '@wwjBoot';

View File

@@ -1,4 +1,4 @@
import { Injectable, nestjs:BadRequestException, BadRequestException } from '@nestjs/common';
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { QueueService, EventBus, Result } from '@wwjBoot';