import { Injectable } from '@nestjs/common' ; import { RootConfig , DatabaseConfig , TableConfig } from './config' ; @ Injectable ( ) export class AppService { constructor ( private config , private databaseConfig , private tableConfig ) { } public show ( ) { const out = [ `root.name: ${ this . config . name }` , `root.database.name: ${ this . databaseConfig . name }` , `root.database.table.name: ${ this . tableConfig . name }` , ] . join ( '\n' ) ; return `${ out }\n` ; } }