|
|
package com.yau.digitalrmb.walletopening.application;
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import lombok.Getter;
|
|
|
|
|
|
@Getter
|
|
|
@Schema(description = "央行端步骤三:备案审核页面数据")
|
|
|
public class CentralWalletRegistrationPageResult {
|
|
|
@Schema(description = "接收状态:状态1未收到;状态2已收到")
|
|
|
private final String receiveStatus;
|
|
|
@Schema(description = "接收到的备案请求JSON")
|
|
|
private final String requestJson;
|
|
|
@Schema(description = "请求原文(用于完整性校验重算)")
|
|
|
private final String requestMessage;
|
|
|
@Schema(description = "摘要值")
|
|
|
private final String digestValue;
|
|
|
@Schema(description = "签名值")
|
|
|
private final String signature;
|
|
|
@Schema(description = "签名验证使用的公钥")
|
|
|
private final String verifyPublicKey;
|
|
|
@Schema(description = "签名验证结果")
|
|
|
private final String signVerifyResult;
|
|
|
@Schema(description = "重算的摘要值")
|
|
|
private final String recalculatedDigest;
|
|
|
@Schema(description = "摘要匹配结果")
|
|
|
private final String digestMatchResult;
|
|
|
@Schema(description = "央行根签使用的密钥")
|
|
|
private final String cbSigningKey;
|
|
|
@Schema(description = "央行根签签名值")
|
|
|
private final String cbRootSignature;
|
|
|
@Schema(description = "钱包是否已登记备案")
|
|
|
private final Boolean walletRegistered;
|
|
|
@Schema(description = "备案确认JSON")
|
|
|
private final String confirmJson;
|
|
|
@Schema(description = "是否已发送")
|
|
|
private final Boolean sent;
|
|
|
@Schema(description = "当前状态")
|
|
|
private final String status;
|
|
|
|
|
|
public CentralWalletRegistrationPageResult(com.yau.digitalrmb.walletopening.domain.CentralWalletRegistration c) {
|
|
|
if (c == null || !c.isReceived()) {
|
|
|
this.receiveStatus = "状态1:未收到";
|
|
|
this.requestJson = null;
|
|
|
this.requestMessage = null;
|
|
|
this.digestValue = null;
|
|
|
this.signature = null;
|
|
|
this.verifyPublicKey = null;
|
|
|
this.signVerifyResult = null;
|
|
|
this.recalculatedDigest = null;
|
|
|
this.digestMatchResult = null;
|
|
|
this.cbSigningKey = null;
|
|
|
this.cbRootSignature = null;
|
|
|
this.walletRegistered = false;
|
|
|
this.confirmJson = null;
|
|
|
this.sent = false;
|
|
|
this.status = "PENDING";
|
|
|
return;
|
|
|
}
|
|
|
this.receiveStatus = "状态2:已收到";
|
|
|
this.requestJson = c.getRequestJson();
|
|
|
this.requestMessage = c.getRequestMessage();
|
|
|
this.digestValue = c.getDigestValue();
|
|
|
this.signature = c.getSignature();
|
|
|
this.verifyPublicKey = c.getVerifyPublicKey();
|
|
|
this.signVerifyResult = c.getSignVerifyResult();
|
|
|
this.recalculatedDigest = c.getRecalculatedDigest();
|
|
|
this.digestMatchResult = c.getDigestMatchResult();
|
|
|
this.cbSigningKey = c.getCbSigningKey();
|
|
|
this.cbRootSignature = c.getCbRootSignature();
|
|
|
this.walletRegistered = c.isWalletRegistered();
|
|
|
this.confirmJson = c.getConfirmJson();
|
|
|
this.sent = c.isSent();
|
|
|
this.status = c.getStatus() == null ? null : c.getStatus().name();
|
|
|
}
|
|
|
}
|