| | |
| | | import com.panzhihua.common.model.dtos.partybuilding.PageComPbServiceTeamDTO; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComActMessageVO; |
| | | import com.panzhihua.common.model.vos.community.ResetComActMessageVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.*; |
| | | import com.panzhihua.common.model.vos.user.RoleVO; |
| | | import com.panzhihua.common.model.vos.user.SysUserNoticeVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.service.partybuilding.PartyBuildingService; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.common.utlis.SFTPUtil; |
| | |
| | | public class CommunityPartyBuildingApi extends BaseController { |
| | | @Resource |
| | | private PartyBuildingService partyBuildingService; |
| | | @Resource |
| | | private CommunityService communityService; |
| | | @Resource |
| | | private UserService userService; |
| | | @Value("${excel.url}") |
| | |
| | | pageComPbServiceTeamDTO.setCommunityId(this.getCommunityId()); |
| | | return partyBuildingService.pageServiceTeam(pageComPbServiceTeamDTO); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "回复-删除") |
| | | @DeleteMapping("deletemessage") |
| | | public R deleteMessage(@RequestBody ComActMessageVO comActMessageVO) { |
| | | return communityService.deleteMessage(comActMessageVO); |
| | | } |
| | | @ApiOperation(value = "批量设置留言(公开1,保密2)") |
| | | @DeleteMapping("resetmessagepublic") |
| | | public R resetMessagePublic(@RequestBody ResetComActMessageVO resetComActMessageVO) { |
| | | return communityService.resetMessagePublic(resetComActMessageVO); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页显示社区所有的留言",response = ComActMessageVO.class) |
| | | @PostMapping("pagemycommunitymessage") |
| | | public R pageMyCommunityMessage (@RequestBody ComActMessageVO comActMessageVO){ |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | Long communityId = loginUserInfo.getCommunityId(); |
| | | if (null==communityId||0==communityId) { |
| | | return R.fail("用户未绑定社区"); |
| | | } |
| | | comActMessageVO.setCommunityId(communityId); |
| | | comActMessageVO.setUserId(loginUserInfo.getUserId()); |
| | | return communityService.pageMyCommunityMessage(comActMessageVO); |
| | | } |
| | | } |