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

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 测试单执行用例关联缺陷保存对象
 *
 * @author xxq
 * @date 2023-11-30
 */
@Data
@ApiModel("测试单执行用例关联缺陷保存对象")
public class PmsProjectTestsheetIssuesInputVo {

    @ApiModelProperty(value = "项目id")
    @NotNull
    private Long pmProjectId;

    @ApiModelProperty(value = "测试单执行用例ID")
    @NotNull
    private Long projectTestsheetCasesId;

    @ApiModelProperty(value = "工作项名称")
    @NotBlank
    @Size(max = 200, message = "长度需要小于200")
    private String subject;

    @ApiModelProperty(value = "优先级")
    @NotNull
    private Integer priorityId;

    @ApiModelProperty(value = "工作项类型 1需求 2任务 3缺陷")
    private Integer pmIssueType;

    @ApiModelProperty(value = "状态 1新增 2正在解决 3已解决 4反馈 5关闭 6拒绝")
    @NotNull
    private Integer statusId;

}
