package com.test.test.domain;

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

/**
 * 性能测试与测试用例关联对象 performance_test_case
 *
 * @author test
 * @date 2025-04-14
 */
public class PerformanceTestCase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 性能测试id（逻辑外键） */
    @Excel(name = "性能测试id", readConverterExp = "逻辑外键")
    private Long performanceId;

    /** 性能测试关联测试用例的id（逻辑外键） */
    @Excel(name = "性能测试关联测试用例的id", readConverterExp = "逻辑外键")
    private Long testCaseId;

    /** 状态：0关闭，1开启，默认1 */
    @Excel(name = "状态：0关闭，1开启，默认1")
    private Integer status;

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

    public Long getId()
    {
        return id;
    }
    public void setPerformanceId(Long performanceId)
    {
        this.performanceId = performanceId;
    }

    public Long getPerformanceId()
    {
        return performanceId;
    }
    public void setTestCaseId(Long testCaseId)
    {
        this.testCaseId = testCaseId;
    }

    public Long getTestCaseId()
    {
        return testCaseId;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("performanceId", getPerformanceId())
                .append("testCaseId", getTestCaseId())
                .append("status", getStatus())
                .toString();
    }
}