feat: menu title support i18n
This commit is contained in:
@@ -7,6 +7,7 @@ import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import org.wfc.common.core.utils.MessageUtils;
|
||||
import org.wfc.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
@@ -94,9 +95,16 @@ public class SysMenu extends BaseEntity
|
||||
@Size(min = 0, max = 50, message = "菜单名称长度不能超过50个字符")
|
||||
public String getMenuName()
|
||||
{
|
||||
return menuName;
|
||||
if (menuName == null || menuName.isEmpty()) {
|
||||
return menuName;
|
||||
}
|
||||
return MessageUtils.message(menuName);
|
||||
}
|
||||
|
||||
// public String getMenuName() {
|
||||
// return menuName;
|
||||
// }
|
||||
|
||||
public void setMenuName(String menuName)
|
||||
{
|
||||
this.menuName = menuName;
|
||||
|
||||
Reference in New Issue
Block a user