18 lines
626 B
Plaintext
18 lines
626 B
Plaintext
## --------------------------------------------------
|
|
#if ( !($entity.hasTag("BaseModel") || $entity.hasTag("Omdb") || $entity.hasTag("Statistics")) )
|
|
#cancel("Not a Base or Omdb Model")
|
|
#end
|
|
## --------------------------------------------------
|
|
#set( $env.language = 'TypeScript' )
|
|
#foreach( $link in $entity.links )
|
|
import $link.fieldType.replace("[]", "") from "./${link.fieldType.replace("[]", "")}";
|
|
#end
|
|
|
|
export default interface $entity.name {
|
|
#foreach( $attribute in $entity.attributes )
|
|
${attribute.name}: ${attribute.type};
|
|
#end
|
|
#foreach( $link in $entity.links )
|
|
${link.fieldName}: ${link.fieldType};
|
|
#end
|
|
} |