package com.microservices.pms.project.domain.vo;

import com.microservices.system.api.domain.SimpleSysUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.Map;

/**
 * 测试单查看详情对象 pms_project_testsheet
 *
 * @author xxq
 * @date 2023-11-24
 */
@Data
@ApiModel("测试单查看详情对象")
public class PmsProjectTestsheetVo {

    @ApiModelProperty(value = "测试单Id")
    private Long id;

    @ApiModelProperty(value = "项目Id")
    private Long pmsProjectId;

    @ApiModelProperty(value = "测试单名称")
    private String name;

    @ApiModelProperty(value = "负责人ID")
    private Long assigneeId;

    @ApiModelProperty(value = "负责人姓名")
    private SimpleSysUser assigneeUser;

    @ApiModelProperty(value = "关联迭代ID")
    private Long projectSprintId;

    @ApiModelProperty(value = "关联迭代名称")
    private String projectSprintIdStr;

    @ApiModelProperty(value = "开始时间")
    private Date beginTime;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "状态值")
    private Long status;

    @ApiModelProperty(value = "状态说明:0未开始，1进行中，2已完成")
    private String statusStr;

    @ApiModelProperty(value = "通过率")
    private Double passRate;

    @ApiModelProperty(value = "通过详情")
    private Map<Long, Integer> passDetail;

    @ApiModelProperty(value = "执行用例数")
    private Integer execCount;

    @ApiModelProperty(value = "总用例数")
    private Integer totalCount;

    @ApiModelProperty(value = "是否逾期")
    private Boolean isDelay = false;

}
