Procházet zdrojové kódy

优化仓库接口

mac před 2 roky
rodič
revize
a8a7938d39

+ 12 - 2
kxs-common/kxs-common-core/src/main/java/com/kxs/common/core/constant/enums/LeaderTypeEnum.java

@@ -15,8 +15,13 @@ import lombok.RequiredArgsConstructor;
 public enum LeaderTypeEnum {
 
 
-    SMALL_LEADER(1, "小盟主"),
-    BIG_LEADER(2, "大盟主");
+    SMALL_LEADER(1, 5,"小盟主"),
+    BIG_LEADER(2, 7,"大盟主"),
+    OP_LEADER(3, 9,"运营中心"),
+    GOLD_LEADER(4, 9,"黄金"),
+    DI_LEADER(5, 9,"钻石"),
+    TC_LEADER(6, 9,"战略")
+    ;
 
 
     /**
@@ -24,6 +29,11 @@ public enum LeaderTypeEnum {
      */
     private final Integer type;
 
+    /**
+     * 职级
+     */
+    private final Integer level;
+
     /**
      * 描述
      */

+ 2 - 0
kxs-gateway/src/main/java/com/kxs/gateway/api/filter/RequestDecoderFilter.java

@@ -208,6 +208,8 @@ public class RequestDecoderFilter extends AbstractGatewayFilterFactory<Object> {
             MultiValueMap<String, String> queryParams = exchange.getRequest().getQueryParams();
             String decryptedParam = queryParams.getFirst(PARAM_NAME);
             if (CharSequenceUtil.isEmpty(decryptedParam)) {
+                //可以选择强解密,必须接收加密后的参数
+//                return Mono.error(new AesDecodeException(ErrorTypeEnum.DECRYPT_ERROR.getDescription()));
                 return chain.filter(exchange);
             }
             byte[] decode = Base64.getMimeDecoder().decode(decryptedParam);

+ 1 - 0
kxs-store/kxs-store-api/src/main/java/com/kxs/store/api/dto/kxsapp/storeOrder/ApplyMachineDTO.java

@@ -73,6 +73,7 @@ public class ApplyMachineDTO {
      * 申请类型 1循环申请 0兑换券
      */
     @Schema(description = "申请类型 1循环申请 0兑换券")
+    @NotNull(message = "申请类型不能为空")
     private Integer applyType;