lidongdong
2023-12-13 6aeed3a91b3bca658fc8dbb0f8642712e484d77d
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActIntegralUserApi.java
@@ -2,6 +2,7 @@
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;
@@ -174,4 +175,21 @@
        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));
    }
}