package com.test.test.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.test.common.annotation.Excel;
import com.test.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 测试计划用例关联对象 test_plan_case
 *
 * @author test
 * @date 2025-04-25
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class TestPlanCase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 测试计划主键ID */
    @Excel(name = "测试计划主键ID")
    private Long planId;

    /** 用例主键ID */
    @Excel(name = "用例主键ID")
    private Long caseId;

    /** 测试用例类型(0,冒烟测试,1,功能测试,2,回归测试,3,准生产测试,4,生产验证) */
    @Excel(name = "测试用例类型(0,冒烟测试,1,功能测试,2,回归测试,3,准生产测试,4,生产验证)")
    private Integer type;

    /** 未执行、成功或失败 */
    @Excel(name = "未执行、成功或失败")
    private String executeResult;

    /** 执行时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "执行时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date executeTime;

    /** 执行人 */
    @Excel(name = "执行人")
    private String executeBy;

    /** 版本 */
    @Excel(name = "版本")
    private String version;

    /** 0,正常,1,删除 */
    private String delFlag;

    /** 未执行、成功或失败 */
    @Excel(name = "用例名称")
    private String caseName;
}
