Package com.imyeyu.java.bean
Interface LanguageMsgMapping<T>
- All Known Implementing Classes:
TimiError,TimiException,TimiResponse
public interface LanguageMsgMapping<T>
多语言消息接口
- Since:
- 2024-04-01 10:28
- Author:
- 夜雨
-
Method Summary
Modifier and TypeMethodDescriptiongetMsg()获取消息获取附加插值参数获取消息多语言键设置消息设置消息多语言键设置消息多语言键并附加插值参数void设置消息void设置消息多语言键void设置消息多语言键并附加插值参数列表
-
Method Details
-
msg
设置消息- Parameters:
msg- 消息- Returns:
- 原对象
-
msgKey
设置消息多语言键- Parameters:
msgKey- 键- Returns:
- 原对象
-
msgKey
设置消息多语言键并附加插值参数- Parameters:
msgKey- 键msgArgs- 插值参数- Returns:
- 原对象
-
setMsg
设置消息- Parameters:
msg- 消息
-
getMsg
String getMsg()获取消息- Returns:
- 消息
-
setMsgKey
设置消息多语言键- Parameters:
msgKey- 键
-
setMsgKey
设置消息多语言键并附加插值参数列表- Parameters:
msgKey- 键msgArgs- 插值参数
-
getMsgKey
String getMsgKey()获取消息多语言键- Returns:
- 键
-
getMsgArgs
获取附加插值参数- Returns:
- 附加插值参数列表
-