提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.permission.vo.menu; |
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 |
import java.time.LocalDateTime; |
|
10 |
|
|
11 |
@Schema(description = "管理后台 - 菜单信息 Response VO") |
|
12 |
@Data |
|
13 |
public class MenuRespVO { |
|
14 |
|
|
15 |
@Schema(description = "菜单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
16 |
private Long id; |
|
17 |
|
|
18 |
@Schema(description = "菜单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "平台") |
|
19 |
@NotBlank(message = "菜单名称不能为空") |
|
20 |
@Size(max = 50, message = "菜单名称长度不能超过50个字符") |
|
21 |
private String name; |
|
22 |
|
|
23 |
@Schema(description = "权限标识,仅菜单类型为按钮时,才需要传递", example = "sys:menu:add") |
|
24 |
@Size(max = 100) |
|
25 |
private String permission; |
|
26 |
|
|
27 |
@Schema(description = "类型,参见 MenuTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
28 |
@NotNull(message = "菜单类型不能为空") |
|
29 |
private Integer type; |
|
30 |
|
|
31 |
@Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
32 |
@NotNull(message = "显示顺序不能为空") |
|
33 |
private Integer sort; |
|
34 |
|
|
35 |
@Schema(description = "父菜单 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
36 |
@NotNull(message = "父菜单 ID 不能为空") |
|
37 |
private Long parentId; |
|
38 |
|
|
39 |
@Schema(description = "路由地址,仅菜单类型为菜单或者目录时,才需要传", example = "post") |
|
40 |
@Size(max = 200, message = "路由地址不能超过200个字符") |
|
41 |
private String path; |
|
42 |
|
|
43 |
@Schema(description = "菜单图标,仅菜单类型为菜单或者目录时,才需要传", example = "/menu/list") |
|
44 |
private String icon; |
|
45 |
|
|
46 |
@Schema(description = "组件路径,仅菜单类型为菜单时,才需要传", example = "system/post/index") |
|
47 |
@Size(max = 200, message = "组件路径不能超过255个字符") |
|
48 |
private String component; |
|
49 |
|
|
50 |
@Schema(description = "组件名", example = "SystemUser") |
|
51 |
private String componentName; |
|
52 |
|
|
53 |
@Schema(description = "状态,见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
54 |
@NotNull(message = "状态不能为空") |
|
55 |
private Integer status; |
|
56 |
|
|
57 |
@Schema(description = "是否可见", example = "false") |
|
58 |
private Boolean visible; |
|
59 |
|
|
60 |
@Schema(description = "是否缓存", example = "false") |
|
61 |
private Boolean keepAlive; |
|
62 |
|
|
63 |
@Schema(description = "是否总是显示", example = "false") |
|
64 |
private Boolean alwaysShow; |
|
65 |
|
|
66 |
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
|
67 |
private LocalDateTime createTime; |
|
68 |
|
|
69 |
} |