From f8a78f541c6275f78524eb85ee0cf037e6549437 Mon Sep 17 00:00:00 2001 From: easybin <53216212+Homby@users.noreply.github.com> Date: Tue, 2 May 2023 23:46:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dtypescript=5Ftype.ftl?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E5=9B=A0comment=E5=87=BA=E7=8E=B0null?= =?UTF-8?q?=E8=80=8C=E5=AF=BC=E8=87=B4"=E7=94=9F=E6=88=90=E9=94=99?= =?UTF-8?q?=E8=AF=AF,=E6=9C=8D=E5=8A=A1=E5=99=A8=E9=94=99=E8=AF=AF"?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/templates/typescript_type.ftl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/resources/templates/typescript_type.ftl b/src/main/resources/templates/typescript_type.ftl index 5499fe8..492e64c 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> - // ${field.comment} + <#if field.comment??> + // ${field.comment} + ${field.fieldName}: ${field.typescriptType}; }