TRX преди 1 година
родител
ревизия
90f9af40bd

+ 1 - 1
src/main/java/com/github/microservice/models/requestModel/SuperResponseModel.java

@@ -25,7 +25,7 @@ public class SuperResponseModel {
 
     private String errInfo;
 
-    public boolean isSuccess = true;
+    public boolean isSuccess = false;
 
     @Schema(description = "消耗的毫秒数")
     private Long millis;

+ 9 - 0
src/main/java/com/github/microservice/stream/PaymentStreamType.java

@@ -0,0 +1,9 @@
+package com.github.microservice.stream;
+
+/**
+ * 支付相关的消息类型
+ */
+public enum PaymentStreamType {
+    UnionFrictionStateStream, // 签约状态变化
+    ;
+}

+ 24 - 0
src/main/java/com/github/microservice/stream/model/SignModel.java

@@ -0,0 +1,24 @@
+package com.github.microservice.stream.model;
+
+import com.github.microservice.types.unionFrictionlessPayType.ContractState;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+/**
+ * @author TRX
+ * @date 2024/8/30
+ */
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+public class SignModel {
+    private String userId;
+
+    @Schema(description = "商户代码")
+    private String mid;
+
+    @Schema(description = "签约状态")
+    private ContractState contractState;
+}

+ 21 - 0
src/main/java/com/github/microservice/types/unionFrictionlessPayType/ContractState.java

@@ -0,0 +1,21 @@
+package com.github.microservice.types.unionFrictionlessPayType;
+
+/**
+ * 无感支付签约状态
+ */
+public enum ContractState {
+
+    UNSIGNED("未签约"),
+    SIGNED("已签约"),
+    RESCISSION("已解约"),
+    DELETING_CONTRACT("解约中"),
+    UNKNOWN("未知"),
+    ;
+
+    // 名称
+    private String name;
+
+    ContractState(String name) {
+        this.name = name;
+    }
+}

+ 18 - 0
src/main/java/com/github/microservice/types/unionFrictionlessPayType/UnionUserOpenType.java

@@ -0,0 +1,18 @@
+package com.github.microservice.types.unionFrictionlessPayType;
+
+/**
+ * 签约类型
+ */
+public enum UnionUserOpenType {
+
+    Shop("商户"),//
+    User("用户"),//
+    ;
+
+    // 名称
+    private String name;
+
+    UnionUserOpenType(String name) {
+        this.name = name;
+    }
+}