Commit abb88d62 authored by RuoYi's avatar RuoYi

调整响应成功状态码与全局保持一致

parent 1ccdd750
package com.ruoyi.common.core.domain;
import java.io.Serializable;
import com.ruoyi.common.constant.HttpStatus;
/**
* 响应信息主体
......@@ -12,10 +13,10 @@ public class R<T> implements Serializable
private static final long serialVersionUID = 1L;
/** 成功 */
public static final int SUCCESS = 200;
public static final int SUCCESS = HttpStatus.SUCCESS;
/** 失败 */
public static final int FAIL = 500;
public static final int FAIL = HttpStatus.ERROR;
private int code;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment