This commit is contained in:
编码猿
2025-08-29 22:07:01 +08:00
parent 08057d0276
commit dc70b5fc26
10 changed files with 169 additions and 56 deletions

View File

@@ -4,8 +4,10 @@ const config = require("../config");
class File {
createdService(ServiceName, ServiceMethods) {
let fullPath = `${config.outPutServicePath}\\${ServiceName}.service.ts`
if (!existsSync(fullPath)) {
console.log("ServiceName: ", ServiceName);
console.log("ServiceMethods: ", ServiceMethods);
let fullPath = `${config.outPutServicePath}/${ServiceName}.service.ts`
// if (!existsSync(fullPath)) {
let mArray = Array.from(ServiceMethods, ([name, value]) => ({ name, value }));
writeFileSync(fullPath, this.stripIndent`
// @ts-nocheck
@@ -29,7 +31,7 @@ class File {
}
}
`)
}
// }
}