This commit is contained in:
lu7213 committed 2026-03-03 09:39:33 +08:00
1 parent 68a2b4f68c
commit 7cd697187c
308 files changed
+30454 -75

No files matched your search

@@ -1,6 +1,9 @@
package com.ruoyi.system.domain;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -21,6 +24,7 @@ public class AppApiKeysPlus implements Serializable
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(type = IdType.INPUT)
private Long id;
/** 应用ID */
@Excel(name = "应用ID")
@@ -23,7 +23,8 @@ public class Apps extends BaseEntity
/** 用户 */
@Excel(name = "用户")
private Long userId;
@Excel(name = "归集地址")
private String distTokenAddress;
/** 名称 */
@Excel(name = "名称")
private String name;
@@ -90,7 +91,15 @@ public class Apps extends BaseEntity
this.status = status;
}
public Integer getStatus()
public String getDistTokenAddress() {
return distTokenAddress;
}
public void setDistTokenAddress(String distTokenAddress) {
this.distTokenAddress = distTokenAddress;
}
public Integer getStatus()
{
return status;
}
@@ -1,6 +1,9 @@
package com.ruoyi.system.domain;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -21,6 +24,7 @@ public class AppsPlus implements Serializable
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(type = IdType.INPUT)
private Long id;
/** 用户 */
@Excel(name = "用户")
@@ -34,6 +38,9 @@ public class AppsPlus implements Serializable
/** 状态 */
@Excel(name = "状态")
private Integer status;
@Excel(name = "归集地址")
private String distTokenAddress;
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
@@ -117,6 +124,14 @@ public class AppsPlus implements Serializable
return deletedAt;
}
public String getDistTokenAddress() {
return distTokenAddress;
}
public void setDistTokenAddress(String distTokenAddress) {
this.distTokenAddress = distTokenAddress;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
@@ -0,0 +1,197 @@
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;
/**
* 归集任务对象 usdt_aggregation_task
*
* @author luqj
* @date 2026-01-01
*/
public class UsdtAggregationTask extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 任务名称 */
@Excel(name = "任务名称")
private String taskName;
/** 应用 */
@Excel(name = "应用")
private Long appId;
/** 用户 */
@Excel(name = "用户")
private Long userId;
/** 状态 */
@Excel(name = "状态")
private Integer status;
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date createdAt;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date updatedAt;
/** 删除时间 */
private Date deletedAt;
/** 提现总金额 */
@Excel(name = "提现总金额")
private BigDecimal totalAmount;
/** 执行时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "执行时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date exeTime;
/** 审核状态 */
@Excel(name = "审核状态")
private Integer verifyStatus;
/** 归集地址 */
@Excel(name = "归集地址")
private String distTokenAddress;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTaskName(String taskName)
{
this.taskName = taskName;
}
public String getTaskName()
{
return taskName;
}
public void setAppId(Long appId)
{
this.appId = appId;
}
public Long getAppId()
{
return appId;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setStatus(Integer status)
{
this.status = status;
}
public Integer getStatus()
{
return status;
}
public void setCreatedAt(Date createdAt)
{
this.createdAt = createdAt;
}
public Date getCreatedAt()
{
return createdAt;
}
public void setUpdatedAt(Date updatedAt)
{
this.updatedAt = updatedAt;
}
public Date getUpdatedAt()
{
return updatedAt;
}
public void setDeletedAt(Date deletedAt)
{
this.deletedAt = deletedAt;
}
public Date getDeletedAt()
{
return deletedAt;
}
public void setTotalAmount(BigDecimal totalAmount)
{
this.totalAmount = totalAmount;
}
public BigDecimal getTotalAmount()
{
return totalAmount;
}
public void setExeTime(Date exeTime)
{
this.exeTime = exeTime;
}
public Date getExeTime()
{
return exeTime;
}
public void setVerifyStatus(Integer verifyStatus)
{
this.verifyStatus = verifyStatus;
}
public Integer getVerifyStatus()
{
return verifyStatus;
}
public void setDistTokenAddress(String distTokenAddress)
{
this.distTokenAddress = distTokenAddress;
}
public String getDistTokenAddress()
{
return distTokenAddress;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("taskName", getTaskName())
.append("appId", getAppId())
.append("userId", getUserId())
.append("remark", getRemark())
.append("status", getStatus())
.append("createdAt", getCreatedAt())
.append("updatedAt", getUpdatedAt())
.append("deletedAt", getDeletedAt())
.append("totalAmount", getTotalAmount())
.append("exeTime", getExeTime())
.append("verifyStatus", getVerifyStatus())
.append("distTokenAddress", getDistTokenAddress())
.toString();
}
}
@@ -0,0 +1,182 @@
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;
/**
* 归集任务明细对象 usdt_aggregation_task_item
*
* @author luqj
* @date 2026-01-01
*/
public class UsdtAggregationTaskItem extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 钱包地址 */
@Excel(name = "钱包地址")
private String tokenAddress;
/** 状态0 待执行 1 执行 2 执行失败 */
@Excel(name = "状态0 待执行 1 执行 2 执行失败")
private Integer status;
/** 金额 */
@Excel(name = "金额")
private BigDecimal opeAmount;
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date createdAt;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date updatedAt;
/** 删除时间 */
private Date deletedAt;
/** 用户 */
@Excel(name = "用户")
private Long userId;
/** 应用 */
@Excel(name = "应用")
private Long appId;
/** 父任务 */
@Excel(name = "父任务")
private Long parentId;
/** 归集地址 */
@Excel(name = "归集地址")
private String distTokenAddress;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTokenAddress(String tokenAddress)
{
this.tokenAddress = tokenAddress;
}
public String getTokenAddress()
{
return tokenAddress;
}
public void setStatus(Integer status)
{
this.status = status;
}
public Integer getStatus()
{
return status;
}
public void setOpeAmount(BigDecimal opeAmount)
{
this.opeAmount = opeAmount;
}
public BigDecimal getOpeAmount()
{
return opeAmount;
}
public void setCreatedAt(Date createdAt)
{
this.createdAt = createdAt;
}
public Date getCreatedAt()
{
return createdAt;
}
public void setUpdatedAt(Date updatedAt)
{
this.updatedAt = updatedAt;
}
public Date getUpdatedAt()
{
return updatedAt;
}
public void setDeletedAt(Date deletedAt)
{
this.deletedAt = deletedAt;
}
public Date getDeletedAt()
{
return deletedAt;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setAppId(Long appId)
{
this.appId = appId;
}
public Long getAppId()
{
return appId;
}
public void setParentId(Long parentId)
{
this.parentId = parentId;
}
public Long getParentId()
{
return parentId;
}
public void setDistTokenAddress(String distTokenAddress)
{
this.distTokenAddress = distTokenAddress;
}
public String getDistTokenAddress()
{
return distTokenAddress;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("tokenAddress", getTokenAddress())
.append("status", getStatus())
.append("remark", getRemark())
.append("opeAmount", getOpeAmount())
.append("createdAt", getCreatedAt())
.append("updatedAt", getUpdatedAt())
.append("deletedAt", getDeletedAt())
.append("userId", getUserId())
.append("appId", getAppId())
.append("parentId", getParentId())
.append("distTokenAddress", getDistTokenAddress())
.toString();
}
}
@@ -0,0 +1,190 @@
package com.ruoyi.system.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
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_aggregation_task_item
*
* @author luqj
* @date 2026-01-01
*/
@TableName(value = "usdt_aggregation_task_item")
public class UsdtAggregationTaskItemPlus implements Serializable
{
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(type = IdType.INPUT)
private Long id;
/** 钱包地址 */
@Excel(name = "钱包地址")
private String tokenAddress;
/** 状态0 待执行 1 执行 2 执行失败 */
@Excel(name = "状态0 待执行 1 执行 2 执行失败")
private Integer status;
/** 备注 */
@Excel(name = "备注")
private String remark;
/** 金额 */
@Excel(name = "金额")
private BigDecimal opeAmount;
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date createdAt;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date updatedAt;
/** 删除时间 */
private Date deletedAt;
/** 用户 */
@Excel(name = "用户")
private Long userId;
/** 应用 */
@Excel(name = "应用")
private Long appId;
/** 父任务 */
@Excel(name = "父任务")
private Long parentId;
/** 归集地址 */
@Excel(name = "归集地址")
private String distTokenAddress;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTokenAddress(String tokenAddress)
{
this.tokenAddress = tokenAddress;
}
public String getTokenAddress()
{
return tokenAddress;
}
public void setStatus(Integer status)
{
this.status = status;
}
public Integer getStatus()
{
return status;
}
public void setRemark(String remark)
{
this.remark = remark;
}
public String getRemark()
{
return remark;
}
public void setOpeAmount(BigDecimal opeAmount)
{
this.opeAmount = opeAmount;
}
public BigDecimal getOpeAmount()
{
return opeAmount;
}
public void setCreatedAt(Date createdAt)
{
this.createdAt = createdAt;
}
public Date getCreatedAt()
{
return createdAt;
}
public void setUpdatedAt(Date updatedAt)
{
this.updatedAt = updatedAt;
}
public Date getUpdatedAt()
{
return updatedAt;
}
public void setDeletedAt(Date deletedAt)
{
this.deletedAt = deletedAt;
}
public Date getDeletedAt()
{
return deletedAt;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setAppId(Long appId)
{
this.appId = appId;
}
public Long getAppId()
{
return appId;
}
public void setParentId(Long parentId)
{
this.parentId = parentId;
}
public Long getParentId()
{
return parentId;
}
public void setDistTokenAddress(String distTokenAddress)
{
this.distTokenAddress = distTokenAddress;
}
public String getDistTokenAddress()
{
return distTokenAddress;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("tokenAddress", getTokenAddress())
.append("status", getStatus())
.append("remark", getRemark())
.append("opeAmount", getOpeAmount())
.append("createdAt", getCreatedAt())
.append("updatedAt", getUpdatedAt())
.append("deletedAt", getDeletedAt())
.append("userId", getUserId())
.append("appId", getAppId())
.append("parentId", getParentId())
.append("distTokenAddress", getDistTokenAddress())
.toString();
}
}
@@ -0,0 +1,204 @@
package com.ruoyi.system.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
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_aggregation_task
*
* @author luqj
* @date 2026-01-01
*/
@TableName(value = "usdt_aggregation_task")
public class UsdtAggregationTaskPlus implements Serializable
{
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(type = IdType.INPUT)
private Long id;
/** 任务名称 */
@Excel(name = "任务名称")
private String taskName;
/** 应用 */
@Excel(name = "应用")
private Long appId;
/** 用户 */
@Excel(name = "用户")
private Long userId;
/** 备注 */
@Excel(name = "备注")
private String remark;
/** 状态 */
@Excel(name = "状态")
private Integer status;
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date createdAt;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date updatedAt;
/** 删除时间 */
private Date deletedAt;
/** 提现总金额 */
@Excel(name = "提现总金额")
private BigDecimal totalAmount;
/** 执行时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "执行时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date exeTime;
/** 审核状态 */
@Excel(name = "审核状态")
private Integer verifyStatus;
/** 归集地址 */
@Excel(name = "归集地址")
private String distTokenAddress;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTaskName(String taskName)
{
this.taskName = taskName;
}
public String getTaskName()
{
return taskName;
}
public void setAppId(Long appId)
{
this.appId = appId;
}
public Long getAppId()
{
return appId;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setRemark(String remark)
{
this.remark = remark;
}
public String getRemark()
{
return remark;
}
public void setStatus(Integer status)
{
this.status = status;
}
public Integer getStatus()
{
return status;
}
public void setCreatedAt(Date createdAt)
{
this.createdAt = createdAt;
}
public Date getCreatedAt()
{
return createdAt;
}
public void setUpdatedAt(Date updatedAt)
{
this.updatedAt = updatedAt;
}
public Date getUpdatedAt()
{
return updatedAt;
}
public void setDeletedAt(Date deletedAt)
{
this.deletedAt = deletedAt;
}
public Date getDeletedAt()
{
return deletedAt;
}
public void setTotalAmount(BigDecimal totalAmount)
{
this.totalAmount = totalAmount;
}
public BigDecimal getTotalAmount()
{
return totalAmount;
}
public void setExeTime(Date exeTime)
{
this.exeTime = exeTime;
}
public Date getExeTime()
{
return exeTime;
}
public void setVerifyStatus(Integer verifyStatus)
{
this.verifyStatus = verifyStatus;
}
public Integer getVerifyStatus()
{
return verifyStatus;
}
public void setDistTokenAddress(String distTokenAddress)
{
this.distTokenAddress = distTokenAddress;
}
public String getDistTokenAddress()
{
return distTokenAddress;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("taskName", getTaskName())
.append("appId", getAppId())
.append("userId", getUserId())
.append("remark", getRemark())
.append("status", getStatus())
.append("createdAt", getCreatedAt())
.append("updatedAt", getUpdatedAt())
.append("deletedAt", getDeletedAt())
.append("totalAmount", getTotalAmount())
.append("exeTime", getExeTime())
.append("verifyStatus", getVerifyStatus())
.append("distTokenAddress", getDistTokenAddress())
.toString();
}
}
@@ -2,6 +2,9 @@ package com.ruoyi.system.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -22,6 +25,7 @@ public class UsdtFundFlowPlus implements Serializable
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(type = IdType.INPUT)
private Long id;
/** 订单ID */
@Excel(name = "订单ID")
@@ -46,7 +50,7 @@ public class UsdtFundFlowPlus implements Serializable
@Excel(name = "操作金额")
private BigDecimal amount;
/** 操作类型 */
@Excel(name = "操作类型")
@Excel(name = "操作类型 操作类型 0 商户收入 1 平台抽佣 2 商户归集提现金额")
private Integer opType;
/** Token地址 */
@Excel(name = "Token地址")
@@ -2,6 +2,9 @@ package com.ruoyi.system.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -22,6 +25,7 @@ public class UsdtOrdersPlus implements Serializable
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(type = IdType.INPUT)
private Long id;
/** 订单号 */
@Excel(name = "订单号")
@@ -42,7 +46,7 @@ public class UsdtOrdersPlus implements Serializable
@Excel(name = "钱包地址")
private String token;
/** 状态 */
@Excel(name = "状态")
@Excel(name = "状态 状态1:等待支付,2:支付成功,3:已过期")
private Long status;
/** 异步地址 */
@Excel(name = "异步地址")
@@ -2,6 +2,9 @@ package com.ruoyi.system.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -22,6 +25,7 @@ public class UsdtUserSettlementConfigurationPlus implements Serializable
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(type = IdType.INPUT)
private Long id;
/** 用户id */
@Excel(name = "用户id")
@@ -1,6 +1,9 @@
package com.ruoyi.system.domain;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -21,6 +24,7 @@ public class UserAuthPlus implements Serializable
private static final long serialVersionUID = 1L;
/** 主键ID */
@TableId(type = IdType.INPUT)
private Long id;
/** 用户 */
@Excel(name = "用户")
@@ -1,5 +1,6 @@
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;
@@ -11,7 +12,7 @@ import java.io.Serializable;
* token管理对象 wallet_address
*
* @author luqj
* @date 2025-11-25
* @date 2025-12-30
*/
public class WalletAddress extends BaseEntity
{
@@ -50,6 +51,83 @@ public class WalletAddress extends BaseEntity
@Excel(name = "用户")
private Long userId;
/** 密钥 */
@Excel(name = "密钥")
private String tokenKey;
@Excel(name = "质押还剩能用的带宽")
private Long bandwidthStakedNum;
/** usdt余额 */
@Excel(name = "usdt余额")
private BigDecimal usdtBalance;
/** trx余额 */
@Excel(name = "trx余额")
private BigDecimal trxBalance;
/** 能量-可用 */
@Excel(name = "能量-可用")
private Long energyNum;
/** 带宽-可用 */
@Excel(name = "带宽-可用")
private Long bandwidthNum;
/** 可以提现usdt金额 */
@Excel(name = "可以提现usdt金额")
private BigDecimal withdrawUsdtBalance;
/** 代理给别人能量的trx数量 */
@Excel(name = "代理给别人能量的trx数量")
private Long delegatedEnergyTrxNum;
/** 代理给别人的能量 */
@Excel(name = "代理给别人的能量")
private BigDecimal delegatedEnergyValue;
/** 别人代理给我能量的trx数量 */
@Excel(name = "别人代理给我能量的trx数量")
private Long acquiredDelegatedEnergyTrxNum;
/** 别人代理给我的能量 */
@Excel(name = "别人代理给我的能量")
private BigDecimal acquiredDelegatedEnergyValue;
/** 代理给别人的带宽trx数量 */
@Excel(name = "代理给别人的带宽trx数量")
private Long delegatedBandwidthTrxNum;
/** 代理给别人的带宽 */
@Excel(name = "代理给别人的带宽")
private BigDecimal delegatedBandwidthValue;
/** 别人代理给我带宽的trx数量 */
@Excel(name = "别人代理给我带宽的trx数量")
private Long acquiredDelegatedBandwidthTrxNum;
/** 别人代理给我的带宽 */
@Excel(name = "别人代理给我的带宽")
private BigDecimal acquiredDelegatedBandwidthValue;
/** 质押的trx数量-不含代理 */
@Excel(name = "质押的trx数量-不含代理")
private Long stakedTrxNum;
/** 能量质押的trx数量-不含代理 */
@Excel(name = "能量质押的trx数量-不含代理")
private Long energyStakedTrxNum;
/** 带宽质押的trx数量-不含代理 */
@Excel(name = "带宽质押的trx数量-不含代理")
private Long bandwidthStakedTrxNum;
/** 可投票数 */
@Excel(name = "可投票数")
private Long voteNum;
/** 已经投票数量 */
@Excel(name = "已经投票数量")
private Long votedNum;
public void setId(Long id)
{
this.id = id;
@@ -64,7 +142,15 @@ public class WalletAddress extends BaseEntity
this.token = token;
}
public String getToken()
public Long getBandwidthStakedNum() {
return bandwidthStakedNum;
}
public void setBandwidthStakedNum(Long bandwidthStakedNum) {
this.bandwidthStakedNum = bandwidthStakedNum;
}
public String getToken()
{
return token;
}
@@ -122,6 +208,177 @@ public class WalletAddress extends BaseEntity
{
return userId;
}
public void setTokenKey(String key)
{
this.tokenKey = key;
}
public String getTokenKey()
{
return tokenKey;
}
public void setUsdtBalance(BigDecimal usdtBalance)
{
this.usdtBalance = usdtBalance;
}
public BigDecimal getUsdtBalance()
{
return usdtBalance;
}
public void setTrxBalance(BigDecimal trxBalance)
{
this.trxBalance = trxBalance;
}
public BigDecimal getTrxBalance()
{
return trxBalance;
}
public void setEnergyNum(Long energyNum)
{
this.energyNum = energyNum;
}
public Long getEnergyNum()
{
return energyNum;
}
public void setBandwidthNum(Long bandwidthNum)
{
this.bandwidthNum = bandwidthNum;
}
public Long getBandwidthNum()
{
return bandwidthNum;
}
public void setWithdrawUsdtBalance(BigDecimal withdrawUsdtBalance)
{
this.withdrawUsdtBalance = withdrawUsdtBalance;
}
public BigDecimal getWithdrawUsdtBalance()
{
return withdrawUsdtBalance;
}
public void setDelegatedEnergyTrxNum(Long delegatedEnergyTrxNum)
{
this.delegatedEnergyTrxNum = delegatedEnergyTrxNum;
}
public Long getDelegatedEnergyTrxNum()
{
return delegatedEnergyTrxNum;
}
public void setDelegatedEnergyValue(BigDecimal delegatedEnergyValue)
{
this.delegatedEnergyValue = delegatedEnergyValue;
}
public BigDecimal getDelegatedEnergyValue()
{
return delegatedEnergyValue;
}
public void setAcquiredDelegatedEnergyTrxNum(Long acquiredDelegatedEnergyTrxNum)
{
this.acquiredDelegatedEnergyTrxNum = acquiredDelegatedEnergyTrxNum;
}
public Long getAcquiredDelegatedEnergyTrxNum()
{
return acquiredDelegatedEnergyTrxNum;
}
public void setAcquiredDelegatedEnergyValue(BigDecimal acquiredDelegatedEnergyValue)
{
this.acquiredDelegatedEnergyValue = acquiredDelegatedEnergyValue;
}
public BigDecimal getAcquiredDelegatedEnergyValue()
{
return acquiredDelegatedEnergyValue;
}
public void setDelegatedBandwidthTrxNum(Long delegatedBandwidthTrxNum)
{
this.delegatedBandwidthTrxNum = delegatedBandwidthTrxNum;
}
public Long getDelegatedBandwidthTrxNum()
{
return delegatedBandwidthTrxNum;
}
public void setDelegatedBandwidthValue(BigDecimal delegatedBandwidthValue)
{
this.delegatedBandwidthValue = delegatedBandwidthValue;
}
public BigDecimal getDelegatedBandwidthValue()
{
return delegatedBandwidthValue;
}
public void setAcquiredDelegatedBandwidthTrxNum(Long acquiredDelegatedBandwidthTrxNum)
{
this.acquiredDelegatedBandwidthTrxNum = acquiredDelegatedBandwidthTrxNum;
}
public Long getAcquiredDelegatedBandwidthTrxNum()
{
return acquiredDelegatedBandwidthTrxNum;
}
public void setAcquiredDelegatedBandwidthValue(BigDecimal acquiredDelegatedBandwidthValue)
{
this.acquiredDelegatedBandwidthValue = acquiredDelegatedBandwidthValue;
}
public BigDecimal getAcquiredDelegatedBandwidthValue()
{
return acquiredDelegatedBandwidthValue;
}
public void setStakedTrxNum(Long stakedTrxNum)
{
this.stakedTrxNum = stakedTrxNum;
}
public Long getStakedTrxNum()
{
return stakedTrxNum;
}
public void setEnergyStakedTrxNum(Long energyStakedTrxNum)
{
this.energyStakedTrxNum = energyStakedTrxNum;
}
public Long getEnergyStakedTrxNum()
{
return energyStakedTrxNum;
}
public void setBandwidthStakedTrxNum(Long bandwidthStakedTrxNum)
{
this.bandwidthStakedTrxNum = bandwidthStakedTrxNum;
}
public Long getBandwidthStakedTrxNum()
{
return bandwidthStakedTrxNum;
}
public void setVoteNum(Long voteNum)
{
this.voteNum = voteNum;
}
public Long getVoteNum()
{
return voteNum;
}
public void setVotedNum(Long votedNum)
{
this.votedNum = votedNum;
}
public Long getVotedNum()
{
return votedNum;
}
@Override
public String toString() {
@@ -134,6 +391,25 @@ public class WalletAddress extends BaseEntity
.append("deletedAt", getDeletedAt())
.append("appId", getAppId())
.append("userId", getUserId())
.append("tokenKey", getTokenKey())
.append("usdtBalance", getUsdtBalance())
.append("trxBalance", getTrxBalance())
.append("energyNum", getEnergyNum())
.append("bandwidthNum", getBandwidthNum())
.append("withdrawUsdtBalance", getWithdrawUsdtBalance())
.append("delegatedEnergyTrxNum", getDelegatedEnergyTrxNum())
.append("delegatedEnergyValue", getDelegatedEnergyValue())
.append("acquiredDelegatedEnergyTrxNum", getAcquiredDelegatedEnergyTrxNum())
.append("acquiredDelegatedEnergyValue", getAcquiredDelegatedEnergyValue())
.append("delegatedBandwidthTrxNum", getDelegatedBandwidthTrxNum())
.append("delegatedBandwidthValue", getDelegatedBandwidthValue())
.append("acquiredDelegatedBandwidthTrxNum", getAcquiredDelegatedBandwidthTrxNum())
.append("acquiredDelegatedBandwidthValue", getAcquiredDelegatedBandwidthValue())
.append("stakedTrxNum", getStakedTrxNum())
.append("energyStakedTrxNum", getEnergyStakedTrxNum())
.append("bandwidthStakedTrxNum", getBandwidthStakedTrxNum())
.append("voteNum", getVoteNum())
.append("votedNum", getVotedNum())
.toString();
}
}
@@ -2,6 +2,9 @@ package com.ruoyi.system.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -14,7 +17,7 @@ import com.baomidou.mybatisplus.annotation.TableName;
* token管理对象 wallet_address
*
* @author luqj
* @date 2025-11-25
* @date 2025-12-30
*/
@TableName(value = "wallet_address")
public class WalletAddressPlus implements Serializable
@@ -22,6 +25,7 @@ public class WalletAddressPlus implements Serializable
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(type = IdType.INPUT)
@Excel(name = "主键")
private Long id;
/** Token */
@@ -46,30 +50,66 @@ public class WalletAddressPlus implements Serializable
/** 用户 */
@Excel(name = "用户")
private Long userId;
/** 密钥 */
@Excel(name = "密钥")
private String tokenKey;
/** usdt余额 */
@Excel(name = "usdt余额")
private BigDecimal usdtBalance;
/** trx余额 */
@Excel(name = "trx余额")
private BigDecimal trxBalance;
public BigDecimal getTrxBalance() {
return trxBalance;
}
public void setTrxBalance(BigDecimal trxBalance) {
this.trxBalance = trxBalance;
}
public BigDecimal getUsdtBalance() {
return usdtBalance;
}
public void setUsdtBalance(BigDecimal usdtBalance) {
this.usdtBalance = usdtBalance;
}
public void setId(Long id)
/** 能量-可用 */
@Excel(name = "能量-可用")
private Long energyNum;
@Excel(name = "质押还剩能用的带宽")
private Long bandwidthStakedNum;
/** 带宽-可用 */
@Excel(name = "带宽-可用")
private Long bandwidthNum;
/** 可以提现usdt金额 */
@Excel(name = "可以提现usdt金额")
private BigDecimal withdrawUsdtBalance;
/** 代理给别人能量的trx数量 */
@Excel(name = "代理给别人能量的trx数量")
private Long delegatedEnergyTrxNum;
/** 代理给别人的能量 */
@Excel(name = "代理给别人的能量")
private BigDecimal delegatedEnergyValue;
/** 别人代理给我能量的trx数量 */
@Excel(name = "别人代理给我能量的trx数量")
private Long acquiredDelegatedEnergyTrxNum;
/** 别人代理给我的能量 */
@Excel(name = "别人代理给我的能量")
private BigDecimal acquiredDelegatedEnergyValue;
/** 代理给别人的带宽trx数量 */
@Excel(name = "代理给别人的带宽trx数量")
private Long delegatedBandwidthTrxNum;
/** 代理给别人的带宽 */
@Excel(name = "代理给别人的带宽")
private BigDecimal delegatedBandwidthValue;
/** 别人代理给我带宽的trx数量 */
@Excel(name = "别人代理给我带宽的trx数量")
private Long acquiredDelegatedBandwidthTrxNum;
/** 别人代理给我的带宽 */
@Excel(name = "别人代理给我的带宽")
private BigDecimal acquiredDelegatedBandwidthValue;
/** 质押的trx数量-不含代理 */
@Excel(name = "质押的trx数量-不含代理")
private Long stakedTrxNum;
/** 能量质押的trx数量-不含代理 */
@Excel(name = "能量质押的trx数量-不含代理")
private Long energyStakedTrxNum;
/** 带宽质押的trx数量-不含代理 */
@Excel(name = "带宽质押的trx数量-不含代理")
private Long bandwidthStakedTrxNum;
/** 可投票数 */
@Excel(name = "可投票数")
private Long voteNum;
/** 已经投票数量 */
@Excel(name = "已经投票数量")
private Long votedNum;
public void setId(Long id)
{
this.id = id;
}
@@ -101,7 +141,15 @@ public class WalletAddressPlus implements Serializable
this.createdAt = createdAt;
}
public Date getCreatedAt()
public Long getBandwidthStakedNum() {
return bandwidthStakedNum;
}
public void setBandwidthStakedNum(Long bandwidthStakedNum) {
this.bandwidthStakedNum = bandwidthStakedNum;
}
public Date getCreatedAt()
{
return createdAt;
}
@@ -141,6 +189,177 @@ public class WalletAddressPlus implements Serializable
{
return userId;
}
public void setTokenKey(String key)
{
this.tokenKey = key;
}
public String getTokenKey()
{
return tokenKey;
}
public void setUsdtBalance(BigDecimal usdtBalance)
{
this.usdtBalance = usdtBalance;
}
public BigDecimal getUsdtBalance()
{
return usdtBalance;
}
public void setTrxBalance(BigDecimal trxBalance)
{
this.trxBalance = trxBalance;
}
public BigDecimal getTrxBalance()
{
return trxBalance;
}
public void setEnergyNum(Long energyNum)
{
this.energyNum = energyNum;
}
public Long getEnergyNum()
{
return energyNum;
}
public void setBandwidthNum(Long bandwidthNum)
{
this.bandwidthNum = bandwidthNum;
}
public Long getBandwidthNum()
{
return bandwidthNum;
}
public void setWithdrawUsdtBalance(BigDecimal withdrawUsdtBalance)
{
this.withdrawUsdtBalance = withdrawUsdtBalance;
}
public BigDecimal getWithdrawUsdtBalance()
{
return withdrawUsdtBalance;
}
public void setDelegatedEnergyTrxNum(Long delegatedEnergyTrxNum)
{
this.delegatedEnergyTrxNum = delegatedEnergyTrxNum;
}
public Long getDelegatedEnergyTrxNum()
{
return delegatedEnergyTrxNum;
}
public void setDelegatedEnergyValue(BigDecimal delegatedEnergyValue)
{
this.delegatedEnergyValue = delegatedEnergyValue;
}
public BigDecimal getDelegatedEnergyValue()
{
return delegatedEnergyValue;
}
public void setAcquiredDelegatedEnergyTrxNum(Long acquiredDelegatedEnergyTrxNum)
{
this.acquiredDelegatedEnergyTrxNum = acquiredDelegatedEnergyTrxNum;
}
public Long getAcquiredDelegatedEnergyTrxNum()
{
return acquiredDelegatedEnergyTrxNum;
}
public void setAcquiredDelegatedEnergyValue(BigDecimal acquiredDelegatedEnergyValue)
{
this.acquiredDelegatedEnergyValue = acquiredDelegatedEnergyValue;
}
public BigDecimal getAcquiredDelegatedEnergyValue()
{
return acquiredDelegatedEnergyValue;
}
public void setDelegatedBandwidthTrxNum(Long delegatedBandwidthTrxNum)
{
this.delegatedBandwidthTrxNum = delegatedBandwidthTrxNum;
}
public Long getDelegatedBandwidthTrxNum()
{
return delegatedBandwidthTrxNum;
}
public void setDelegatedBandwidthValue(BigDecimal delegatedBandwidthValue)
{
this.delegatedBandwidthValue = delegatedBandwidthValue;
}
public BigDecimal getDelegatedBandwidthValue()
{
return delegatedBandwidthValue;
}
public void setAcquiredDelegatedBandwidthTrxNum(Long acquiredDelegatedBandwidthTrxNum)
{
this.acquiredDelegatedBandwidthTrxNum = acquiredDelegatedBandwidthTrxNum;
}
public Long getAcquiredDelegatedBandwidthTrxNum()
{
return acquiredDelegatedBandwidthTrxNum;
}
public void setAcquiredDelegatedBandwidthValue(BigDecimal acquiredDelegatedBandwidthValue)
{
this.acquiredDelegatedBandwidthValue = acquiredDelegatedBandwidthValue;
}
public BigDecimal getAcquiredDelegatedBandwidthValue()
{
return acquiredDelegatedBandwidthValue;
}
public void setStakedTrxNum(Long stakedTrxNum)
{
this.stakedTrxNum = stakedTrxNum;
}
public Long getStakedTrxNum()
{
return stakedTrxNum;
}
public void setEnergyStakedTrxNum(Long energyStakedTrxNum)
{
this.energyStakedTrxNum = energyStakedTrxNum;
}
public Long getEnergyStakedTrxNum()
{
return energyStakedTrxNum;
}
public void setBandwidthStakedTrxNum(Long bandwidthStakedTrxNum)
{
this.bandwidthStakedTrxNum = bandwidthStakedTrxNum;
}
public Long getBandwidthStakedTrxNum()
{
return bandwidthStakedTrxNum;
}
public void setVoteNum(Long voteNum)
{
this.voteNum = voteNum;
}
public Long getVoteNum()
{
return voteNum;
}
public void setVotedNum(Long votedNum)
{
this.votedNum = votedNum;
}
public Long getVotedNum()
{
return votedNum;
}
@Override
public String toString() {
@@ -153,6 +372,25 @@ public class WalletAddressPlus implements Serializable
.append("deletedAt", getDeletedAt())
.append("appId", getAppId())
.append("userId", getUserId())
.append("tokenKey", getTokenKey())
.append("usdtBalance", getUsdtBalance())
.append("trxBalance", getTrxBalance())
.append("energyNum", getEnergyNum())
.append("bandwidthNum", getBandwidthNum())
.append("withdrawUsdtBalance", getWithdrawUsdtBalance())
.append("delegatedEnergyTrxNum", getDelegatedEnergyTrxNum())
.append("delegatedEnergyValue", getDelegatedEnergyValue())
.append("acquiredDelegatedEnergyTrxNum", getAcquiredDelegatedEnergyTrxNum())
.append("acquiredDelegatedEnergyValue", getAcquiredDelegatedEnergyValue())
.append("delegatedBandwidthTrxNum", getDelegatedBandwidthTrxNum())
.append("delegatedBandwidthValue", getDelegatedBandwidthValue())
.append("acquiredDelegatedBandwidthTrxNum", getAcquiredDelegatedBandwidthTrxNum())
.append("acquiredDelegatedBandwidthValue", getAcquiredDelegatedBandwidthValue())
.append("stakedTrxNum", getStakedTrxNum())
.append("energyStakedTrxNum", getEnergyStakedTrxNum())
.append("bandwidthStakedTrxNum", getBandwidthStakedTrxNum())
.append("voteNum", getVoteNum())
.append("votedNum", getVotedNum())
.toString();
}
}
@@ -2,6 +2,9 @@ package com.ruoyi.system.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -22,6 +25,7 @@ public class Web3WalletPlus implements Serializable
private static final long serialVersionUID = 1L;
/** 用户 */
@TableId(type = IdType.INPUT)
private Long id;
/** usdt */
@Excel(name = "usdt")
@@ -0,0 +1,11 @@
package com.ruoyi.system.domain.vo;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.Map;
@Data
public class AccountResource {
@JsonProperty("frozen_balance_for_energy")
private Map<String, Object> frozenBalanceForEnergy;
}
@@ -0,0 +1,72 @@
package com.ruoyi.system.domain.vo;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Map;
@Data
public class Bandwidth {
@JsonProperty("energyRemaining")
private long energyRemaining;
@JsonProperty("energyLimit")
private long energyLimit;
@JsonProperty("totalEnergyLimit")
private long totalEnergyLimit;
@JsonProperty("totalEnergyWeight")
private long totalEnergyWeight;
@JsonProperty("energyUsed")
private long energyUsed;
@JsonProperty("netUsed")
private long netUsed;
@JsonProperty("netLimit")
private long netLimit;
@JsonProperty("netRemaining")
private long netRemaining;
@JsonProperty("freeNetLimit")
private long freeNetLimit;
@JsonProperty("freeNetUsed")
private long freeNetUsed;
@JsonProperty("freeNetRemaining")
private long freeNetRemaining;
@JsonProperty("totalNetLimit")
private long totalNetLimit;
@JsonProperty("totalNetWeight")
private long totalNetWeight;
@JsonProperty("netPercentage")
private BigDecimal netPercentage;
@JsonProperty("freeNetPercentage")
private BigDecimal freeNetPercentage;
@JsonProperty("energyPercentage")
private BigDecimal energyPercentage;
@JsonProperty("storageLimit")
private long storageLimit;
@JsonProperty("storageUsed")
private long storageUsed;
@JsonProperty("storageRemaining")
private long storageRemaining;
@JsonProperty("storagePercentage")
private BigDecimal storagePercentage;
@JsonProperty("assets")
private Map<String, Object> assets;
}
@@ -0,0 +1,24 @@
package com.ruoyi.system.domain.vo;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
@Data
public class EnergyAndBandwidthVo implements Serializable {
private BigDecimal delegateBandwidth;
private BigDecimal delegateEnergy;
private Long stakedTrxNum;
@Excel(name = "质押还剩能用的带宽")
private Long bandwidthStakedNum;
private BigDecimal bandwidth;
private BigDecimal energy;
private BigDecimal acquiredBandwidth;
private BigDecimal acquiredEnergy;
}
@@ -0,0 +1,15 @@
package com.ruoyi.system.domain.vo;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.List;
@Data
public class Frozen {
@JsonProperty("total")
private long total;
@JsonProperty("balances")
private List<Object> balances;
}
@@ -0,0 +1,26 @@
package com.ruoyi.system.domain.vo;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.List;
@Data
public class Permission {
@JsonProperty("id")
private int id;
@JsonProperty("type")
private String type;
@JsonProperty("permission_name")
private String permissionName;
@JsonProperty("threshold")
private int threshold;
@JsonProperty("operations")
private String operations;
@JsonProperty("keys")
private List<PermissionKey> keys;
}
@@ -0,0 +1,13 @@
package com.ruoyi.system.domain.vo;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
@Data
public class PermissionKey {
@JsonProperty("address")
private String address;
@JsonProperty("weight")
private int weight;
}
@@ -0,0 +1,20 @@
package com.ruoyi.system.domain.vo;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
@Data
public class Representative {
@JsonProperty("lastWithDrawTime")
private long lastWithDrawTime;
@JsonProperty("allowance")
private long allowance;
@JsonProperty("enabled")
private boolean enabled;
@JsonProperty("url")
private String url;
}
@@ -0,0 +1,47 @@
package com.ruoyi.system.domain.vo;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.math.BigDecimal;
@Data
public class TokenBalance {
@JsonProperty("tokenId")
private String tokenId;
@JsonProperty("tokenName")
private String tokenName;
@JsonProperty("tokenAbbr")
private String tokenAbbr;
@JsonProperty("tokenDecimal")
private int tokenDecimal;
@JsonProperty("tokenType")
private String tokenType;
@JsonProperty("balance")
private String balance;
@JsonProperty("amount")
private BigDecimal amount;
@JsonProperty("tokenPriceInTrx")
private BigDecimal tokenPriceInTrx;
@JsonProperty("vip")
private boolean vip;
@JsonProperty("tokenCanShow")
private int tokenCanShow;
@JsonProperty("tokenLogo")
private String tokenLogo;
@JsonProperty("transferCount")
private long transferCount;
@JsonProperty("nrOfTokenHolders")
private long nrOfTokenHolders;
}
@@ -0,0 +1,18 @@
package com.ruoyi.system.domain.vo;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* TRON 钱包信息实体
*/
@Data
public class TronAccount implements Serializable {
private static final long serialVersionUID = 1L;
private List<TronAccountItem> items;
private String phrase;
}
@@ -0,0 +1,63 @@
package com.ruoyi.system.domain.vo;
import lombok.Data;
import java.io.Serializable;
/**
* TRON 钱包信息实体
*/
@Data
public class TronAccountItem implements Serializable {
private static final long serialVersionUID = 1L;
/**
* Base58 地址(T 开头)
* 示例:TDYsiHd9Jac9Hs2wFBySrbAgx548ahXuQW
*/
private String address;
private String pubKeyCompressed;
private String pubKeyUnCompressed;
/**
* 私钥(Hex)
* 示例:xxxx
*/
private String privateKey;
private String path;
/**
* Hex 地址(41 开头)
* 示例:41xxx
*/
private String hexAddress;
/**
* Base58 私钥
* 示例:xxx
*/
private String privateKeyBase58;
public TronAccountItem() {
}
public TronAccountItem(String address, String privateKey, String hexAddress, String privateKeyBase58) {
this.address = address;
this.privateKey = privateKey;
this.hexAddress = hexAddress;
this.privateKeyBase58 = privateKeyBase58;
}
@Override
public String toString() {
return "TronAccount{" +
"address='" + address + '\'' +
", hexAddress='" + hexAddress + '\'' +
'}';
}
}
@@ -0,0 +1,254 @@
package com.ruoyi.system.domain.vo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class TronAccountResp {
@JsonProperty("totalFrozenV2")
private long totalFrozenV2;
@JsonProperty("transactions_out")
private int transactionsOut;
@JsonProperty("frozenForEnergyV2")
private long frozenForEnergyV2;
@JsonProperty("totalEnergy")
private long totalEnergy;
@JsonProperty("rewardNum")
private int rewardNum;
/**
* 我代理给别人的 2.0 带宽trx
*/
@JsonProperty("delegatedFrozenV2BalanceForBandwidth")
private long delegatedFrozenV2BalanceForBandwidth;
@JsonProperty("ownerPermission")
private Permission ownerPermission;
@JsonProperty("redTag")
private String redTag;
@JsonProperty("delegateFrozenForEnergy")
private long delegateFrozenForEnergy;
@JsonProperty("totalEnergyRemaining")
private long totalEnergyRemaining;
@JsonProperty("balance")
private long balance;
@JsonProperty("frozenForBandWidthV2")
private long frozenForBandWidthV2;
@JsonProperty("canWithdrawAmountV2")
private long canWithdrawAmountV2;
@JsonProperty("netRemainingCal")
private long netRemainingCal;
@JsonProperty("delegated")
private Map<String, Object> delegated;
@JsonProperty("transactions_in")
private int transactionsIn;
@JsonProperty("totalTransactionCount")
private int totalTransactionCount;
@JsonProperty("frozenForEnergyV2Value")
private long frozenForEnergyV2Value;
@JsonProperty("representative")
private Representative representative;
/**
* 别人代理给我 1.0 我获得的带宽值
*/
@JsonProperty("acquiredDelegatedFrozenBalanceForBandwidthValue")
private BigDecimal acquiredDelegatedFrozenBalanceForBandwidthValue;
@JsonProperty("announcement")
private String announcement;
@JsonProperty("allowExchange")
private List<Object> allowExchange;
@JsonProperty("accountType")
private int accountType;
@JsonProperty("totalFrozenBandwidthValue")
private long totalFrozenBandwidthValue;
@JsonProperty("frozen")
private Frozen frozen;
@JsonProperty("balanceStr")
private String balanceStr;
@JsonProperty("transactions")
private int transactions;
/**
*我代理給別人的2.0 trx
*/
@JsonProperty("delegatedFrozenV2BalanceForEnergy")
private long delegatedFrozenV2BalanceForEnergy;
@JsonProperty("totalFrozenEnergyV2Value")
private long totalFrozenEnergyV2Value;
@JsonProperty("name")
private String name;
@JsonProperty("totalFrozenEnergyValue")
private long totalFrozenEnergyValue;
@JsonProperty("frozenForEnergy")
private long frozenForEnergy;
@JsonProperty("energyCost")
private BigDecimal energyCost;
@JsonProperty("activePermissions")
private List<Permission> activePermissions;
/**
* 別人代理給我的 2.0 trx
*/
@JsonProperty("acquiredDelegatedFrozenV2BalanceForBandwidth")
private long acquiredDelegatedFrozenV2BalanceForBandwidth;
@JsonProperty("netCost")
private BigDecimal netCost;
/**
* 别人代理给我的 1.0 trx
*/
@JsonProperty("acquiredDelegateFrozenForBandWidth")
private long acquiredDelegateFrozenForBandWidth;
@JsonProperty("frozenForBandwidthValue")
private long frozenForBandwidthValue;
@JsonProperty("greyTag")
private String greyTag;
/**
* 我代理给别人的 2.0 能量值
*/
@JsonProperty("delegatedFrozenV2BalanceForEnergyValue")
private BigDecimal delegatedFrozenV2BalanceForEnergyValue;
@JsonProperty("withPriceTokens")
private List<TokenBalance> withPriceTokens;
/**
* 别人代理给我 我获得的 Stake 2.0 能量值
*/
@JsonProperty("acquiredDelegatedFrozenV2BalanceForEnergyValue")
private BigDecimal acquiredDelegatedFrozenV2BalanceForEnergyValue;
@JsonProperty("unfreezeV2")
private long unfreezeV2;
/**
* 我代理给别人的 2.0 带宽值
*/
@JsonProperty("delegatedFrozenV2BalanceForBandwidthValue")
private BigDecimal delegatedFrozenV2BalanceForBandwidthValue;
@JsonProperty("feedbackRisk")
private boolean feedbackRisk;
@JsonProperty("voteTotal")
private long voteTotal;
@JsonProperty("totalFrozen")
private long totalFrozen;
@JsonProperty("totalFrozenBandwidthV2Value")
private long totalFrozenBandwidthV2Value;
@JsonProperty("latest_operation_time")
private long latestOperationTime;
@JsonProperty("totalNetRemaining")
private long totalNetRemaining;
@JsonProperty("frozenForBandWidth")
private long frozenForBandWidth;
@JsonProperty("reward")
private int reward;
@JsonProperty("frozenForEnergyV2ValueSum")
private BigDecimal frozenForEnergyV2ValueSum;
@JsonProperty("addressTagLogo")
private String addressTagLogo;
@JsonProperty("address")
private String address;
@JsonProperty("frozen_supply")
private List<Object> frozenSupply;
@JsonProperty("bandwidth")
private Bandwidth bandwidth;
@JsonProperty("date_created")
private long dateCreated;
/**
* 别人代理给我 我获得的 Stake 2.0 Trx
*/
@JsonProperty("acquiredDelegatedFrozenV2BalanceForEnergy")
private long acquiredDelegatedFrozenV2BalanceForEnergy;
@JsonProperty("frozenForBandwidthV2Value")
private long frozenForBandwidthV2Value;
@JsonProperty("frozenForBandwidthV2ValueSum")
private BigDecimal frozenForBandwidthV2ValueSum;
@JsonProperty("accountResource")
private AccountResource accountResource;
@JsonProperty("totalNet")
private long totalNet;
@JsonProperty("blueTag")
private String blueTag;
/**
* 别人代理给我 我获得的 Stake 2.0 带宽值
*/
@JsonProperty("acquiredDelegatedFrozenV2BalanceForBandwidthValue")
private BigDecimal acquiredDelegatedFrozenV2BalanceForBandwidthValue;
@JsonProperty("witness")
private int witness;
@JsonProperty("frozenForEnergyValue")
private long frozenForEnergyValue;
@JsonProperty("freezing")
private long freezing;
/**
* 我代理给别人的带宽trx 1.0
*/
@JsonProperty("delegateFrozenForBandWidth")
private long delegateFrozenForBandWidth;
/**
* 别人代理给我 能量 我获得的 Stake 1.0 能量值
*/
@JsonProperty("acquiredDelegatedFrozenBalanceForEnergyValue")
private BigDecimal acquiredDelegatedFrozenBalanceForEnergyValue;
@JsonProperty("activated")
private boolean activated;
/**
* 别人代理给我的 1.0 能量trx
*/
@JsonProperty("acquiredDelegateFrozenForEnergy")
private long acquiredDelegateFrozenForEnergy;
}