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;
import java.util.Date;

/**
 * 测试单保存对象 pms_project_testsheet
 *
 * @author xxq
 * @date 2023-11-24
 */
@Data
@ApiModel("测试单保存对象")
public class PmsProjectTestsheetInputVo {

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

    @ApiModelProperty(value = "测试单名称")
    @NotBlank(message = "测试单名称不能为空")
    @Size(max = 50, message = "测试单名称长度不能大于50")
    private String name;

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

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

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

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

}
