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 "";
|
}
|