无关风月
2024-11-14 ea73e0fcc705bd95c35ef95f17f98f482475a0dd
xinquan-common/xinquan-common-core/src/main/java/com/xinquan/common/core/domain/R.java
@@ -19,6 +19,7 @@
     * token失效
     */
    public static final int TOKEN_ERROR = Constants.TOKEN_ERROR;
    public static final int GIVE_ERROR = Constants.GIVE_ERROR;
    public static final int VALUE_ERROR = Constants.VALUE_ERROR;
    /** 失败 */
@@ -42,6 +43,10 @@
    {
        return restResult(null, TOKEN_ERROR, msg);
    }
    public static <T> R<T> giveError(String msg)
    {
        return restResult(null, GIVE_ERROR, msg);
    }
    public static <T> R<T> energyValueError(String msg)
    {
        return restResult(null, VALUE_ERROR, msg);