com.kangaroohy.plugin.excel.annotation.ExcelUniqueFields Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of excel-spring-boot-starter Show documentation
Show all versions of excel-spring-boot-starter Show documentation
easy and high performance excel
package com.kangaroohy.plugin.excel.annotation;
import java.lang.annotation.*;
/**
* 类 ExcelUniqueFields 功能描述:
*
* @author hy
* @version 0.0.1
* @date 2023/9/2 22:23
*/
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface ExcelUniqueFields {
/**
* 该组内所有字段组合保证唯一性
*
* @return
*/
String[] groupUnique() default {};
/**
* 该组内每个字段单独保证唯一,字段之间可以允许重复
*
* @return
*/
String[] singleUnique() default {};
/**
* 空值不做校验,false时 null 也会当成值的一种参与校验
*
* @return
*/
boolean skipNull() default true;
}