添加子账号逻辑

This commit is contained in:
lu7213 committed 2026-10-10 05:22:05 -04:00
1 parent 35c7bcc8aa
commit 658e6ccf1e
8 files changed
+196 -2

No files matched your search

@@ -0,0 +1,16 @@
package com.ruoyi.system.domain.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
/** 增加全局子账号请求。 */
public class UsdtConfigAddWalletsRequest {
private Integer count;
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String configurationPassword;
public Integer getCount() { return count; }
public void setCount(Integer count) { this.count = count; }
public String getConfigurationPassword() { return configurationPassword; }
public void setConfigurationPassword(String configurationPassword) { this.configurationPassword = configurationPassword; }
}
@@ -14,6 +14,8 @@ public class UsdtConfigCreateRequest {
private BigDecimal receiveUsdtNum;
private Integer tronNetType;
private BigDecimal trxNum;
/** 初始化时生成的子账号数量,不包含索引 0 主钱包。 */
private Integer childAccountCount;
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String configurationPassword;
@@ -29,6 +31,8 @@ public class UsdtConfigCreateRequest {
public void setTronNetType(Integer tronNetType) { this.tronNetType = tronNetType; }
public BigDecimal getTrxNum() { return trxNum; }
public void setTrxNum(BigDecimal trxNum) { this.trxNum = trxNum; }
public Integer getChildAccountCount() { return childAccountCount; }
public void setChildAccountCount(Integer childAccountCount) { this.childAccountCount = childAccountCount; }
public String getConfigurationPassword() { return configurationPassword; }
public void setConfigurationPassword(String configurationPassword) { this.configurationPassword = configurationPassword; }
public String getConfirmPassword() { return confirmPassword; }
@@ -0,0 +1,18 @@
package com.ruoyi.system.domain.vo;
/** 全局子账号池操作结果,不包含地址或私钥。 */
public class UsdtConfigWalletPoolResult {
private final int totalCount;
private final int createdCount;
private final int skippedCount;
public UsdtConfigWalletPoolResult(int totalCount, int createdCount, int skippedCount) {
this.totalCount = totalCount;
this.createdCount = createdCount;
this.skippedCount = skippedCount;
}
public int getTotalCount() { return totalCount; }
public int getCreatedCount() { return createdCount; }
public int getSkippedCount() { return skippedCount; }
}