0.2.4 • Published 6 years ago
egg-typed-di v0.2.4
egg-typed-di
Quick overview
Service
import { Service, serviceMetadata, Context } from 'egg-typed';
@context()
export class TestService extends Service {
get(id: string | number) {
return {
id,
name: this.app.config.test + '_' + id,
};
}
}
export class Controller {
private testService: TestService;
}