Ver código fonte

改变项目类型附件删除方法的请求方式

lizhenhao 2 anos atrás
pai
commit
9eaf352969

+ 2 - 2
jeeplus-module/jeeplus-test/src/main/java/com/jeeplus/test/program/configuration/projectDict/controller/ProjectDictController.java

@@ -44,8 +44,8 @@ public class ProjectDictController {
      * 新增
      */
     @ApiOperation(value = "删除")
-    @PostMapping(value = "/deleteById")
-    public ResponseEntity<String> deleteById(@RequestParam String id){
+    @DeleteMapping(value = "/deleteById")
+    public ResponseEntity<String> deleteById(String id){
         String deleteById = projectDictService.deleteById(id);
         return ResponseEntity.ok(deleteById);
     }