Browse Source

add XdApplyCmd

GITZYY 4 months ago
parent
commit
6ff64313a9

+ 45 - 0
egress-gateway-service-client/src/main/java/com/hrsk/cloud/eg/client/constant/UserBorrowMoneyEnum.java

@@ -0,0 +1,45 @@
+package com.hrsk.cloud.eg.client.constant;
+
+import lombok.Getter;
+
+import java.util.ArrayList;
+import java.util.List;
+
+@Getter
+public enum UserBorrowMoneyEnum {
+
+    LESS_FIFTH_THOUSAND(0, 0, 50000, 5, "5万及以下"),
+    FIFTH_TO_TWO_HUNDRED_THOUSAND(1, 50000, 200000, 10, "5-20万"),
+    MORE_TWO_HUNDRED_THOUSAND(2, 200000, 20000000, 20, "20万以上");
+
+
+    private Integer code;
+
+    private Integer min;
+
+    private Integer max;
+
+    private Integer borrowMoney;
+
+    private String msg;
+
+    public static List<Integer> borrowMoneyList = new ArrayList<>();
+
+    UserBorrowMoneyEnum(Integer code, Integer min, Integer max, Integer borrowMoney, String msg) {
+        this.code = code;
+        this.min = min;
+        this.max = max;
+        this.borrowMoney = borrowMoney;
+        this.msg = msg;
+    }
+
+    static {
+        for (UserBorrowMoneyEnum e : UserBorrowMoneyEnum.values()) {
+            borrowMoneyList.add(e.getBorrowMoney());
+        }
+    }
+
+    static List<Integer> getBorrowMoneyList() {
+        return borrowMoneyList;
+    }
+}

+ 2 - 0
egress-gateway-service-client/src/main/java/com/hrsk/cloud/eg/client/dto/user/command/UserBaseInfoCmd.java

@@ -105,4 +105,6 @@ public class UserBaseInfoCmd implements Serializable {
     // 锁
     private Integer lock = null;
 
+    private XdApplyCmd xdApplyCmd;
+
 }

+ 44 - 0
egress-gateway-service-client/src/main/java/com/hrsk/cloud/eg/client/dto/user/command/XdApplyCmd.java

@@ -0,0 +1,44 @@
+package com.hrsk.cloud.eg.client.dto.user.command;
+
+import com.hrsk.cloud.eg.client.constant.UserBorrowMoneyEnum;
+import lombok.Data;
+
+import java.math.BigDecimal;
+
+@Data
+public class XdApplyCmd {
+
+    private String orderId;
+
+    //借款金额 单位万元,1-100之间的整数。
+    private Integer borrowMoney;
+
+    //贷款金额范围
+    private UserBorrowMoneyEnum borrowMoneyRange;
+
+    //借款期限 1.1个月 2.3个月 3.6个月 4.9个月 5.12个月 6.24个月 7.36个月 8.36个月以上
+    private Integer borrowLimit;
+
+    private Integer borrowPurpose;
+    private String channelCode;
+    private String channelName;
+
+    private Integer deliveryMethod;
+
+    private String requestId;
+
+    private String ip;
+
+    //结算参数
+    private BigDecimal allianceConfigTypePrice;
+
+    private String productName;
+
+    private String institutionName;
+
+    //结算参数
+    private BigDecimal originPrice;
+
+    private String logo;
+
+}