package com.doumee.api; import com.doumee.biz.system.SystemDictDataBiz; import com.doumee.core.dingTalk.DingTalk; import com.doumee.service.business.WarningService; import com.doumee.service.business.third.model.ApiResponse; import com.doumee.service.system.SystemDictDataService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * @author 江蹄蹄 * @date 2023/11/30 15:33 */ @Api(tags = "天气预警同步") @RestController @RequestMapping("/timer/weather") public class WeatherTimerController extends BaseController { @Autowired private WarningService warningService; /** * 是否开发者 */ @Value("${debug_model}") private Boolean timing; @ApiOperation("定时同步天气预警信息") @PostMapping("/syncWeatherInfo") public ApiResponse syncWeatherInfo(){ warningService.getWeatherInfo(); return ApiResponse.success("定时同步天气预警信息"); } }