diff --git a/backend-mock/index.js b/backend-mock/index.js index 90afb33..cc44448 100644 --- a/backend-mock/index.js +++ b/backend-mock/index.js @@ -43,7 +43,7 @@ server.on("request", async (req, res) => { // msg: "用户名或密码不正确", // data: null }; - } else if (req.url.startsWith('/access/getCodeInfo')) { + } else if (req.url.startsWith('/access/code/getCodeInfo')) { result = { success: true, msg: "成功", diff --git a/backend/microservice-provider-access-8002/src/main/java/com/cxyxiaomo/epp/access/controller/CodeController.java b/backend/microservice-provider-access-8002/src/main/java/com/cxyxiaomo/epp/access/controller/CodeController.java index bee214a..793f1c8 100644 --- a/backend/microservice-provider-access-8002/src/main/java/com/cxyxiaomo/epp/access/controller/CodeController.java +++ b/backend/microservice-provider-access-8002/src/main/java/com/cxyxiaomo/epp/access/controller/CodeController.java @@ -14,7 +14,7 @@ import java.util.HashMap; import java.util.Map; @Controller -@RequestMapping("/access") +@RequestMapping("/access/code") public class CodeController { @Autowired diff --git a/backend/microservice-provider-access-8002/src/main/java/com/cxyxiaomo/epp/access/service/AccessService.java b/backend/microservice-provider-access-8002/src/main/java/com/cxyxiaomo/epp/access/service/AccessService.java index 0324d9a..255d4ff 100644 --- a/backend/microservice-provider-access-8002/src/main/java/com/cxyxiaomo/epp/access/service/AccessService.java +++ b/backend/microservice-provider-access-8002/src/main/java/com/cxyxiaomo/epp/access/service/AccessService.java @@ -1,7 +1,5 @@ package com.cxyxiaomo.epp.access.service; -import com.cxyxiaomo.epp.common.pojo.User; - public interface AccessService { } diff --git a/miniprogram/src/pages/residents/code.vue b/miniprogram/src/pages/residents/code.vue index 92c2ce8..bf3d4fe 100644 --- a/miniprogram/src/pages/residents/code.vue +++ b/miniprogram/src/pages/residents/code.vue @@ -67,7 +67,7 @@ export default { Taro.showLoading({ title: '加载中' }) var that = this; Taro.request({ - url: `${this.baseUrl}/access/getCodeInfo`, + url: `${this.baseUrl}/access/code/getCodeInfo`, method: "POST", header: { "Content-Type": "application/x-www-form-urlencoded" //用于post diff --git a/postman-collection/epp.postman_collection.json b/postman-collection/epp.postman_collection.json index 04221eb..eba7644 100644 --- a/postman-collection/epp.postman_collection.json +++ b/postman-collection/epp.postman_collection.json @@ -41,7 +41,7 @@ "method": "POST", "header": [], "url": { - "raw": "http://localhost:8002/access/getCodeInfo?id=1", + "raw": "http://localhost:8002/access/code/getCodeInfo?id=1", "protocol": "http", "host": [ "localhost" @@ -49,6 +49,7 @@ "port": "8002", "path": [ "access", + "code", "getCodeInfo" ], "query": [ @@ -67,7 +68,7 @@ "method": "POST", "header": [], "url": { - "raw": "http://epp.only4.work/access/getCodeInfo?id=1", + "raw": "http://epp.only4.work/access/code/getCodeInfo?id=1", "protocol": "http", "host": [ "epp", @@ -76,6 +77,7 @@ ], "path": [ "access", + "code", "getCodeInfo" ], "query": [