From 1fc5c5b72db71c8c36c7d64950e2795cc8a5b3ac Mon Sep 17 00:00:00 2001 From: whycxzp <perryhsu@163.com> Date: 星期三, 17 三月 2021 08:57:49 +0800 Subject: [PATCH] 更新 --- src/main/java/com/whyc/controller/ApplicationController.java | 20 +++++++++----------- 1 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/whyc/controller/ApplicationController.java b/src/main/java/com/whyc/controller/ApplicationController.java index 9efb1cf..d3d4a84 100644 --- a/src/main/java/com/whyc/controller/ApplicationController.java +++ b/src/main/java/com/whyc/controller/ApplicationController.java @@ -24,31 +24,29 @@ @Autowired private ApplicationService service; - /*======搴旂敤绠$悊,admin鎵嶆湁鏉冮檺鏇存敼======*/ + /*======搴旂敤绠$悊======*/ @PostMapping @ApiOperation(value = "搴旂敤-鍒涘缓") - public Response create(@RequestBody ApplicationDTO app){ + public Response create(@RequestBody Application app){ return service.insert(app); } @GetMapping("all") @ApiOperation(value = "搴旂敤-鏌ヨ鎵�鏈�") - public Response getAll(){ - return service.getAll(); + public Response getAll(@RequestParam Integer userId){ + return service.getAll(userId); } - /**TODO:闇�瑕佹坊鍔犳搷浣滄棩蹇�*/ @PutMapping @ApiOperation(value = "搴旂敤-鏇存柊鍚嶇О") - public Response update(@RequestBody ApplicationDTO app){ + public Response update(@RequestBody Application app){ return service.update(app); } - /**TODO:闇�瑕佹坊鍔犳搷浣滄棩蹇�*/ @DeleteMapping @ApiOperation(value = "搴旂敤-鍒犻櫎") - public Response delete(@RequestBody ApplicationDTO app){ - return service.delete(app); + public Response delete(@RequestParam Integer appId){ + return service.delete(appId); } /*======搴旂敤閰嶇疆======*/ @@ -61,7 +59,7 @@ @GetMapping("allConfig") @ApiOperation(value = "閰嶇疆-鏌ヨ褰撳墠搴旂敤鐨勯厤缃�") - public Response getAllConfig(@RequestParam int appId,@RequestParam int userId){ - return service.getAllConfig(appId,userId); + public Response getAllConfig(@RequestParam Integer appId){ + return service.getAllConfig(appId); } } -- Gitblit v1.9.1