package com.njcn.harmonic.pojo.param.excel;

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

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

/**
 * @author xy
 *
 */
@Data
public class ExcelParam implements Serializable {

    @ApiModelProperty("模板分类名称")
    @NotBlank(message = "模板分类名称不可为空")
    private String modelTypeName;

    @ApiModelProperty("模板分类类型")
    private String modelType;

    @ApiModelProperty("排序")
    private Integer sort;


    @Data
    public static class ListExcelParam implements Serializable {

        @ApiModelProperty("模板分类id")
        private String id;

        @ApiModelProperty("模板id")
        private List<String> modelIds;
    }

    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class UpdateExcelParam extends ExcelParam implements Serializable {

        @ApiModelProperty("模板id")
        private String id;

    }



}
