From 4a0a9b64714f628291ae3332f6be1317dc45400d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=98=B1=E6=B6=B5?= Date: Sat, 8 Feb 2025 11:33:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=9A=E5=8A=A1=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test/controller/TestApiController.java | 6 ------ .../resources/mapper/test/TestApiMapper.xml | 2 +- test-ui/src/views/test/api/index.vue | 19 +++++++++++-------- 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/test-test/src/main/java/com/test/test/controller/TestApiController.java b/test-test/src/main/java/com/test/test/controller/TestApiController.java index babddd7..11f7d58 100644 --- a/test-test/src/main/java/com/test/test/controller/TestApiController.java +++ b/test-test/src/main/java/com/test/test/controller/TestApiController.java @@ -37,7 +37,6 @@ public class TestApiController extends BaseController { /** * 查询接口列表 */ - @PreAuthorize("@ss.hasPermi('test:api:list')") @GetMapping("/list") public TableDataInfo list(TestApi testApi) { startPage(); @@ -48,7 +47,6 @@ public class TestApiController extends BaseController { /** * 导出接口列表 */ - @PreAuthorize("@ss.hasPermi('test:api:export')") @Log(title = "接口", businessType = BusinessType.EXPORT) @PostMapping("/export") public void export(HttpServletResponse response, TestApi testApi) { @@ -60,7 +58,6 @@ public class TestApiController extends BaseController { /** * 获取接口详细信息 */ - @PreAuthorize("@ss.hasPermi('test:api:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { return success(testApiService.selectTestApiById(id)); @@ -69,7 +66,6 @@ public class TestApiController extends BaseController { /** * 新增接口 */ - @PreAuthorize("@ss.hasPermi('test:api:add')") @Log(title = "接口", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody TestApi testApi) { @@ -79,7 +75,6 @@ public class TestApiController extends BaseController { /** * 修改接口 */ - @PreAuthorize("@ss.hasPermi('test:api:edit')") @Log(title = "接口", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody TestApi testApi) { @@ -89,7 +84,6 @@ public class TestApiController extends BaseController { /** * 删除接口 */ - @PreAuthorize("@ss.hasPermi('test:api:remove')") @Log(title = "接口", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) { diff --git a/test-test/src/main/resources/mapper/test/TestApiMapper.xml b/test-test/src/main/resources/mapper/test/TestApiMapper.xml index 4bd8537..89c9a85 100644 --- a/test-test/src/main/resources/mapper/test/TestApiMapper.xml +++ b/test-test/src/main/resources/mapper/test/TestApiMapper.xml @@ -40,7 +40,7 @@ and name like concat('%', #{name}, '%') and method = #{method} - and uri = #{uri} + and uri = like concat('%', #{uri}, '%') and header = #{header} and param = #{param} and body = #{body} diff --git a/test-ui/src/views/test/api/index.vue b/test-ui/src/views/test/api/index.vue index dc19dd1..a9aeaa2 100644 --- a/test-ui/src/views/test/api/index.vue +++ b/test-ui/src/views/test/api/index.vue @@ -9,13 +9,15 @@ @keyup.enter.native="handleQuery" /> - - + + + + - +