package org.dromara.progress.domain.dto.progressplan;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.dromara.progress.domain.dto.progressplandetail.PgsProgressPlanDetailCreateDto;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author lcj
 * @date 2025/5/27 10:21
 */
@Data
public class PgsProgressPlanCreateReq implements Serializable {

    @Serial
    private static final long serialVersionUID = -1696848895886843506L;

    /**
     * 项目id
     */
    private Long projectId;

    /**
     * 方阵id
     */
    private Long matrixId;

    /**
     * 进度类型id
     */
    private Long progressCategoryId;

    /**
     * 计划开始时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date startDate;

    /**
     * 计划结束时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date endDate;

    /**
     * 计划数量/百分比
     */
    private Long planNumber;

    /**
     * 计划详情列表
     */
    List<PgsProgressPlanDetailCreateDto> detailList;

}
