Class StateParams


  • public final class StateParams
    extends java.lang.Object
    状态码读取配置
    Author:
    WD
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ERROR
      状态码 1=系统错误
      static int NULL
      状态码 100=空
      static int SUCCESS
      状态码 0=成功
      static java.lang.String SUCCESS_MSG
      状态码成功信息
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getMessage​(int code)
      根据状态码获取状态信息
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SUCCESS

        public static final int SUCCESS
        状态码 0=成功
      • ERROR

        public static final int ERROR
        状态码 1=系统错误
      • NULL

        public static final int NULL
        状态码 100=空
      • SUCCESS_MSG

        public static final java.lang.String SUCCESS_MSG
        状态码成功信息
    • Method Detail

      • getMessage

        public static java.lang.String getMessage​(int code)
        根据状态码获取状态信息
        Parameters:
        code - 状态码
        Returns:
        状态信息