import { Injectable } from '@nestjs/common'; import { TypeOrmCrudService } from '@nestjsx/crud-typeorm'; import { InjectRepository } from '@nestjs/typeorm'; import { CommentEntity } from 'kkk-lib/article/entity/comment.entity'; @Injectable() export class CommentCrudService extends TypeOrmCrudService { constructor(@InjectRepository(CommentEntity) repo) { super(repo); } }