package com.zt.plat.module.base.controller.admin.templtp.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.springframework.web.multipart.MultipartFile;

@Schema(description = "管理后台 - 模板实例新增/修改 Request VO")
@Data
public class TemplateInstanceSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "29024")
    private Long id;

    @Schema(description = "分类树主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "7804")
    @NotNull(message = "分类树主键不能为空")
    private Long tpId;

    @Schema(description = "模板名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "模板名称不能为空")
    private String name;

//    @Schema(description = "模板编码", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "模板编码不能为空")
//    private String cdg;

    @Schema(description = "模板描述")
    private String dsp;

    @Schema(description = "实例文件内容")
    private String cntt;

    @Schema(description = "原始文件内容", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "原始文件内容不能为空")
    private String origCntt;

    @Schema(description = "文件类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "文件类型不能为空")
    private String fileTp;

    @Schema(description = "版本号;如v1.0", requiredMode = Schema.RequiredMode.REQUIRED)
    //@NotEmpty(message = "版本号;如v1.0不能为空")
    private String ver;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "状态不能为空")
    private String sts;


    @Schema(description = "使用部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "使用部门编号不能为空")
    private List<String> deptIds;

}
