baoshiwei
2025-03-12 f1208474f771a1c233d7425c8ed13fbaa0d521ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package org.dromara.common.excel.annotation;
 
import org.apache.poi.ss.usermodel.IndexedColors;
 
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
 
/**
 * 是否必填
 * @author guzhouyanyu
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ExcelRequired {
 
    /**
     * col index
     */
    int index() default -1;
    /**
     * 字体颜色
     */
    IndexedColors fontColor() default IndexedColors.RED;
}