Interface LanguageMsgMapping<T>

All Known Implementing Classes:
TimiError, TimiException, TimiResponse

public interface LanguageMsgMapping<T>
多语言消息接口
Since:
2024-04-01 10:28
Author:
夜雨
  • Method Details

    • msg

      T msg(String msg)
      设置消息
      Parameters:
      msg - 消息
      Returns:
      原对象
    • msgKey

      T msgKey(String msgKey)
      设置消息多语言键
      Parameters:
      msgKey - 键
      Returns:
      原对象
    • msgKey

      T msgKey(String msgKey, Map<String,Object> msgArgs)
      设置消息多语言键并附加插值参数
      Parameters:
      msgKey - 键
      msgArgs - 插值参数
      Returns:
      原对象
    • setMsg

      void setMsg(String msg)
      设置消息
      Parameters:
      msg - 消息
    • getMsg

      String getMsg()
      获取消息
      Returns:
      消息
    • setMsgKey

      void setMsgKey(String msgKey)
      设置消息多语言键
      Parameters:
      msgKey - 键
    • setMsgKey

      void setMsgKey(String msgKey, Map<String,Object> msgArgs)
      设置消息多语言键并附加插值参数列表
      Parameters:
      msgKey - 键
      msgArgs - 插值参数
    • getMsgKey

      String getMsgKey()
      获取消息多语言键
      Returns:
    • getMsgArgs

      Map<String,Object> getMsgArgs()
      获取附加插值参数
      Returns:
      附加插值参数列表