doum
2026-06-11 d9c657aa78cf0ebe31933a87e63ca92edd8a8da3
server/visits/admin_timer/src/main/java/com/doumee/api/WeatherTimerController.java
@@ -7,6 +7,7 @@
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;
@@ -18,6 +19,7 @@
 * @date 2023/11/30 15:33
 */
@Api(tags = "天气预警同步")
@Slf4j
@RestController
@RequestMapping("/timer/weather")
public class WeatherTimerController extends BaseController {
@@ -33,6 +35,7 @@
    @ApiOperation("定时同步天气预警信息")
    @PostMapping("/syncWeatherInfo")
    public ApiResponse syncWeatherInfo(){
        log.info("定时任务执行开始:syncWeatherInfo-同步天气预警");
        warningService.getWeatherInfo();
        return ApiResponse.success("定时同步天气预警信息");
    }