
package jnpf.model.cultivate.v2.apply.req;

import jnpf.model.cultivate.dto.offline.FtbCultivateOfflineFileDTO;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class V2IdentifyApplySubmitReq {

    /**
     * 实操鉴定ID
     */
    @NotBlank(message = "实操鉴定ID不能为空")
    private String id;
    /**
     * 用时(单位分钟)
     */
    @NotNull(message = "用时不能为空")
    private Integer useTime;
    /**
     * 鉴定项集合
     */
    @NotEmpty(message = "鉴定项集合不能为空")
    private List<V2IdentifyApplyItemReq> identifyItemList;


    /**
     * 附件信息上限20个
     */
    @Size(max = 20, message = "附件信息上限20个")
    @Valid
    private List<FtbCultivateOfflineFileDTO> files;

}