api开放钱包创建接口
This commit is contained in:
1 parent
658e6ccf1e
commit
a2be79377b
26 files changed
+636
-4
No files matched your search
@@ -0,0 +1,27 @@
|
||||
package com.ruoyi.system.domain.dto;
|
||||
|
||||
/** 开放 API 混合加密请求。 */
|
||||
public class EncryptedRequest {
|
||||
private String apiKey;
|
||||
private Long timestamp;
|
||||
private String nonce;
|
||||
private String encryptedKey;
|
||||
private String iv;
|
||||
private String data;
|
||||
private String hmac;
|
||||
|
||||
public String getApiKey() { return apiKey; }
|
||||
public void setApiKey(String apiKey) { this.apiKey = apiKey; }
|
||||
public Long getTimestamp() { return timestamp; }
|
||||
public void setTimestamp(Long timestamp) { this.timestamp = timestamp; }
|
||||
public String getNonce() { return nonce; }
|
||||
public void setNonce(String nonce) { this.nonce = nonce; }
|
||||
public String getEncryptedKey() { return encryptedKey; }
|
||||
public void setEncryptedKey(String encryptedKey) { this.encryptedKey = encryptedKey; }
|
||||
public String getIv() { return iv; }
|
||||
public void setIv(String iv) { this.iv = iv; }
|
||||
public String getData() { return data; }
|
||||
public void setData(String data) { this.data = data; }
|
||||
public String getHmac() { return hmac; }
|
||||
public void setHmac(String hmac) { this.hmac = hmac; }
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.ruoyi.system.domain.vo;
|
||||
|
||||
/** 服务端解密结果及经过认证的调用方身份。 */
|
||||
public class DecryptResult {
|
||||
private final Long appId;
|
||||
private final Long userId;
|
||||
private final String plainData;
|
||||
|
||||
public DecryptResult(Long appId, Long userId, String plainData) {
|
||||
this.appId = appId;
|
||||
this.userId = userId;
|
||||
this.plainData = plainData;
|
||||
}
|
||||
public Long getAppId() { return appId; }
|
||||
public Long getUserId() { return userId; }
|
||||
public String getPlainData() { return plainData; }
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.ruoyi.system.domain.vo;
|
||||
|
||||
/** 开放 API 钱包领取结果。 */
|
||||
public class WalletCreateResult {
|
||||
private final Long appId;
|
||||
private final String walletUserName;
|
||||
private final String walletAddress;
|
||||
|
||||
public WalletCreateResult(Long appId, String walletUserName, String walletAddress) {
|
||||
this.appId = appId;
|
||||
this.walletUserName = walletUserName;
|
||||
this.walletAddress = walletAddress;
|
||||
}
|
||||
public Long getAppId() { return appId; }
|
||||
public String getWalletUserName() { return walletUserName; }
|
||||
public String getWalletAddress() { return walletAddress; }
|
||||
}
|
||||
Reference in new issue
Block a user