From 7013e6461fc8c5344716a6b2805a6eed378ce3be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=B9=E7=A3=8A?= <294531121@qq.com> Date: Thu, 8 Apr 2021 15:39:33 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-50744=20=E8=A1=A5=E4=B8=8A=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/fanruan/api/design/DesignKit.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/fanruan/api/design/DesignKit.java b/src/main/java/com/fanruan/api/design/DesignKit.java index d7f9768..2ff10ec 100644 --- a/src/main/java/com/fanruan/api/design/DesignKit.java +++ b/src/main/java/com/fanruan/api/design/DesignKit.java @@ -74,6 +74,12 @@ public class DesignKit { return getCurrentEditingTemplate().getTarget().getTemplateID(); } + /** + * 获取指定模板的ID + * + * @param template 指定模板 + * @return 模板ID + */ public static String getTemplateId(JTemplate template) { return template.getTarget().getTemplateID(); }