diff --git a/src/main/resources/templates/typescript_type.ftl b/src/main/resources/templates/typescript_type.ftl index 5499fe8..d414627 100644 --- a/src/main/resources/templates/typescript_type.ftl +++ b/src/main/resources/templates/typescript_type.ftl @@ -5,7 +5,9 @@ interface ${className} { <#-- 循环生成字段 ----------> <#list fieldList as field> + <#if field.comment!?length gt 0> // ${field.comment} + ${field.fieldName}: ${field.typescriptType}; }