package com.xiaopeng.automaticPilot.controller;
|
|
|
import com.xiaopeng.automaticPilot.util.XPUUtil;
|
import com.xiaopeng.common.core.domain.R;
|
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;
|
|
@RestController
|
@RequestMapping("")
|
public class XpuVinController {
|
|
@Resource
|
private XPUUtil xpuUtil;
|
|
|
/**
|
* 根据车辆VIN查询XPUID
|
* @param vin
|
* @return
|
*/
|
@GetMapping("/xpu/getXpuIdByVin")
|
public R<String> getXpuIdByVin(@RequestParam("vin") String vin){
|
String xpuId = xpuUtil.getXpuIdByVin(vin);
|
return R.ok(xpuId);
|
}
|
}
|