import { Injectable } from '@nestjs/common' ; import { ParsedRequestParams } from '@nestjsx/crud-request' ; import { CrudRequestOptions } from '../../../src/interfaces' ; import { CreateManyDto , CrudRequest } from '../../../src/interfaces' ; import { CrudService } from '../../../src/services' ; @ Injectable ( ) export class TestService < T > extends CrudService < T > { async getMany ( req ) { return { req } ; } async getOne ( req ) { return { req } ; } async createOne ( req , dto ) { return { req , dto } ; } async createMany ( req , dto ) { return { req , dto } ; } async updateOne ( req , dto ) { return { req , dto } ; } async replaceOne ( req , dto ) { return { req , dto } ; } async deleteOne ( req ) { return { req } ; } async recoverOne ( req ) { return { req } ; } decidePagination ( parsed , options ) { return true ; } }