ScheduleController.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package com.zhongzheng.controller.schedule;
  2. import com.zhongzheng.common.core.controller.BaseController;
  3. import com.zhongzheng.common.core.domain.AjaxResult;
  4. import com.zhongzheng.modules.schedule.service.IScheduleService;
  5. import com.zhongzheng.modules.user.bo.UserQueryBo;
  6. import io.swagger.annotations.Api;
  7. import io.swagger.annotations.ApiOperation;
  8. import lombok.RequiredArgsConstructor;
  9. import org.springframework.beans.factory.annotation.Autowired;
  10. import org.springframework.security.access.prepost.PreAuthorize;
  11. import org.springframework.web.bind.annotation.*;
  12. /**
  13. * 定时任务
  14. *
  15. * @author ruoyi
  16. * @date 2021-11-10
  17. */
  18. @Api(value = "定时任务", tags = {"定时任务管理"})
  19. @RequiredArgsConstructor(onConstructor_ = @Autowired)
  20. @RestController
  21. @RequestMapping("/app/common")
  22. public class ScheduleController extends BaseController {
  23. private final IScheduleService iScheduleService;
  24. /**
  25. * 商品购买发送消息
  26. * @return
  27. */
  28. @ApiOperation("商品购买发送消息")
  29. @GetMapping("/updateGoodsSend")
  30. public AjaxResult updateGoodsSend(UserQueryBo bo) {
  31. iScheduleService.updateGoodsSend(bo);
  32. return AjaxResult.success();
  33. }
  34. /**
  35. * 考试提醒
  36. * @return
  37. */
  38. @ApiOperation("考试提醒")
  39. @GetMapping("/updateExamSend")
  40. public AjaxResult updateExamSend(UserQueryBo bo) {
  41. iScheduleService.updateExamSend(bo);
  42. return AjaxResult.success();
  43. }
  44. }