From 60eb4935e7e1395d8fdfd38bff4c44ef98a34177 Mon Sep 17 00:00:00 2001
From: linzhijie <19970921lzj>
Date: 星期一, 12 四月 2021 15:57:41 +0800
Subject: [PATCH] 优化
---
src/main/java/com/ots/common/enums/ReportTitle.java | 44 ++++++++++++++++++++++++++++++++++++++++++++
tai-ots-framework.iml | 3 +++
README.md | 4 ++++
3 files changed, 51 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..a5ffc18
--- /dev/null
+++ b/README.md
@@ -0,0 +1,4 @@
+## TAI_OTS_FRAMEWORK
+
+娴嬭瘎绯荤粺鏍稿績浠g爜
+
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 "";
+ }
+}
diff --git a/tai-ots-framework.iml b/tai-ots-framework.iml
index 04ddbce..24d0603 100644
--- a/tai-ots-framework.iml
+++ b/tai-ots-framework.iml
@@ -20,6 +20,9 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
+ <orderEntry type="library" name="Maven: dom4j:dom4j:1.6.1" level="project" />
+ <orderEntry type="library" name="Maven: xml-apis:xml-apis:1.4.01" level="project" />
+ <orderEntry type="library" name="Maven: jaxen:jaxen:1.1.6" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.1.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.1.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.1.1.RELEASE" level="project" />
--
Gitblit v1.9.1