add:增加后台管理系统

This commit is contained in:
2026-01-30 17:16:46 +08:00
parent acf269e92a
commit 778c8de6cd
155 changed files with 9913 additions and 51 deletions

View File

@@ -0,0 +1,28 @@
package org.nl.map.station.controller;
import jakarta.annotation.Resource;
import org.nl.logging.annotation.Log;
import org.nl.map.station.service.MapStationService;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author dsh
* 2026/1/21
*/
@RestController
@RequestMapping("/mapStation")
public class MapStationController {
@Resource
private MapStationService mapStationService;
@Log("查询所有站点")
@GetMapping("/queryAllStations")
public ResponseEntity<Object> queryAllStations() {
return new ResponseEntity<>(mapStationService.queryAllStation(), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,14 @@
package org.nl.map.station.service;
import com.baomidou.mybatisplus.extension.service.IService;
import org.nl.map.station.entity.Station;
import org.nl.response.WebResponse;
/**
* @author dsh
* 2026/1/21
*/
public interface MapStationService extends IService<Station> {
WebResponse queryAllStation();
}

View File

@@ -0,0 +1,28 @@
package org.nl.map.station.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.nl.map.station.entity.Station;
import org.nl.map.station.mapper.StationMapper;
import org.nl.map.station.service.MapStationService;
import org.nl.response.WebResponse;
import org.springframework.stereotype.Service;
/**
* @author dsh
* 2026/1/21
*/
@Slf4j
@Service
public class MapStationServiceImpl extends ServiceImpl<StationMapper, Station> implements MapStationService {
@Resource
private StationMapper stationMapper;
@Override
public WebResponse queryAllStation() {
return WebResponse.requestParamOk(stationMapper.selectList(new QueryWrapper<>()));
}
}