From 93ad816412d96639a27228d629f1771757189e82 Mon Sep 17 00:00:00 2001 From: zhijie <1003392067@qq.com> Date: 星期二, 15 六月 2021 22:50:11 +0800 Subject: [PATCH] 修复简易版模型结果 --- src/main/java/com/ots/common/enums/ReportTitle.java | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/ots/common/enums/ReportTitle.java b/src/main/java/com/ots/common/enums/ReportTitle.java new file mode 100644 index 0000000..fccd1ea --- /dev/null +++ b/src/main/java/com/ots/common/enums/ReportTitle.java @@ -0,0 +1,44 @@ +package com.ots.common.enums; + +/** + * @author zhijie + * @date 2021/03/19 + * @Description: 鎶ュ憡閭欢鏍囬绫� + */ +public enum ReportTitle { + ZH("濮撳悕","Chinese", "%s鐨�%s娴嬭瘎鎶ュ憡"), + US("Name","English", "%s's %s Report"), + TAI("喔娻阜喙堗腑","Thai", "喔`覆喔⑧竾喔侧笝喔佮覆喔`笡喔`赴喙�喔∴复喔� %s 喔傕腑喔� %s"), + ; + public final String field; + public final String langType; + public final String reportTitle; + + + + ReportTitle(String field,String langType, String reportTitle) { + this.field = field; + this.langType = langType; + this.reportTitle = reportTitle; + } + + public static String getReportTitle(String langType) { + ReportTitle[] types = ReportTitle.values(); + for (ReportTitle type : types) { + if (type.langType.equals(langType)) { + return type.reportTitle; + } + } + return ""; + } + + public static String getField(String langType) { + ReportTitle[] types = ReportTitle.values(); + for (ReportTitle type : types) { + if (type.langType.equals(langType)) { + return type.field; + } + } + return ""; + } +} -- Gitblit v1.9.1