Sfoglia il codice sorgente

参数和日志接口修改

wukai 5 giorni fa
parent
commit
7fd6eccc2e

+ 2 - 2
jjt-admin/src/main/java/com/jjt/web/controller/system/SysConfigController.java

@@ -51,8 +51,8 @@ public class SysConfigController extends BaseController {
      * 根据参数编号获取详细信息
      */
     //@PreAuthorize("@ss.hasPermi('system:config:query')")
-    @GetMapping(value = "/{configId}")
-    public AjaxResult getInfo(@PathVariable Long configId) {
+    @GetMapping(value = "/detail")
+    public AjaxResult getInfo(Long configId) {
         return success(configService.selectConfigById(configId));
     }
 

+ 4 - 4
jjt-quartz/src/main/java/com/jjt/quartz/controller/SysJobController.java

@@ -59,8 +59,8 @@ public class SysJobController extends BaseController {
      * 获取定时任务详细信息
      */
     //@PreAuthorize("@ss.hasPermi('monitor:job:query')")
-    @GetMapping(value = "/{jobId}")
-    public AjaxResult getInfo(@PathVariable("jobId") Long jobId) {
+    @GetMapping(value = "/detail")
+    public AjaxResult getInfo(Long jobId) {
         return success(jobService.selectJobById(jobId));
     }
 
@@ -140,8 +140,8 @@ public class SysJobController extends BaseController {
      */
     //@PreAuthorize("@ss.hasPermi('monitor:job:remove')")
     @Log(title = "定时任务", businessType = BusinessType.DELETE)
-    @GetMapping("/del/{jobIds}")
-    public AjaxResult remove(@PathVariable Long[] jobIds) throws SchedulerException, TaskException {
+    @GetMapping("/del")
+    public AjaxResult remove(Long[] jobIds) throws SchedulerException, TaskException {
         jobService.deleteJobByIds(jobIds);
         return success();
     }