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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
| 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, IMG,SWITCH;
| }
|
|
| }
|
|