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 getXpStationById(@PathVariable("id") Long id){ XpStation xpStation = xpStationService.getById(id); return R.ok(xpStation); } }