package com.hotent.project.req;


import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel("新增/修改监审工作流程请求类")
public class CostProjectProcessReq {

    @ApiModelProperty(value = "流程id 修改时必填")
    private String processId;

    @ApiModelProperty(value = "开始时间",required = true)
    @NotEmpty(message = "开始时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate plannedAuditStartDate;

    @ApiModelProperty(value = "结束时间",required = true)
    @NotEmpty(message = "结束时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate plannedAuditEndDate;

    @ApiModelProperty(value = "项目id",required = true)
    @NotEmpty(message = "项目id不能为空")
    private String projectId;


    @ApiModelProperty(value = "流程节点列表",required = true)
    @NotNull(message = "流程节点列表不能为空")
    private List<CostProjectProcessNodeReq> nodeReqList;






}
