新增接口状态码枚举

master
星期八 5 years ago
parent a245cf9ea6
commit 571342313f
  1. 28
      src/main/java/com/lq/cms/emun/AjaxResultEnum.java

@ -0,0 +1,28 @@
package com.lq.cms.emun;
/**
* @author qi
* 结果返回结果枚举
**/
public enum AjaxResultEnum {
SUCCESS(200,"操作成功!"),
WARN(400,"参数不合法!"),
ERROR(500,"系统异常!")
;
AjaxResultEnum(int code, String msg) {
this.code = code;
this.msg = msg;
}
/**
* 接口状态
*/
private int code;
/**
* 提示信息
*/
private String msg;
}
Loading…
Cancel
Save