265 lines
7.5 KiB
Java
265 lines
7.5 KiB
Java
package com.ruoyi.system.domain;
|
||
|
||
import java.math.BigDecimal;
|
||
import java.util.Date;
|
||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||
import com.ruoyi.common.annotation.Excel;
|
||
import com.ruoyi.common.core.domain.BaseEntity;
|
||
import java.io.Serializable;
|
||
import java.util.Date;
|
||
import com.baomidou.mybatisplus.annotation.TableName;
|
||
/**
|
||
* 全局配置对象 usdt_config
|
||
*
|
||
* @author luqj
|
||
* @date 2026-10-08
|
||
*/
|
||
@TableName(value = "usdt_config")
|
||
public class UsdtConfigPlus implements Serializable
|
||
{
|
||
private static final long serialVersionUID = 1L;
|
||
|
||
/** 主键 */
|
||
private Long id;
|
||
/** 代付手续费 */
|
||
@Excel(name = "代付手续费")
|
||
private BigDecimal payUsdtNum;
|
||
/** 代收手续费 */
|
||
@Excel(name = "代收手续费")
|
||
private BigDecimal receiveUsdtNum;
|
||
/** 波场网络类型 */
|
||
@Excel(name = "波场网络类型 0 测试网络, 1 正式网络")
|
||
private Integer tronNetType;
|
||
/** 信封版本;配置密码轮换成功后递增 */
|
||
@Excel(name = "信封版本;配置密码轮换成功后递增")
|
||
private Long version;
|
||
/** 助记词和 DEK 使用的加密算法 */
|
||
@Excel(name = "助记词和 DEK 使用的加密算法")
|
||
private String encryptionAlgorithm;
|
||
/** 配置密码派生算法 */
|
||
@Excel(name = "配置密码派生算法")
|
||
private String passwordKdf;
|
||
/** PBKDF2 迭代次数;轮换时按当前安全策略更新 */
|
||
@Excel(name = "PBKDF2 迭代次数;轮换时按当前安全策略更新")
|
||
private Long iterations;
|
||
/** AES-GCM 加密后的助记词密文,Base64;禁止保存明文助记词 */
|
||
@Excel(name = "AES-GCM 加密后的助记词密文,Base64;禁止保存明文助记词")
|
||
private String encryptedMnemonic;
|
||
/** 助记词 AES-GCM nonce,Base64,通常为 12 字节 */
|
||
@Excel(name = "助记词 AES-GCM nonce,Base64,通常为 12 字节")
|
||
private String mnemonicNonce;
|
||
/** 由 KEK 包装后的 DEK,Base64;禁止保存明文 DEK */
|
||
@Excel(name = "由 KEK 包装后的 DEK,Base64;禁止保存明文 DEK")
|
||
private String encryptedDek;
|
||
/** DEK AES-GCM nonce,Base64,通常为 12 字节 */
|
||
@Excel(name = "DEK AES-GCM nonce,Base64,通常为 12 字节")
|
||
private String dekNonce;
|
||
/** 配置密码派生 KEK 使用的 salt,Base64 */
|
||
@Excel(name = "配置密码派生 KEK 使用的 salt,Base64")
|
||
private String keySalt;
|
||
/** 配置密码校验哈希使用的独立 salt,Base64 */
|
||
@Excel(name = "配置密码校验哈希使用的独立 salt,Base64")
|
||
private String passwordSalt;
|
||
/** PBKDF2 配置密码校验值,Base64;不是可逆密码 */
|
||
@Excel(name = "PBKDF2 配置密码校验值,Base64;不是可逆密码")
|
||
private String passwordHash;
|
||
/** 最近一次配置密码轮换时间 */
|
||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||
@Excel(name = "最近一次配置密码轮换时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||
private Date rotatedAt;
|
||
/** $column.columnComment */
|
||
@Excel(name = "最近一次配置密码轮换时间")
|
||
private BigDecimal trxNum;
|
||
/** 主账号地址 */
|
||
@Excel(name = "主账号地址")
|
||
private String tokenAddress;
|
||
public void setId(Long id)
|
||
{
|
||
this.id = id;
|
||
}
|
||
|
||
public Long getId()
|
||
{
|
||
return id;
|
||
}
|
||
public void setPayUsdtNum(BigDecimal payUsdtNum)
|
||
{
|
||
this.payUsdtNum = payUsdtNum;
|
||
}
|
||
|
||
public BigDecimal getPayUsdtNum()
|
||
{
|
||
return payUsdtNum;
|
||
}
|
||
public void setReceiveUsdtNum(BigDecimal receiveUsdtNum)
|
||
{
|
||
this.receiveUsdtNum = receiveUsdtNum;
|
||
}
|
||
|
||
public BigDecimal getReceiveUsdtNum()
|
||
{
|
||
return receiveUsdtNum;
|
||
}
|
||
public void setTronNetType(Integer tronNetType)
|
||
{
|
||
this.tronNetType = tronNetType;
|
||
}
|
||
|
||
public Integer getTronNetType()
|
||
{
|
||
return tronNetType;
|
||
}
|
||
public void setVersion(Long version)
|
||
{
|
||
this.version = version;
|
||
}
|
||
|
||
public Long getVersion()
|
||
{
|
||
return version;
|
||
}
|
||
public void setEncryptionAlgorithm(String encryptionAlgorithm)
|
||
{
|
||
this.encryptionAlgorithm = encryptionAlgorithm;
|
||
}
|
||
|
||
public String getEncryptionAlgorithm()
|
||
{
|
||
return encryptionAlgorithm;
|
||
}
|
||
public void setPasswordKdf(String passwordKdf)
|
||
{
|
||
this.passwordKdf = passwordKdf;
|
||
}
|
||
|
||
public String getPasswordKdf()
|
||
{
|
||
return passwordKdf;
|
||
}
|
||
public void setIterations(Long iterations)
|
||
{
|
||
this.iterations = iterations;
|
||
}
|
||
|
||
public Long getIterations()
|
||
{
|
||
return iterations;
|
||
}
|
||
public void setEncryptedMnemonic(String encryptedMnemonic)
|
||
{
|
||
this.encryptedMnemonic = encryptedMnemonic;
|
||
}
|
||
|
||
public String getEncryptedMnemonic()
|
||
{
|
||
return encryptedMnemonic;
|
||
}
|
||
public void setMnemonicNonce(String mnemonicNonce)
|
||
{
|
||
this.mnemonicNonce = mnemonicNonce;
|
||
}
|
||
|
||
public String getMnemonicNonce()
|
||
{
|
||
return mnemonicNonce;
|
||
}
|
||
public void setEncryptedDek(String encryptedDek)
|
||
{
|
||
this.encryptedDek = encryptedDek;
|
||
}
|
||
|
||
public String getEncryptedDek()
|
||
{
|
||
return encryptedDek;
|
||
}
|
||
public void setDekNonce(String dekNonce)
|
||
{
|
||
this.dekNonce = dekNonce;
|
||
}
|
||
|
||
public String getDekNonce()
|
||
{
|
||
return dekNonce;
|
||
}
|
||
public void setKeySalt(String keySalt)
|
||
{
|
||
this.keySalt = keySalt;
|
||
}
|
||
|
||
public String getKeySalt()
|
||
{
|
||
return keySalt;
|
||
}
|
||
public void setPasswordSalt(String passwordSalt)
|
||
{
|
||
this.passwordSalt = passwordSalt;
|
||
}
|
||
|
||
public String getPasswordSalt()
|
||
{
|
||
return passwordSalt;
|
||
}
|
||
public void setPasswordHash(String passwordHash)
|
||
{
|
||
this.passwordHash = passwordHash;
|
||
}
|
||
|
||
public String getPasswordHash()
|
||
{
|
||
return passwordHash;
|
||
}
|
||
public void setRotatedAt(Date rotatedAt)
|
||
{
|
||
this.rotatedAt = rotatedAt;
|
||
}
|
||
|
||
public Date getRotatedAt()
|
||
{
|
||
return rotatedAt;
|
||
}
|
||
public void setTrxNum(BigDecimal trxNum)
|
||
{
|
||
this.trxNum = trxNum;
|
||
}
|
||
|
||
public BigDecimal getTrxNum()
|
||
{
|
||
return trxNum;
|
||
}
|
||
public void setTokenAddress(String tokenAddress)
|
||
{
|
||
this.tokenAddress = tokenAddress;
|
||
}
|
||
|
||
public String getTokenAddress()
|
||
{
|
||
return tokenAddress;
|
||
}
|
||
|
||
@Override
|
||
public String toString() {
|
||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||
.append("id", getId())
|
||
.append("payUsdtNum", getPayUsdtNum())
|
||
.append("receiveUsdtNum", getReceiveUsdtNum())
|
||
.append("tronNetType", getTronNetType())
|
||
.append("version", getVersion())
|
||
.append("encryptionAlgorithm", getEncryptionAlgorithm())
|
||
.append("passwordKdf", getPasswordKdf())
|
||
.append("iterations", getIterations())
|
||
.append("encryptedMnemonic", getEncryptedMnemonic())
|
||
.append("mnemonicNonce", getMnemonicNonce())
|
||
.append("encryptedDek", getEncryptedDek())
|
||
.append("dekNonce", getDekNonce())
|
||
.append("keySalt", getKeySalt())
|
||
.append("passwordSalt", getPasswordSalt())
|
||
.append("passwordHash", getPasswordHash())
|
||
.append("rotatedAt", getRotatedAt())
|
||
.append("trxNum", getTrxNum())
|
||
.append("tokenAddress", getTokenAddress())
|
||
.toString();
|
||
}
|
||
}
|