From 48a703dec596b5d2c1b04b0b4f7ed0f28c1ca898 Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期一, 13 十一月 2023 18:00:50 +0800 Subject: [PATCH] 新增社区共建评论模块2 --- springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NewStriveAppApi.java | 125 +++++++++++++++++++++++++++++++++++++++-- 1 files changed, 119 insertions(+), 6 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NewStriveAppApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NewStriveAppApi.java index 9bbd29d..f91e79c 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NewStriveAppApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NewStriveAppApi.java @@ -64,6 +64,18 @@ return newStriveForFeign.getNeedProblemList(pageNum,pageSize,kind,userId,getCommunityId()+""); } + + @ApiOperation(value = "任务需求清单我认领的列表", response = NeedProblemInventoryDTO.class) + @GetMapping("/getMyJoinNeedProblemList") + public R getMyJoinNeedProblemList(@RequestParam("pageNum") int pageNum, + @RequestParam("pageSize") int pageSize, + @RequestParam(value = "kind", required = false)String kind) + { + return newStriveForFeign.getMyJoinNeedProblemList(pageNum,pageSize,kind,getUserId()+""); + } + + + @ApiOperation(value = "任务需求清单详情", response = NeedProblemInventoryDTO.class) @GetMapping("/NeedProblem/getDetails") public R getNeedProblemDetails(@RequestParam("id") String id) @@ -198,36 +210,37 @@ ****************************************************************************************************************/ @ApiOperation(value = "社区共建项目列表", response = NewFightCommunityConstructionDTO.class) - @GetMapping("/NewFightCommunity/getNeedClaimList") + @GetMapping("/getNewFightCommunityList") public R getNewFightCommunityList(@RequestParam("pageNum") int pageNum, @RequestParam("pageSize") int pageSize) { - return newStriveForFeign.getNewFightCommunityList(pageNum,pageSize); + return newStriveForFeign.getNewFightCommunityList(pageNum,pageSize, + getCommunityId()+"",getUserId()+""); } @ApiOperation(value = "社区共建项目删除", response = NewFightCommunityConstructionDTO.class) - @GetMapping("/getNeedClaimDetails") + @GetMapping("/getNewFightCommunityDetails") public R getNewFightCommunityDetails(@RequestParam("id") String id) { return newStriveForFeign.getNewFightCommunityDetails(id); } @ApiOperation(value = "社区共建项目添加") - @PostMapping("/addNeedClaimData") + @PostMapping("/addNewFightCommunityData") public R addNewFightCommunityData(@RequestBody NewFightCommunityConstructionDTO item) { return newStriveForFeign.addNewFightCommunityData(item); } @ApiOperation(value = "社区共建项目编辑") - @PostMapping("/editNeedClaimData") + @PostMapping("/editNewFightCommunityData") public R editNewFightCommunityData(@RequestBody NewFightCommunityConstructionDTO item) { return newStriveForFeign.editNewFightCommunityData(item); } @ApiOperation(value = "社区共建项目删除") - @DeleteMapping("/expurgateNeedClaimData") + @DeleteMapping("/expurgateNewFightCommunityData") public R expurgateNewFightCommunityData(@RequestParam("id") String id) { return newStriveForFeign.expurgateNewFightCommunityData(id); @@ -269,6 +282,19 @@ return newStriveForFeign.editProjectPlanData(item); } + + @ApiOperation(value = "项目规划确认完工") + @PostMapping("/editProjectPlanAccomplish") + public R editProjectPlanAccomplish(@RequestParam("id") String id) + { + NewFightProjectPlanDTO item =new NewFightProjectPlanDTO(); + item.setId(id); + item.setAffirmTime(new Date()); + item.setAccomplish("1"); + return newStriveForFeign.editProjectPlanData(item); + } + + @ApiOperation(value = "项目规划删除") @DeleteMapping("/expurgateProjectPlanData") public R expurgateProjectPlanData(@RequestParam("id") String id) @@ -277,5 +303,92 @@ } + /******************************************************************************************************** + * + * 项目参与 + * + ******************************************************************************************************/ + + @ApiOperation(value = "项目参与人员列表", response = NewFightProjectJoinDTO.class) + @GetMapping("/getJoinList") + public R getJoinList(@RequestParam("pageNum") int pageNum, + @RequestParam("pageSize") int pageSize, + @RequestParam("projectId") String projectId) + { + return newStriveForFeign.getJoinList(pageNum,pageSize,projectId); + } + + @ApiOperation(value = "项目参与人员详情", response = NewFightProjectJoinDTO.class) + @GetMapping("/getJoinDetails") + public R getJoinDetails(@RequestParam("id") String id) + { + return newStriveForFeign.getJoinDetails(id); + } + + @ApiOperation(value = "项目参与人员报名") + @PostMapping("/addJoinData") + public R addJoinData(@RequestBody NewFightProjectJoinDTO item) + { + return newStriveForFeign.addJoinData(item); + } + + @ApiOperation(value = "项目参与人员修改") + @PostMapping("/editJoinData") + public R editJoinData(@RequestBody NewFightProjectJoinDTO item) + { + return newStriveForFeign.editJoinData(item); + } + + @ApiOperation(value = "项目参与人员取消报名") + @DeleteMapping("/expurgateJoinData") + public R expurgateJoinData(@RequestParam("id") String id) + { + return newStriveForFeign.expurgateJoinData(id); + } + + + /******************************************************************************************************** + * + * 项目评论 + * + ******************************************************************************************************/ + + @ApiOperation(value = "项目评论列表", response = NewFightProjectEvaluateDTO.class) + @GetMapping("/getEvaluateList") + public R getEvaluateList(@RequestParam("pageNum") int pageNum, + @RequestParam("pageSize") int pageSize, + @RequestParam("projectId") String projectId) + { + return newStriveForFeign.getEvaluateList(pageNum,pageSize,projectId); + } + + @ApiOperation(value = "项目评论详情", response = NewFightProjectEvaluateDTO.class) + @GetMapping("/getEvaluateDetails") + public R getEvaluateDetails(@RequestParam("id") String id) + { + return newStriveForFeign.getEvaluateDetails(id); + } + + @ApiOperation(value = "项目评论新增") + @PostMapping("/addEvaluateData") + public R addEvaluateData(@RequestBody NewFightProjectEvaluateDTO item) + { + return newStriveForFeign.addEvaluateData(item); + } + + @ApiOperation(value = "项目评论编辑") + @PostMapping("/editEvaluateData") + public R editEvaluateData(@RequestBody NewFightProjectEvaluateDTO item) + { + return newStriveForFeign.editEvaluateData(item); + } + + @ApiOperation(value = "项目评论删除") + @DeleteMapping("/expurgateEvaluateData") + public R expurgateEvaluateData(@RequestParam("id") String id) + { + return newStriveForFeign.expurgateEvaluateData(id); + } + } -- Gitblit v1.7.1