package com.storlead.trade.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * SOP创建DTO
 */
@Data
@ApiModel(value = "SopCreateDTO", description = "SOP创建请求")
public class SopCreateDTO {

    @ApiModelProperty(value = "SOP名称", required = true)
    @NotBlank(message = "SOP名称不能为空")
    private String name;

    @ApiModelProperty(value = "SOP步骤明细", required = true)
    private List<SopDetailCreateDTO> details;
}
