| | |
| | | import com.doumee.service.business.SmsEmailService; |
| | | 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.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | @Api(tags = "短信发送定时任务") |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/timer/sms") |
| | | public class HkSmsEmailTimerController extends BaseController { |
| | |
| | | @ApiOperation("开启定时短信发送定时任务") |
| | | @PostMapping("/sendWaitingSmsNotice") |
| | | public ApiResponse sendWaitingSmsNotice() { |
| | | log.info("定时任务执行开始:sendWaitingSmsNotice-发送等待短信"); |
| | | smsEmailService.sendWaitingSmsNotice(); |
| | | return ApiResponse.success("开启定时短信发送定时任务成功"); |
| | | } |