feat: 菜单支持国际化
This commit is contained in:
@@ -71,6 +71,9 @@ public class AuthPermissionInfoRespVO {
|
|||||||
@Schema(description = "菜单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "千通")
|
@Schema(description = "菜单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "千通")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
@Schema(description = "国际化key", example = "menu.system")
|
||||||
|
private String i18nKey;
|
||||||
|
|
||||||
@Schema(description = "路由地址,仅菜单类型为菜单或者目录时,才需要传", example = "post")
|
@Schema(description = "路由地址,仅菜单类型为菜单或者目录时,才需要传", example = "post")
|
||||||
private String path;
|
private String path;
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ public class MenuRespVO {
|
|||||||
@Size(max = 50, message = "菜单名称长度不能超过50个字符")
|
@Size(max = 50, message = "菜单名称长度不能超过50个字符")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
@Schema(description = "国际化key", example = "menu.system")
|
||||||
|
private String i18nKey;
|
||||||
|
|
||||||
@Schema(description = "权限标识,仅菜单类型为按钮时,才需要传递", example = "sys:menu:add")
|
@Schema(description = "权限标识,仅菜单类型为按钮时,才需要传递", example = "sys:menu:add")
|
||||||
@Size(max = 100)
|
@Size(max = 100)
|
||||||
private String permission;
|
private String permission;
|
||||||
|
|||||||
@@ -61,6 +61,10 @@ public class MenuDO extends BaseDO {
|
|||||||
* 父菜单ID
|
* 父菜单ID
|
||||||
*/
|
*/
|
||||||
private Long parentId;
|
private Long parentId;
|
||||||
|
/**
|
||||||
|
* 国际化key,可选,如果填了优先用国际化key取代菜单名称,不填则采用菜单名称
|
||||||
|
*/
|
||||||
|
private String i18nKey;
|
||||||
/**
|
/**
|
||||||
* 路由地址
|
* 路由地址
|
||||||
*
|
*
|
||||||
@@ -105,5 +109,4 @@ public class MenuDO extends BaseDO {
|
|||||||
* 如果为 false 时,当该菜单只有一个子菜单时,不展示自己,直接展示子菜单
|
* 如果为 false 时,当该菜单只有一个子菜单时,不展示自己,直接展示子菜单
|
||||||
*/
|
*/
|
||||||
private Boolean alwaysShow;
|
private Boolean alwaysShow;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user