提交 | 用户 | 时间
|
818a01
|
1 |
package com.iailab.module.system.controller.admin.app.vo; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import javax.validation.constraints.NotBlank; |
|
7 |
import javax.validation.constraints.NotNull; |
|
8 |
import javax.validation.constraints.Size; |
|
9 |
|
|
10 |
@Schema(description = "应用菜单创建/修改 Request VO") |
|
11 |
@Data |
|
12 |
public class AppMenuSaveVO { |
|
13 |
|
|
14 |
@Schema(description = "菜单编号", example = "1024") |
|
15 |
private Long id; |
|
16 |
|
|
17 |
@Schema(description = "菜单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "平台") |
|
18 |
@NotBlank(message = "菜单名称不能为空") |
|
19 |
@Size(max = 50, message = "菜单名称长度不能超过50个字符") |
|
20 |
private String name; |
|
21 |
|
|
22 |
@Schema(description = "权限标识,仅菜单类型为按钮时,才需要传递", example = "sys:menu:add") |
|
23 |
@Size(max = 100) |
|
24 |
private String permission; |
|
25 |
|
|
26 |
@Schema(description = "类型,参见 MenuTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
27 |
@NotNull(message = "菜单类型不能为空") |
|
28 |
private Integer type; |
|
29 |
|
|
30 |
@Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
31 |
@NotNull(message = "显示顺序不能为空") |
|
32 |
private Integer sort; |
|
33 |
|
|
34 |
@Schema(description = "父菜单 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
35 |
@NotNull(message = "父菜单 ID 不能为空") |
|
36 |
private Long parentId; |
|
37 |
|
|
38 |
@Schema(description = "路由地址,仅菜单类型为菜单或者目录时,才需要传", example = "post") |
|
39 |
@Size(max = 200, message = "路由地址不能超过200个字符") |
|
40 |
private String path; |
|
41 |
|
|
42 |
@Schema(description = "菜单图标,仅菜单类型为菜单或者目录时,才需要传", example = "/menu/list") |
|
43 |
private String icon; |
|
44 |
|
|
45 |
@Schema(description = "组件路径,仅菜单类型为菜单时,才需要传", example = "system/post/index") |
|
46 |
@Size(max = 200, message = "组件路径不能超过255个字符") |
|
47 |
private String component; |
|
48 |
|
|
49 |
@Schema(description = "组件名", example = "SystemUser") |
|
50 |
private String componentName; |
|
51 |
|
|
52 |
@Schema(description = "状态,见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
53 |
@NotNull(message = "状态不能为空") |
|
54 |
private Integer status; |
|
55 |
|
|
56 |
@Schema(description = "是否可见", example = "false") |
|
57 |
private Boolean visible; |
|
58 |
|
|
59 |
@Schema(description = "是否缓存", example = "false") |
|
60 |
private Boolean keepAlive; |
|
61 |
|
|
62 |
@Schema(description = "是否总是显示", example = "false") |
|
63 |
private Boolean alwaysShow; |
|
64 |
|
|
65 |
} |