skyouc
2025-03-13 e86cd6325395c784d1c116a035987a5cf19bbe69
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
27
28
29
30
package com.vincent.rsf.server.manager.entity.excel.annotation;
 
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
 
/**
 * @author: Ryan
 * @create: 2025/3/01 13:29
 * @version: 1.0
 * @description: excel 注释
 */
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface ExcelComment {
 
    /** 备注信息 */
    String value() default "";
 
    /** 是否非空。自动在备注后面拼接 "必填项"*/
    boolean notNull() default true;
 
 
    /** 字典值,如果不为空,会在 {@link #value()} 的后面加上 可选值:label1、label2 */
    String dict() default "";
 
    /** 示例值;调用{@link ExcelUtils#mockData(Class)} 时 将从此字段取值 */
    String example() default "";
}