无关风月
2026-02-13 e4e8a1a96de8dc5efb965bea8e98581e2b41ac82
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
47
48
49
50
51
52
package com.xiaopeng.operation.controller;
 
import com.xiaopeng.api.model.operation.XpPoint;
import com.xiaopeng.api.vo.account.LoginOperationUser;
import com.xiaopeng.common.core.domain.R;
import com.xiaopeng.common.redis.service.RedisService;
import com.xiaopeng.common.security.service.TokenService;
import com.xiaopeng.api.dto.operation.PointMapQuery;
import com.xiaopeng.operation.service.XpPointService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import javax.annotation.Resource;
import java.util.List;
 
/**
 * token 控制
 *
 * @author ruoyi
 */
@Slf4j
@RestController
public class IndexMapController {
    @Autowired
    private TokenService tokenService;
 
 
    @Resource
    private XpPointService xpPointService;
 
 
 
    @PostMapping("/api/v1/pointMap")
    public R<List<XpPoint>> pointMap(@RequestBody PointMapQuery query) {
        LoginOperationUser loginOperationUser = tokenService.getLoginOperationUser();
        query.setOperationId(loginOperationUser.getId());
        List<XpPoint> pageInfo= xpPointService.pointMap(query);
        return R.ok(pageInfo);
    }
    @GetMapping("/api/v1/pointDetail")
    public R<XpPoint> pointDetail(@RequestParam(value = "点位id", required = true)Long id) {
        XpPoint xpPoint = xpPointService.getById(id);
        return R.ok(xpPoint);
    }
 
 
 
 
}