package com.xdap.self_development.controller.form;

import com.xdap.self_development.domain.dto.ApprovalNodeDTO;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
public class SaveBenchmarkingReportForm {
    @NotBlank(message = "标题不能为空")
    private String title;
    private String manufacturerName;
    private String modelName;
    private String module;
    private String manufacturerAbbreviation;
    private String modelAbbreviation;
    private String productNumber;
    private String plate;
    private String platform;
    private String series;
    private String marketSegment;
    private String projectName;
    private String projectNumber;

    private String subsystem;
    private String partsName;

    @NotBlank(message = "流程标题不能为空")
    private String processTitle;
    // 审批环节配置列表
    @NotEmpty(message = "环节不能为空")
    private List<ApprovalNodeDTO> nodeList;
    private String explanation;

    @NotBlank(message = "发起人不能为空")
    private String userId;
    private String fileUrl;
    private String fileName;
}
