From edb50cb0dc65061d5ce9f8d4ff26fcee12b09eee Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期六, 19 七月 2025 15:07:01 +0800
Subject: [PATCH] 调接口
---
server/services/src/main/java/com/doumee/core/constants/Constants.java | 132 ++++++++++++++++++++++++++++++++++++++++---
1 files changed, 121 insertions(+), 11 deletions(-)
diff --git a/server/services/src/main/java/com/doumee/core/constants/Constants.java b/server/services/src/main/java/com/doumee/core/constants/Constants.java
index 5fa236d..c2f64ee 100644
--- a/server/services/src/main/java/com/doumee/core/constants/Constants.java
+++ b/server/services/src/main/java/com/doumee/core/constants/Constants.java
@@ -18,13 +18,7 @@
public static final String HWY_OBS_ACCESSKEY ="HWY_OBS_ACCESSKEY" ;
public static final String HWY_OBS_ENDPOINT ="HWY_OBS_ENDPOINT" ;
public static final String HWY_OBS_BUCKET ="HWY_OBS_BUCKET" ;
- public static final String FTP ="FTP" ;
- public static final String FTP_HOST ="FTP_HOST" ;
- public static final String FTP_PORT ="FTP_PORT" ;
- public static final String FTP_USERNAME ="FTP_USERNAME" ;
- public static final String FTP_PWD ="FTP_PWD" ;
- public static final String FTP_RESOURCE_PATH ="FTP_RESOURCE_PATH" ;
- public static final String FTP_LOCAL_RESOURCE_PATH ="FTP_LOCAL_RESOURCE_PATH" ;
+ public static final String RESOURCE_PATH ="RESOURCE_PATH" ;
public static final String QYWX_CORPID = "QYWX_CORPID";
public static final String QYWX_SECRET = "QYWX_SECRET";
public static final String QYWX_TOKEN = "QYWX_TOKEN";
@@ -50,6 +44,9 @@
public static final String SERVER_INTRODUCE ="SERVER_INTRODUCE" ;
public static final String FEE_STANDARDS ="FEE_STANDARDS" ;
public static final String ABOUT_US ="ABOUT_US" ;
+ public static final String SERVER_PHONE ="SERVER_PHONE" ;
+ public static final String USER_AGREEMENT ="USER_AGREEMENT" ;
+ public static final String PRIVACY_AGREEMENT ="PRIVACY_AGREEMENT" ;
public static final String RELEASE_CANCEL_TIMES ="RELEASE_CANCEL_TIMES" ;
@@ -58,6 +55,7 @@
public static final String RECEIVE_CANCEL_TIME ="RECEIVE_CANCEL_TIME" ;
public static final String AUTO_DISPATCH ="AUTO_DISPATCH" ;
public static final String AUTO_DISPATCH_DISTANCE ="AUTO_DISPATCH_DISTANCE" ;
+ public static final String AUTO_CONFIRM ="AUTO_CONFIRM" ;
public static final String QYWX = "QYWX";
public static final Integer ONE = 1;
@@ -67,6 +65,10 @@
public static final Integer FOUR = 4;
public static final Integer SIX = 6;
public static final Integer FIVE = 5;
+ public static final String INENTITY_FILES = "INENTITY_FILES";
+ public static final String MEMBER_FILES = "MEMBER_FILES";
+ public static final String CATEGORY_FILES = "CATEGORY_FILES";
+ public static final String ORDERS_FILES = "ORDERS_FILES";
public static boolean WORKORDER_SHE_EMAIL_SENDING = false;
public static boolean DEALING_COMPANY_SYNC = false ;
public static boolean DEALING_MEMBER_SYNC = false ;
@@ -85,7 +87,7 @@
interface CacheKey {
}
public interface RedisKeys {
- public static final String IMPORTING_CATEGORY = "IMPORTING_CATEGORY";
+ public static final String ORDER_CODE = "ORDER_CODE";
}
/**
* 鎿嶄綔绫诲瀷锛岀敤浜庡仛鎺ュ彛楠岃瘉鍒嗙粍
@@ -357,9 +359,9 @@
@Getter
public enum RevenueType {
- YGD_INCOME( 0, "鐢ㄥ伐鍗曟敹鍏�","鐢ㄥ伐鍗曟敹鍏�" ,0),
- HYD_INCOME( 1, "璐ц繍鍗曟敹鍏�","璐ц繍鍗曟敹鍏�" ,0),
- GCD_INCOME(2, "渚涢鍗曟敹鍏�","渚涢鍗曟敹鍏�" ,0),
+ YGD_INCOME( 0, "鐢ㄥ伐鍗曟敹鍏�","鐢ㄥ伐鍗�" ,0),
+ HYD_INCOME( 1, "璐ц繍鍗曟敹鍏�","璐ц繍鍗�" ,0),
+ GCD_INCOME(2, "渚涢鍗曟敹鍏�","渚涢鍗�" ,0),
WITHDRAW_APPLY(3, "鎻愮幇鐢宠","鎻愮幇鐢宠" ,0),
REFUND( 4, "鎻愮幇鐢宠閫�鍥�","鎻愮幇鐢宠閫�鍥�" ,0)
;
@@ -379,6 +381,22 @@
for (RevenueType c : RevenueType.values()) {
if (c.getKey() == index) {
return c;
+ }
+ }
+ return null;
+ }
+ public static String getName(int index) {
+ for (RevenueType c : RevenueType.values()) {
+ if (c.getKey() == index) {
+ return c.getName();
+ }
+ }
+ return null;
+ }
+ public static String getInfo(int index) {
+ for (RevenueType c : RevenueType.values()) {
+ if (c.getKey() == index) {
+ return c.getInfo();
}
}
return null;
@@ -412,6 +430,8 @@
COMMENT(10, "鍙戝崟鏂�-璇勪环瀹屾垚","{userName}瀹屾垚璇勪环",0),
SYSTEM_CANCEL(11, "绯荤粺-璁㈠崟鍙栨秷","绯荤粺鍙栨秷",2),
RELEASE_CANCEL(12, "鍙戝崟鏂�-璁㈠崟鍙栨秷","{userName}宸叉墜鍔ㄥ彇娑堣鍗�",0),
+ AUTO_COMMENT(13, "绯荤粺-鑷姩璇勪环","瓒呭嚭7鏃ユ湭璇勪环锛岀郴缁熷凡鑷姩璇勪环",2),
+ AUTO_AGREE(14, "绯荤粺-鑷姩鍚屾剰","鎺ュ崟鏂硅秴鏃舵湭澶勭悊锛屽凡鑷姩鍚屾剰",2),
;
// 鎴愬憳鍙橀噺
@@ -481,5 +501,95 @@
}
+ public enum workType {
+ czg(0, "閲囨憳宸�"),
+ fjg(1, "鍒嗘嫞宸�"),
+ bzg(2, "鍖呰宸�"),
+
+ ;
+ // 鎴愬憳鍙橀噺
+ private int key;
+ private String name;
+
+ // 鏋勯�犳柟娉�
+ workType(int key, String name) {
+ this.name = name;
+ this.key = key;
+ }
+
+ // 鏅�氭柟娉�
+ public static String getName(int index) {
+ for (workType c : workType.values()) {
+ if (c.getKey() == index) {
+ return c.name;
+ }
+ }
+ return null;
+ }
+ // get set 鏂规硶
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public int getKey() {
+ return key;
+ }
+
+ public void setKey(int key) {
+ this.key = key;
+ }
+
+ }
+
+
+ public enum ordersStatus {
+ waitPay(0, "寰呮敮浠�"),
+ wait(1, "寰呮帴鍗�"),
+ accept(2, "宸叉帴鍗�"),
+ doing(3, "杩涜涓�"),
+ done(4, "宸插畬鎴�"),
+ cancel(99, "宸插彇娑�"),
+ ;
+ // 鎴愬憳鍙橀噺
+ private int key;
+ private String name;
+
+ // 鏋勯�犳柟娉�
+ ordersStatus(int key, String name) {
+ this.name = name;
+ this.key = key;
+ }
+
+ // 鏅�氭柟娉�
+ public static String getName(int index) {
+ for (ordersStatus c : ordersStatus.values()) {
+ if (c.getKey() == index) {
+ return c.name;
+ }
+ }
+ return null;
+ }
+ // get set 鏂规硶
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public int getKey() {
+ return key;
+ }
+
+ public void setKey(int key) {
+ this.key = key;
+ }
+
+ }
}
--
Gitblit v1.9.3