| | |
| | | public R pageEasyPhoto(@RequestBody ComActEasyPhotoVO comActEasyPhotoVO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfoSureNoLogin(); |
| | | if (loginUserInfo != null) { |
| | | comActEasyPhotoVO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | // comActEasyPhotoVO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | comActEasyPhotoVO.setLogInUserId(loginUserInfo.getUserId()); |
| | | comActEasyPhotoVO.setIsDpcMember(loginUserInfo.getIsDpcMember()); |
| | | } |
| | |
| | | } |
| | | return communityService.detailEasyPhoto(id, userId); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 随手拍删除 |
| | | * |
| | | * @param id |
| | | * 随手拍主键 |
| | | * 登录用户id |
| | | * @return 详情内容 |
| | | */ |
| | | @ApiOperation(value = "删除随手拍", response = ComActEasyPhotoVO.class) |
| | | @DeleteMapping("easyphoto/{id}") |
| | | public R deleteEasyPhoto(@PathVariable("id") Long id) { |
| | | Long userId = this.getUserId(); |
| | | return communityService.deleteEasyPhoto(id, userId); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation(value = "随手拍详情-脱敏", response = ComActEasyPhotoVO.class) |
| | | @GetMapping("detailEasyPhotoDesensitize") |
| | | @ApiImplicitParam(name = "id", value = "随手拍主键") |
| | |
| | | @PostMapping("pagemicrowish") |
| | | public R pageMicroWish(@RequestBody ComActMicroWishVO comActMicroWishVO) |
| | | { |
| | | if(StringUtils.isEmpty(comActMicroWishVO.getHandleId())) |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfoSureNoLogin(); |
| | | if (loginUserInfo != null) { |
| | | comActMicroWishVO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | comActMicroWishVO.setResponsibleId(loginUserInfo.getUserId());// 责任人暂时放登录用户id |
| | | } |
| | | |
| | | if(!StringUtils.isEmpty(comActMicroWishVO.getHandleId())) |
| | | { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfoSureNoLogin(); |
| | | if (loginUserInfo != null) { |
| | | comActMicroWishVO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | comActMicroWishVO.setResponsibleId(loginUserInfo.getUserId());// 责任人暂时放登录用户id |
| | | } |
| | | comActMicroWishVO.setCommunityId(null); |
| | | } |
| | | comActMicroWishVO.setIsApplets(1); |
| | | comActMicroWishVO.setIsPageMyWish(null); |
| | |
| | | return communityService.detailMicroWish(id, userId); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "删除心愿") |
| | | @PostMapping("deletemicrowish") |
| | | public R deleteMicrowish(@RequestParam("id") Long id) { |
| | | return communityService.deletemicrowish(id); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "心愿详情-脱敏", response = ComActMicroWishVO.class) |
| | | @GetMapping("microwishDesensitize") |
| | | @ApiImplicitParam(name = "id", value = "微心愿主键") |