Parcourir la source

推送相关接口修改

wukai il y a 5 jours
Parent
commit
4f5956080d

+ 4 - 4
jjt-biz/src/main/java/com/jjt/push/controller/PushConfigController.java

@@ -86,8 +86,8 @@ public class PushConfigController extends BaseController {
      */
     @ApiOperation("获取推送配置详细信息")
     //@PreAuthorize("@ss.hasPermi('push:pushConfig:query')")
-    @GetMapping(value = "/{pcId}")
-    public AjaxResult getInfo(@PathVariable("pcId") Long pcId) {
+    @GetMapping(value = "/detail")
+    public AjaxResult getInfo(Long pcId) {
         return success(pushConfigService.selectPushConfigByPcId(pcId));
     }
 
@@ -124,8 +124,8 @@ public class PushConfigController extends BaseController {
     @ApiOperation("删除推送配置")
     //@PreAuthorize("@ss.hasPermi('push:pushConfig:remove')")
     @Log(title = "推送配置", businessType = BusinessType.DELETE)
-    @GetMapping("/del/{pcIds}")
-    public AjaxResult remove(@PathVariable Long[] pcIds) {
+    @GetMapping("/del")
+    public AjaxResult remove(Long[] pcIds) {
         return toAjax(pushConfigService.deletePushConfigByPcIds(pcIds));
     }
 }

+ 2 - 2
jjt-biz/src/main/java/com/jjt/push/controller/PushRecordController.java

@@ -93,8 +93,8 @@ public class PushRecordController extends BaseController {
     @ApiOperation("删除推送记录")
     //@PreAuthorize("@ss.hasPermi('push:pushRecord:remove')")
     @Log(title = "推送记录", businessType = BusinessType.DELETE)
-    @GetMapping("/del/{prIds}")
-    public AjaxResult remove(@PathVariable Long[] prIds) {
+    @GetMapping("/del")
+    public AjaxResult remove(Long[] prIds) {
         return toAjax(pushRecordService.deletePushRecordByPrIds(prIds));
     }
 }