From 571342313f761a778a160dc0209fac060661fae2 Mon Sep 17 00:00:00 2001 From: qi Date: Mon, 13 Apr 2020 11:56:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8E=A5=E5=8F=A3=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=A0=81=E6=9E=9A=E4=B8=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/lq/cms/emun/AjaxResultEnum.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/main/java/com/lq/cms/emun/AjaxResultEnum.java diff --git a/src/main/java/com/lq/cms/emun/AjaxResultEnum.java b/src/main/java/com/lq/cms/emun/AjaxResultEnum.java new file mode 100644 index 0000000..db29edf --- /dev/null +++ b/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; + +}