| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.Valid; |
| | | |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | |
| | | @ApiOperation(value = "分页物业宣传信息", response = ComPropertyPublicityVO.class) |
| | | @PostMapping("/page") |
| | | public R pageComPropertyPublicity(@RequestBody PageComPropertyPublicityDTO pageComPropertyPublicityDTO) { |
| | | public R pageComPropertyPublicity(@RequestBody @Valid PageComPropertyPublicityDTO pageComPropertyPublicityDTO) { |
| | | if (isNull(pageComPropertyPublicityDTO.getCommunityId())) { |
| | | return R.fail("社区id不能为空"); |
| | | } |
| | |
| | | @ApiImplicitParam(name = "id", value = "物业宣传id", required = true) |
| | | public R getComPropertyPublicity(@RequestParam("id") Long id) { |
| | | return communityService.getComPropertyPublicity(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "小区列表", response = ComMngVillageVO.class) |
| | | @GetMapping("/list/village") |
| | | @ApiImplicitParam(name = "communityId", value = "社区id", required = true) |
| | | public R listVillage(@RequestParam(value = "communityId") Long communityId) { |
| | | return communityService.listVillage(null, communityId); |
| | | } |
| | | |
| | | @ApiOperation(value = "增加物业宣传浏览量") |