opt:1.更新后台管理首页看板功能
This commit is contained in:
@@ -27,6 +27,6 @@ public class MapInfoController {
|
||||
@PostMapping("/syncCurrentMapData")
|
||||
@Log("同步当前地图最新数据")
|
||||
public ResponseEntity<Object> syncCurrentMapData() {
|
||||
return new ResponseEntity<>(null,HttpStatus.OK);
|
||||
return new ResponseEntity<>(mapService.syncCurrentMapData(),HttpStatus.OK);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,5 +7,16 @@ import org.nl.response.WebResponse;
|
||||
* 2025/12/18
|
||||
*/
|
||||
public interface MapService {
|
||||
/**
|
||||
* 获取当前地图信息
|
||||
* @return
|
||||
*/
|
||||
WebResponse queryCurrentMapInfo();
|
||||
|
||||
/**
|
||||
* 同步当前地图数据
|
||||
* @return
|
||||
*/
|
||||
WebResponse syncCurrentMapData();
|
||||
|
||||
}
|
||||
|
||||
@@ -149,4 +149,10 @@ public class MapServiceImpl implements MapService {
|
||||
);
|
||||
return WebResponse.requestParamOk(mapInfo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WebResponse syncCurrentMapData() {
|
||||
init();
|
||||
return WebResponse.requestOk();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user