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

import com.alibaba.fastjson2.JSONObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.microservices.system.api.domain.SimpleSysUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


@Data
@ApiModel("项目迭代详情对象")
public class PmsProjectSprintDetailVo {

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

    @ApiModelProperty(value = "迭代名称")
    private String sprintName;

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


    @ApiModelProperty(value = "所属项目ID")
    private Long pmsProjectId;

    @ApiModelProperty(value = "迭代目标")
    private String sprintDescription;

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

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

    @ApiModelProperty(value = "项目开启时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty(value = "项目截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty(value = "是否置顶 0不置顶 1置顶")
    private Integer isTop;

    @ApiModelProperty(value = "项目迭代负责人用户信息")
    private SimpleSysUser sprintAssignee;

    @ApiModelProperty(value = "工作项详情")
    private JSONObject issues;

    @ApiModelProperty(value = "迭代下工作项统计数据")
    private JSONObject sprintIssuesStatistics;
}
