From bfdc738a7d11d7a132747c52fe51f6887405fae4 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 04 七月 2024 16:29:21 +0800
Subject: [PATCH] 代码提交
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/HeLibraryController.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/HeLibraryController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/HeLibraryController.java
index 3758096..efedc9a 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/HeLibraryController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/HeLibraryController.java
@@ -69,7 +69,7 @@
* 鑾峰彇瀹f暀璧勬枡搴撹缁嗕俊鎭�
*/
@PreAuthorize("@ss.hasPermi('system:library:query')")
- @GetMapping(value = "/{id}")
+ @GetMapping(value = "/getInfo/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(heLibraryService.selectHeLibraryById(id));
}
@@ -79,7 +79,7 @@
*/
@PreAuthorize("@ss.hasPermi('system:library:add')")
@Log(title = "瀹f暀璧勬枡搴�", businessType = BusinessType.INSERT)
- @PostMapping
+ @PostMapping("/add")
public AjaxResult add(@RequestBody HeLibrary heLibrary) {
return toAjax(heLibraryService.insertHeLibrary(heLibrary));
}
@@ -89,7 +89,7 @@
*/
@PreAuthorize("@ss.hasPermi('system:library:edit')")
@Log(title = "瀹f暀璧勬枡搴�", businessType = BusinessType.UPDATE)
- @PutMapping
+ @PostMapping("/edit")
public AjaxResult edit(@RequestBody HeLibrary heLibrary) {
return toAjax(heLibraryService.updateHeLibrary(heLibrary));
}
@@ -110,8 +110,8 @@
*/
@ApiOperation("鏂板鎴栦慨鏀瑰鏁欒鎯�")
@PreAuthorize("@ss.hasPermi('system:script:list')")
- @PostMapping("/saveOrUpdateScript")
- public AjaxResult saveOrUpdateScript(@RequestBody HeLibraryVO heLibraryVO) {
+ @PostMapping("/saveOrUpdateHeLibrary")
+ public AjaxResult saveOrUpdateHeLibrary(@RequestBody HeLibraryVO heLibraryVO) {
if (ObjectUtils.isEmpty(heLibraryVO)) {
throw new BaseException("鍏ュ弬涓虹┖锛岃妫�鏌ュ叆鍙�");
}
--
Gitblit v1.9.3