package com.cf.imes.module.system.controller.admin.process.vo.group;

import com.cf.imes.module.system.controller.admin.process.vo.process.ProcessRespVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

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

@Schema(description = "管理后台 - 工序组表 process_group新增/修改 Request VO")
@Data
public class ProcessGroupSaveReqVO {

    @Schema(description = "工序组 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10725")
    private Long id;

    @Schema(description = "工序组名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "工序组名称不能为空")
    private String name;

    @Schema(description = "是否默认工序组：0 否 1 是", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否默认工序组：0 否 1 是不能为空")
    private Boolean isDefault;

    @Schema(description = "排序优先级", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序优先级不能为空")
    private Short sort;

    @Schema(description = "明细，工序 ID 逗号分隔", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "明细，工序 ID 逗号分隔不能为空")
    private String items;

    @Schema(description = "描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "随便")
    @NotEmpty(message = "描述不能为空")
    private String description;

    @Schema(description = "工序集合", requiredMode = Schema.RequiredMode.REQUIRED, example = "{}，{}")
    private List<ProcessRespVO> processList;

}