first commit
This commit is contained in:
24
templates/model-entity.mustache
Normal file
24
templates/model-entity.mustache
Normal file
@@ -0,0 +1,24 @@
|
||||
{{#models}}
|
||||
{{#model}}
|
||||
{{#imports}}
|
||||
import { {{classname}} } from './{{classFilename}}.model';
|
||||
{{/imports}}
|
||||
|
||||
/**
|
||||
* {{classname}} Entity
|
||||
* {{#description}}{{description}}{{/description}}
|
||||
* Generated from OpenAPI schema
|
||||
*/
|
||||
export class {{classname}} {
|
||||
{{#vars}}
|
||||
{{#description}}
|
||||
/**
|
||||
* {{description}}
|
||||
*/
|
||||
{{/description}}
|
||||
{{name}}{{^required}}?{{/required}}: {{dataType}};
|
||||
{{/vars}}
|
||||
}
|
||||
|
||||
{{/model}}
|
||||
{{/models}}
|
||||
Reference in New Issue
Block a user