lrf 2 년 전
부모
커밋
98ae76d148
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/public/ts-template.js

+ 1 - 1
app/public/ts-template.js

@@ -44,7 +44,7 @@ const ServiceContext = (data) => {
   fc.push(`import { InjectEntityModel } from '@midwayjs/typegoose';`);
   fc.push(`import { ReturnModelType } from '@typegoose/typegoose';`);
   fc.push(`import { BaseService } from 'free-midway-component';`);
-  fc.push(`import { ${prefix} } from '../entity/${table_name}';`);
+  fc.push(`import { ${prefix} } from '../entity/${table_name}.entity';`);
   fc.push(`type modelType = ReturnModelType<typeof ${prefix}>;`);
   fc.push(`@Provide()`);
   fc.push(`export class ${prefix}Service extends BaseService<modelType> {`);