Skip to content

Commit 293e13f

Browse files
feat: change stub of controller and service
1 parent cdca44a commit 293e13f

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

libs/stubs/modules/entities/entity.stub

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ import { Entity } from 'typeorm';
22
import { BaseEntity } from '~core/entities/base.entity';
33

44
@Entity('$$CLASS$$')
5-
export class $$CLASS$$Entity extends BaseEntity {}
5+
export class $$CLASS$$Entity extends BaseEntity {
6+
@Column()
7+
test: string;
8+
}

libs/stubs/modules/services/service.stub

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Injectable } from '@nestjs/common';
22
import { $$CLASS$$Repository } from '../repositories/$$FILENAME$$.repository';
33
import { $$CLASS$$Entity } from '../entities/$$FILENAME$$.entity';
44
import { PaginationCollection } from '@hodfords/typeorm-helper';
5-
import { Create$$CLASS$$Dto } from '../dto/create-$$FILENAME$$.dto';
5+
import { Create$$CLASS$$Dto } from '../http/dto/create-$$FILENAME$$.dto';
66
import { PaginationParams } from '@hodfords/nestjs-base-decorator';
77

88
@Injectable()

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hodfords/nestjs-command",
3-
"version": "10.0.3",
3+
"version": "10.0.4",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)