xuhy
2026-04-15 b68e39fbd1ce7038e02e9d1d3f4736446bc3d76e
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
package com.xiaopeng.map.controller;
 
 
import com.xiaopeng.api.model.operation.XpStation;
import com.xiaopeng.common.core.domain.R;
import com.xiaopeng.map.service.XpStationService;
import org.springframework.web.bind.annotation.*;
 
import javax.annotation.Resource;
 
/**
 * 场站
 */
@RestController
@RequestMapping
public class XpStationController {
 
    @Resource
    private XpStationService xpStationService;
 
 
    /**
     * 根据id获取数据
     * @param id
     * @return
     */
    @GetMapping("/logan/inner/v1/xpStation/getXpStationById")
    public R<XpStation> getXpStationById(@PathVariable("id") Long id){
        XpStation xpStation = xpStationService.getById(id);
        return R.ok(xpStation);
    }
 
}