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


import com.microservices.common.core.utils.bean.BeanUtils;
import com.microservices.pms.project.domain.PmsProjectSprint;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;
import java.util.Date;

@Data
@ApiModel("项目迭代更新对象")
public class PmsProjectSprintUpdateVo {

    @ApiModelProperty(value = "迭代id")
    private Long id;

    @ApiModelProperty(value = "项目迭代名称")
    @Size(max = 100)
    private String sprintName;

    @ApiModelProperty(value = "负责人id")
    private Long sprintAssigneeId;

    @ApiModelProperty(value = "项目简介")
    @Size(max = 200)
    private String sprintDescription;

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

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

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

    @ApiModelProperty(value = "工时规模")
    private Long timeScale;

    @ApiModelProperty(value = "状态 0待开始 1进行中 2已关闭")
    private String status;

//    @ApiModelProperty(value = "是否使用文档模板 0 否 1 是")
//    private Integer docTemplate;

    public PmsProjectSprint toPmsProjectSprint() {
        PmsProjectSprint pmsProjectSprint = new PmsProjectSprint();
        BeanUtils.copyProperties(this, pmsProjectSprint);
        return pmsProjectSprint;
    }

}
