feat:文件上传的功能开发

chore/issuance-comments-zh
赵佳正 1 month ago
parent 36f60365af
commit 9301f53fac

@ -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;
}
}

@ -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;
}
Loading…
Cancel
Save