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