| | |
| | | public R getCommunityLists(){ |
| | | return comActService.getCommunityLists(); |
| | | } |
| | | |
| | | /** |
| | | * 随手拍发放奖励 |
| | | * @param grantRewardDTO 请求参数 |
| | | * @return 发放结果 |
| | | */ |
| | | @PostMapping("/easyphoto/grantReward") |
| | | public R grantReward(@RequestBody GrantRewardDTO grantRewardDTO) { |
| | | return comActEasyPhotoService.grantReward(grantRewardDTO); |
| | | } |
| | | |
| | | /** |
| | | * 获取最新活动和用户最新收益 |
| | | * @param userId 用户id |
| | | * @param communityId 社区id |
| | | * @return 最新活动和用户最新收益 |
| | | */ |
| | | @PostMapping("easyphoto/getUserReward") |
| | | public R getUserReward(@RequestParam("userId") Long userId,@RequestParam("communityId") Long communityId) { |
| | | return comActEasyPhotoService.getUserReward(userId,communityId); |
| | | } |
| | | |
| | | /** |
| | | * 读取用户随手拍奖励 |
| | | * @param userId 用户id |
| | | * @return 读取结果 |
| | | */ |
| | | @PostMapping("easyphoto/readUserReward") |
| | | public R readUserReward(@RequestParam("userId") Long userId,@RequestParam("communityId") Long communityId) { |
| | | return comActEasyPhotoService.readUserReward(userId,communityId); |
| | | } |
| | | } |