feat: add service model to schematics

pull/5137/head
Arman Ozak 5 years ago
parent eb170e79de
commit 5c5c9e31bb

@ -2,4 +2,5 @@ export * from './api-definition';
export * from './import';
export * from './method';
export * from './project';
export * from './service';
export * from './util';

@ -0,0 +1,17 @@
import { Import } from './import';
import { Method } from './method';
import { Omissible } from './util';
export class Service {
apiName: string;
imports: Import[] = [];
methods: Method[] = [];
name: string;
namespace: string;
constructor(options: ServiceOptions) {
Object.assign(this, options);
}
}
export type ServiceOptions = Omissible<Service, 'imports' | 'methods'>;
Loading…
Cancel
Save