package com.ruoyi.blockchain.domain;

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;

/**
 * 区块链记录对象 blockchain_record
 * 
 * @author ruoyi
 */
public class BlockchainRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long recordId;

    /** 数据哈希 */
    @Excel(name = "数据哈希")
    private String dataHash;

    /** 数据类型 */
    @Excel(name = "数据类型")
    private String dataType;

    /** 源数据ID */
    @Excel(name = "源数据ID")
    private Long sourceId;

    /** 交易哈希 */
    @Excel(name = "交易哈希")
    private String transactionHash;

    /** 区块号 */
    @Excel(name = "区块号")
    private Long blockNumber;

    /** 区块哈希 */
    @Excel(name = "区块哈希")
    private String blockHash;

    /** 上链状态 */
    @Excel(name = "上链状态")
    private String status;

    /** Gas费用 */
    @Excel(name = "Gas费用")
    private String gasFee;

    /** 确认数 */
    @Excel(name = "确认数")
    private Integer confirmations;

    /** 网络ID */
    @Excel(name = "网络ID")
    private String networkId;

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public Long getRecordId() {
        return recordId;
    }

    public void setDataHash(String dataHash) {
        this.dataHash = dataHash;
    }

    public String getDataHash() {
        return dataHash;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public String getDataType() {
        return dataType;
    }

    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }

    public Long getSourceId() {
        return sourceId;
    }

    public void setTransactionHash(String transactionHash) {
        this.transactionHash = transactionHash;
    }

    public String getTransactionHash() {
        return transactionHash;
    }

    public void setBlockNumber(Long blockNumber) {
        this.blockNumber = blockNumber;
    }

    public Long getBlockNumber() {
        return blockNumber;
    }

    public void setBlockHash(String blockHash) {
        this.blockHash = blockHash;
    }

    public String getBlockHash() {
        return blockHash;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setGasFee(String gasFee) {
        this.gasFee = gasFee;
    }

    public String getGasFee() {
        return gasFee;
    }

    public void setConfirmations(Integer confirmations) {
        this.confirmations = confirmations;
    }

    public Integer getConfirmations() {
        return confirmations;
    }

    public void setNetworkId(String networkId) {
        this.networkId = networkId;
    }

    public String getNetworkId() {
        return networkId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("dataHash", getDataHash())
            .append("dataType", getDataType())
            .append("sourceId", getSourceId())
            .append("transactionHash", getTransactionHash())
            .append("blockNumber", getBlockNumber())
            .append("blockHash", getBlockHash())
            .append("status", getStatus())
            .append("gasFee", getGasFee())
            .append("confirmations", getConfirmations())
            .append("networkId", getNetworkId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}