From 610732f74f40132de50b86b63931161460d25e57 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期二, 08 七月 2025 18:21:43 +0800 Subject: [PATCH] ss --- server/src/main/java/com/doumee/core/constants/Constants.java | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 45 insertions(+), 1 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 46e31ec..f5d4745 100644 --- a/server/src/main/java/com/doumee/core/constants/Constants.java +++ b/server/src/main/java/com/doumee/core/constants/Constants.java @@ -34,12 +34,14 @@ public static final String IMG_DIR = "IMG_DIR"; public static final String FILE_DIR ="FILE_DIR" ; public static final String FOOT_IMGURL ="FOOT_IMGURL" ; + public static final String FOOT_IMGURL2 ="FOOT_IMGURL2" ; public static final String LINK_PHONE ="LINK_PHONE" ; public static final String LINK_MOBILE ="LINK_MOBILE" ; public static final String SERVER_TIME ="SERVER_TIME" ; public static final String ADDRESS ="ADDRESS" ; 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 FOOT_WORDS ="FOOT_WORDS" ; @@ -51,6 +53,8 @@ public static final Integer FOUR = 4; public static final Integer SIX = 6; public static final Integer FIVE = 5; + public static final String WEB_DOMAIN = "WEB_DOMAIN"; + public static final String STATIC_PAGES_PATH ="STATIC_PAGES_PATH" ; public static boolean WORKORDER_SHE_EMAIL_SENDING = false; public static boolean DEALING_COMPANY_SYNC = false ; public static boolean DEALING_MEMBER_SYNC = false ; @@ -58,6 +62,47 @@ public static final String WORKORDER_LOG_FILE_PATH ="WORKORDER_LOG_FILE_PATH" ; public static final String REDIS_TOKEN_KEY = "token_"; + + /** + * 鍒嗙墖鐘舵�� + */ + @Getter + public enum PageIndex { + 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, "鏅烘収鍦洪浜岀骇椤�","index.html","index.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); + private int key; + private String name; + private String template; + private String html; + private int navIndex; + + 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()) { + if (c.getKey() == index) { + return c; + } + } + return defaultPage; + } + + + } public interface uploadType{ String blob = "blob"; String ftp = "ftp"; @@ -150,7 +195,6 @@ private int code; private String remark; } - /** * 鍒嗙墖鐘舵�� */ -- Gitblit v1.9.3