feat: auth support i18n message
This commit is contained in:
@@ -2,8 +2,13 @@ package org.wfc.system.api.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.github.pagehelper.util.StringUtil;
|
||||
|
||||
import org.aspectj.bridge.Message;
|
||||
import org.aspectj.bridge.MessageUtil;
|
||||
import org.wfc.common.core.annotation.Excel;
|
||||
import org.wfc.common.core.annotation.Excel.ColumnType;
|
||||
import org.wfc.common.core.utils.MessageUtils;
|
||||
import org.wfc.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
@@ -82,9 +87,19 @@ public class SysLogininfor extends BaseEntity
|
||||
|
||||
public String getMsg()
|
||||
{
|
||||
return msg;
|
||||
String mes = this.msg;
|
||||
if (!StringUtil.isEmpty(msg))
|
||||
{
|
||||
mes = MessageUtils.message(msg);
|
||||
}
|
||||
return mes;
|
||||
}
|
||||
|
||||
// public String getMsg()
|
||||
// {
|
||||
// return msg;
|
||||
// }
|
||||
|
||||
public void setMsg(String msg)
|
||||
{
|
||||
this.msg = msg;
|
||||
|
||||
Reference in New Issue
Block a user