| | |
| | | import com.doumee.service.system.SystemDictDataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | @Api(tags = "天气预警同步") |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/timer/weather") |
| | | public class WeatherTimerController extends BaseController { |
| | |
| | | @ApiOperation("定时同步天气预警信息") |
| | | @PostMapping("/syncWeatherInfo") |
| | | public ApiResponse syncWeatherInfo(){ |
| | | log.info("定时任务执行开始:syncWeatherInfo-同步天气预警"); |
| | | warningService.getWeatherInfo(); |
| | | return ApiResponse.success("定时同步天气预警信息"); |
| | | } |