| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.vos.community.integral.IntegralUserRankVO; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.integral.ComActIntegralCommunityRankDTO; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 小程序-查询用户积分列表 |
| | | * 小程序-积分统计 |
| | | * |
| | | * @param userId |
| | | * 用户id |
| | | * @return 用户积分列表 |
| | | */ |
| | | @PostMapping("/user/list/applets") |
| | | @GetMapping("/user/statistics") |
| | | public R getIntegralUserListApplets(@RequestParam("userId") Long userId, |
| | | @RequestParam("communityId") Long communityId) { |
| | | @RequestParam(value = "communityId", required = false) Long communityId) { |
| | | return comActIntegralUserService.getIntegralUserListApplets(userId, communityId); |
| | | } |
| | | |
| | | /** |
| | | * 查询我的积分余额 |
| | | * @param userId |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @GetMapping("/user/balance") |
| | | public R getUserIntegralBalance(@RequestParam("userId") Long userId, @RequestParam("communityId") Long communityId) { |
| | | return comActIntegralUserService.getUserIntegralBalance(userId, communityId); |
| | | } |
| | | |
| | | /** |
| | |
| | | return comActIntegralUserService.getTaskActivityPeopleList(activityId); |
| | | } |
| | | |
| | | /** |
| | | * 获取积分详情 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("/user/detail") |
| | | public R getUserIntegralDetail(@RequestParam("id") Long id) { |
| | | return comActIntegralUserService.getUserIntegralDetail(id); |
| | | } |
| | | |
| | | /** |
| | | * 小程序-查询用户在当前社区积分排名 |
| | | * |
| | | * @param userId |
| | | * 用户id |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 用户在当前社区积分排名 |
| | | */ |
| | | @GetMapping("/user/getIntegralUserRank") |
| | | public R getIntegralUserRank(@RequestParam("communityId") Long communityId, |
| | | @RequestParam("userId") Long userId) |
| | | { |
| | | return R.ok(comActIntegralUserService.getIntegralUserRank(communityId,userId)); |
| | | } |
| | | |
| | | |
| | | } |