Skip to content

Commit

Permalink
feat: change stub of controller and service
Browse files Browse the repository at this point in the history
  • Loading branch information
hodfords-dzung-nt-be committed Jun 23, 2024
1 parent cdca44a commit 293e13f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion libs/stubs/modules/entities/entity.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ import { Entity } from 'typeorm';
import { BaseEntity } from '~core/entities/base.entity';

@Entity('$$CLASS$$')
export class $$CLASS$$Entity extends BaseEntity {}
export class $$CLASS$$Entity extends BaseEntity {
@Column()
test: string;
}
2 changes: 1 addition & 1 deletion libs/stubs/modules/services/service.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Injectable } from '@nestjs/common';
import { $$CLASS$$Repository } from '../repositories/$$FILENAME$$.repository';
import { $$CLASS$$Entity } from '../entities/$$FILENAME$$.entity';
import { PaginationCollection } from '@hodfords/typeorm-helper';
import { Create$$CLASS$$Dto } from '../dto/create-$$FILENAME$$.dto';
import { Create$$CLASS$$Dto } from '../http/dto/create-$$FILENAME$$.dto';
import { PaginationParams } from '@hodfords/nestjs-base-decorator';

@Injectable()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hodfords/nestjs-command",
"version": "10.0.3",
"version": "10.0.4",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 293e13f

Please sign in to comment.