mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.panzhihua.service_dangjian.api;
 
 
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_dangjian.service.NewStriveForService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
 
@Slf4j
@RestController
@RequestMapping("/NewStriveFor")
public class NewStriveForApi
{
    @Resource
    private NewStriveForService forService;
 
    @GetMapping("/getUserRank")
    public R getUserRank(@RequestParam("userId") String userId)
    {
        return R.ok(forService.getUserRank(userId));
    }
 
    @GetMapping("/getUserRankList")
    public R getUserRankList(@RequestParam("pageNum") int pageNum,
                             @RequestParam("pageSize") int pageSize,
                             @RequestParam("userId") String userId)
    {
        return R.ok(forService.getUserRankList(pageNum,pageSize,userId));
    }
 
 
    @GetMapping("/getAllintegral")
    public R getAllintegral(@RequestParam("type") String type,
                            @RequestParam("userId") String userId)
    {
        return R.ok(forService.getAllintegral(type, userId));
    }
 
 
 
}