package org.yeshi.utils.generater.annotation.admin;
|
|
import java.lang.annotation.*;
|
|
/**
|
* @author Administrator
|
* @title: Show
|
* @projectName utils
|
* @description: 是否在列表中显示
|
* @date 2021/9/2313:42
|
*/
|
@Documented
|
@Target(ElementType.FIELD)
|
@Inherited
|
@Retention(RetentionPolicy.RUNTIME)
|
public @interface Show {
|
|
//显示的顺序
|
int order() default 0;
|
|
//标题
|
String title();
|
|
|
//显示类型
|
ShowType showType() default ShowType.TEXT;
|
|
|
//显示类型为IMG时生效
|
int imgWidth() default -1;
|
|
int imgHeight() default -1;
|
|
|
//当格式为日期格式时选填此项
|
String dateFormate() default "yyyy.MM.dd";
|
|
//显示类型
|
enum ShowType {
|
TEXT,DATETIME, IMG,SWITCH;
|
}
|
|
|
}
|