package com.microservices.dms.achievementLibrary.domain.blockchain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.microservices.common.core.annotation.Excel;
import com.microservices.common.core.web.domain.BaseEntity;

/**
 * 区块链数据入链对象 in_blockchain_data
 * 
 * @author microservices
 * @date 2025-05-27
 */
public class InBlockchainData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 数据类型pr、issue、commit */
    @Excel(name = "数据类型pr、issue、commit")
    private String type;

    /** 关联类型的唯一标识符 */
    @Excel(name = "关联类型的唯一标识符")
    private String typeId;

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

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setTypeId(String typeId) 
    {
        this.typeId = typeId;
    }

    public String getTypeId() 
    {
        return typeId;
    }
    public void setTxHash(String txHash) 
    {
        this.txHash = txHash;
    }

    public String getTxHash() 
    {
        return txHash;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("typeId", getTypeId())
            .append("txHash", getTxHash())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .toString();
    }
}
