From f8bf5c88605e51b409d89c9cbd966942796e3ec5 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 19 九月 2025 09:23:20 +0800
Subject: [PATCH] 优化
---
server/src/main/java/com/doumee/core/constants/Constants.java | 34 ++++++++++++++++++++++------------
1 files changed, 22 insertions(+), 12 deletions(-)
diff --git a/server/src/main/java/com/doumee/core/constants/Constants.java b/server/src/main/java/com/doumee/core/constants/Constants.java
index 60f38a3..6fe2279 100644
--- a/server/src/main/java/com/doumee/core/constants/Constants.java
+++ b/server/src/main/java/com/doumee/core/constants/Constants.java
@@ -42,6 +42,8 @@
public static final String SOLVE_SCHEME ="SOLVE_SCHEME" ;
public static final String WISDOM_SYSTEM ="WISDOM_SYSTEM" ;
public static final String HONORS ="HONORS" ;
+ public static final String YQLINKS ="YQLINKS" ;
+ public static final String QYEMAIL ="QYEMAIL" ;
public static final String FOOT_WORDS ="FOOT_WORDS" ;
@@ -68,27 +70,35 @@
*/
@Getter
public enum PageIndex {
- defaultPage( -1, "榛樿椤�","default.html","default.html"),
- index( 0, "棣栭〉","index.html","index.html"),
- zhxt( 1, "鏅烘収绯荤粺涓�绾ч〉","intelligent_system.html","intelligent_system.html"),
- zhxt2( 2, "鏅烘収鍦洪浜岀骇椤�","index.html","index.html"),
- about( 3, "鍏充簬鎴戜滑","about.html","about.html"),
- operation( 4, "娓犻亾鍚堜綔","operation.html","operation.html"),
- dynamics( 5, "鏈�鏂板姩鎬�","dynamics.html","dynamics.html"),
- alot( 6, "alot鐗╄仈","alot.html","alot.html"),
- dynamicsDetail( 7, "鏈�鏂板姩鎬佽鎯�","dynamics_details.html","dynamics/${id}.html"),
- solution( 8, "瑙e喅鏂规","solution.html","solution.html"),
- casesDetail( 9, "瀹㈡埛妗堜緥璇︽儏椤�","case_details.html","cases/${id}.html");
+ defaultPage( -1, "榛樿椤�", "default.html","default.html",-1),
+ index( 0, "棣栭〉","index.html","index.html",0),
+ zhxt( 1, "鏅烘収鍦洪杩愯惀绯荤粺","intelligent_system.html","intelligent_system.html",1),
+ zhxt2( 2, "鏅烘収鍦洪杩愮淮绯荤粺","operation.html","operation.html",1),
+ about( 3, "鍏充簬鎴戜滑","about.html","about.html",5),
+ operation( 4, "娓犻亾鍚堜綔","aboutChannel.html","aboutChannel.html",6),
+ dynamics( 5, "鏈�鏂板姩鎬�","dynamics.html","dynamics.html",4),
+ alot( 6, "alot鐗╄仈","alot.html","alot.html",3),
+ dynamicsDetail( 7, "鏈�鏂板姩鎬佽鎯�","dynamics_details.html","dynamics/${id}.html",4),
+ solution( 8, "瑙e喅鏂规-鏁版櫤浣撹偛鍦洪","solution.html","solution.html",2),
+ casesDetail( 9, "瀹㈡埛妗堜緥璇︽儏椤�","case_details.html","cases/${id}.html",0),
+ solutioMeadowlands( 10, "瑙e喅鏂规-24H鏅鸿兘鍦洪","solution-meadowlands.html","solution-meadowlands.html",2),
+ solutionSport( 11, "瑙e喅鏂规-鏅尯&娓镐箰鍥�","solution-sport.html","solution-sport.html",2),
+ solutionScenicSpot( 12, "瑙e喅鏂规-鏁版櫤浣撹偛骞冲彴","solution-scenicSpot.html","solution-scenicSpot.html",2),
+ solutionSpace( 13, "瑙e喅鏂规-绌洪棿鏅烘収绠$悊","solution-space.html","solution-space.html",2),
+ bannerDetails( 14, "棣栭〉-杞挱鍥捐鎯�","banner_details.html","banners/${id}.html",0);
+
private int key;
private String name;
private String template;
private String html;
+ private int navIndex;
- PageIndex(int key, String name,String template,String html) {
+ PageIndex(int key, String name,String template,String html,int navIndex) {
this.html = html;
this.key = key;
this.name = name;
this.template = template;
+ this.navIndex = navIndex;
}
public static PageIndex getObj(int index) {
for (PageIndex c : PageIndex.values()) {
--
Gitblit v1.9.3