| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.dtos.common.EvaluateEasyDto; |
| | | import com.panzhihua.common.model.vos.community.easyPhoto.BannerVO; |
| | | import com.panzhihua.common.service.community.ComActEasyPhotoEvaluateFeign; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | private UserService userService; |
| | | @Resource |
| | | private CheckService checkService; |
| | | @Resource |
| | | private ComActEasyPhotoEvaluateFeign easyPhotoEvaluateFeign; |
| | | |
| | | @ApiOperation(value = "分页展示社区随手拍", response = ComActEasyPhotoVO.class) |
| | | @PostMapping("pageeasyphoto") |
| | |
| | | public R easyPhotoClassifyList() { |
| | | return communityService.listPhotoClassify(this.getAreaCode()); |
| | | } |
| | | |
| | | @ApiOperation(value = "随手拍评价") |
| | | @PostMapping("easyphoto/whistle/evaluate") |
| | | public R evaluateEasyPhotoWhistle(@RequestBody EvaluateEasyDto whistleDto) { |
| | | whistleDto.setUserId(this.getUserId()); |
| | | return easyPhotoEvaluateFeign.evaluateEasyApplets(whistleDto); |
| | | } |
| | | } |