diff --git a/pom.xml b/pom.xml
index 907d0e76ad27687fd061f19c1c6239a4cf4afd75..60de534f7e851b677bd42e491143343ec344306d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,6 +24,10 @@
UTF-8
+
+ springcloud-service-goods
+
+
@@ -36,4 +40,7 @@
+
+ pom
+
\ No newline at end of file
diff --git a/springcloud-service-goods/pom.xml b/springcloud-service-goods/pom.xml
index cc32e19c7588ceba7c312fae162f12fe50fe8ec4..2a20a39b806340be2429081babfecf50e7c93294 100644
--- a/springcloud-service-goods/pom.xml
+++ b/springcloud-service-goods/pom.xml
@@ -38,7 +38,7 @@
com.baomidou
mybatis-plus-extension
- 3.5.1
+ 3.5.2
diff --git a/springcloud-service-goods/src/main/java/com/kwan/springcloud/CommonConstant.java b/springcloud-service-goods/src/main/java/com/kwan/springcloud/CommonConstant.java
new file mode 100644
index 0000000000000000000000000000000000000000..f4ceb315c764f45cc16fc4595b7ba1c8c2d7feed
--- /dev/null
+++ b/springcloud-service-goods/src/main/java/com/kwan/springcloud/CommonConstant.java
@@ -0,0 +1,16 @@
+package com.kwan.springcloud;
+
+public class CommonConstant {
+ /**
+ * 成功
+ */
+ public static final Integer SC_OK_200 = 200;
+ /**
+ * 服务器错误
+ */
+ public static final Integer SC_INTERNAL_SERVER_ERROR_500 = 500;
+ /**
+ * 未认证
+ */
+ public static final int SC_JEECG_NO_AUTHZ = 401;
+}
\ No newline at end of file
diff --git a/springcloud-service-goods/src/main/java/com/kwan/springcloud/Result.java b/springcloud-service-goods/src/main/java/com/kwan/springcloud/Result.java
new file mode 100644
index 0000000000000000000000000000000000000000..fe971cc72ec80487267be8cf50275b1d3510e3ad
--- /dev/null
+++ b/springcloud-service-goods/src/main/java/com/kwan/springcloud/Result.java
@@ -0,0 +1,118 @@
+package com.kwan.springcloud;
+
+import java.io.Serializable;
+
+import lombok.Data;
+
+/**
+ * 接口返回数据格式
+ *
+ * @author : qinyingjie
+ * @version : 2.2.0
+ * @date : 2023/1/8 10:48
+ */
+@Data
+public class Result implements Serializable {
+ private static final long serialVersionUID = 1L;
+ /**
+ * 成功标志
+ */
+ private boolean success = true;
+ /**
+ * 返回处理消息
+ */
+ private String message = "操作成功!";
+ /**
+ * 返回代码
+ */
+ private Integer code = 0;
+ /**
+ * 返回数据对象 data
+ */
+ private T result;
+ /**
+ * 时间戳
+ */
+ private long timestamp = System.currentTimeMillis();
+
+ public Result() {
+ }
+
+ public Result success(String message) {
+ this.message = message;
+ this.code = CommonConstant.SC_OK_200;
+ this.success = true;
+ return this;
+ }
+
+ public Result good(T t) {
+ this.setResult(t);
+ this.code = CommonConstant.SC_OK_200;
+ this.success = true;
+ return this;
+ }
+
+ public Result good() {
+ this.code = CommonConstant.SC_OK_200;
+ this.success = true;
+ this.setMessage("成功");
+ return this;
+ }
+
+ public Result fail(String msg) {
+ this.setCode(CommonConstant.SC_INTERNAL_SERVER_ERROR_500);
+ this.setMessage(msg);
+ this.setSuccess(false);
+ return this;
+ }
+
+ public static Result