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
| package org.yeshi.utils.generater.annotation.admin.form;
|
| import java.lang.annotation.*;
|
| /**
| * @author Administrator
| * @title: Img
| * @projectName utils
| * @description: 图片控件
| * @date 2021/9/2312:06
| */
| @Documented
| @Target(ElementType.FIELD)
| @Inherited
| @Retention(RetentionPolicy.RUNTIME)
| public @interface Img {
| //标题
| String title();
|
| //是否可更新
| boolean update() default true;
|
| //简介
| String desc() default "";
|
| //是否禁止编辑
| boolean disable() default false;
|
| //图片宽度px,默认不设置
| int width() default -1;
|
| //图片高度px,默认不设置
| int height() default -1;
| }
|
|