Commit 1b287c2a by chenxi

实现功能:修改读取实时监测数据接口接收参数注解

1 parent 1cf119b6
......@@ -15,6 +15,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
......@@ -31,7 +32,7 @@ public class GetDataController extends BaseController {
@Operation(summary = "读取实时监测数据", description = "读取实时监测数据")
@GetMapping("/get")
public R<Boolean> getRealTimeData(@PathVariable("pileId") String pileId, @PathVariable("gunNumber") String gunNumber) {
public R<Boolean> getRealTimeData(@RequestParam String pileId, @RequestParam String gunNumber) {
log.info("读取实时监测数据,充电桩编号:{}", pileId);
log.info("读取实时监测数据,枪号:{}", gunNumber);
RealTimeReq req = new RealTimeReq();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!