From 9301f53fac4f25afd295cd13714e553095080694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=BD=B3=E6=AD=A3?= <2624533894@qq.com> Date: Wed, 2 Sep 2026 17:07:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E7=9A=84=E5=8A=9F=E8=83=BD=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/RemoteWalletKeyResult.java | 31 +++++++++++++++++++ .../rest/dto/RemoteWalletSignRequest.java | 14 +++++++++ 2 files changed, 45 insertions(+) create mode 100644 src/main/java/com/yau/digitalrmb/corporatewallet/application/RemoteWalletKeyResult.java create mode 100644 src/main/java/com/yau/digitalrmb/corporatewallet/interfaces/rest/dto/RemoteWalletSignRequest.java diff --git a/src/main/java/com/yau/digitalrmb/corporatewallet/application/RemoteWalletKeyResult.java b/src/main/java/com/yau/digitalrmb/corporatewallet/application/RemoteWalletKeyResult.java new file mode 100644 index 0000000..abf0f3c --- /dev/null +++ b/src/main/java/com/yau/digitalrmb/corporatewallet/application/RemoteWalletKeyResult.java @@ -0,0 +1,31 @@ +package com.yau.digitalrmb.corporatewallet.application; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Getter; + +@Getter +@Schema(description = "远程开立-密钥信息") +public class RemoteWalletKeyResult { + @Schema(description = "密钥类型(如:企业法人私钥、企业法人公钥等)") + private final String keyType; + @Schema(description = "持有方(如:张三(创新科技公司))") + private final String holder; + @Schema(description = "密码算法(SM2)") + private final String keyAlgorithm; + @Schema(description = "密钥值(十六进制)") + private final String keyValue; + @Schema(description = "是否为私钥") + private final boolean privateKey; + @Schema(description = "密钥来源:REUSED-复用已有, NEW-新生成") + private final String source; + + public RemoteWalletKeyResult(String keyType, String holder, String keyAlgorithm, + String keyValue, boolean privateKey, String source) { + this.keyType = keyType; + this.holder = holder; + this.keyAlgorithm = keyAlgorithm; + this.keyValue = keyValue; + this.privateKey = privateKey; + this.source = source; + } +} diff --git a/src/main/java/com/yau/digitalrmb/corporatewallet/interfaces/rest/dto/RemoteWalletSignRequest.java b/src/main/java/com/yau/digitalrmb/corporatewallet/interfaces/rest/dto/RemoteWalletSignRequest.java new file mode 100644 index 0000000..5258b08 --- /dev/null +++ b/src/main/java/com/yau/digitalrmb/corporatewallet/interfaces/rest/dto/RemoteWalletSignRequest.java @@ -0,0 +1,14 @@ +package com.yau.digitalrmb.corporatewallet.interfaces.rest.dto; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +import javax.validation.constraints.NotBlank; + +@Data +@Schema(description = "远程开立-SM2签名请求(企业法人私钥)") +public class RemoteWalletSignRequest { + @NotBlank(message = "企业法人私钥不能为空") + @Schema(description = "企业法人私钥(十六进制)", required = true) + private String privateKey; +}