SendMegController.java 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // package com.fjhx.common.controller.send;
  2. //
  3. // import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  4. // import com.fjhx.common.entity.send.dto.SendMegDto;
  5. // import com.fjhx.common.entity.send.dto.SendMegSelectDto;
  6. // import com.fjhx.common.entity.send.vo.SendMegVo;
  7. // import com.fjhx.common.service.send.SendMegService;
  8. // import com.ruoyi.common.core.domain.BaseSelectDto;
  9. // import org.springframework.beans.factory.annotation.Autowired;
  10. // import org.springframework.scheduling.annotation.EnableScheduling;
  11. // import org.springframework.scheduling.annotation.Scheduled;
  12. // import org.springframework.web.bind.annotation.PostMapping;
  13. // import org.springframework.web.bind.annotation.RequestBody;
  14. // import org.springframework.web.bind.annotation.RequestMapping;
  15. // import org.springframework.web.bind.annotation.RestController;
  16. //
  17. //
  18. // /**
  19. // * <p>
  20. // * 前端控制器
  21. // * </p>
  22. // *
  23. // * @author
  24. // * @since 2023-05-22
  25. // */
  26. // @EnableScheduling
  27. // @RestController
  28. // @RequestMapping("/sendMeg")
  29. // public class SendMegController {
  30. //
  31. // @Autowired
  32. // private SendMegService sendMegService;
  33. //
  34. // /**
  35. // * 分页
  36. // */
  37. // @PostMapping("/page")
  38. // public Page<SendMegVo> page(@RequestBody SendMegSelectDto dto) {
  39. // return sendMegService.getPage(dto);
  40. // }
  41. //
  42. // /**
  43. // * 明细
  44. // */
  45. // @PostMapping("/detail")
  46. // public SendMegVo detail(@RequestBody BaseSelectDto dto) {
  47. // return sendMegService.detail(dto.getId());
  48. // }
  49. //
  50. // /**
  51. // * 新增
  52. // */
  53. // @PostMapping("/add")
  54. // public void add(@RequestBody SendMegDto sendMegDto) {
  55. // sendMegService.add(sendMegDto);
  56. // }
  57. //
  58. // /**
  59. // * 编辑
  60. // */
  61. // @PostMapping("/edit")
  62. // public void edit(@RequestBody SendMegDto sendMegDto) {
  63. // sendMegService.edit(sendMegDto);
  64. // }
  65. //
  66. // /**
  67. // * 删除
  68. // */
  69. // @PostMapping("/delete")
  70. // public void delete(@RequestBody BaseSelectDto dto) {
  71. // sendMegService.delete(dto.getId());
  72. // }
  73. //
  74. // @Scheduled(cron = "0 0/1 * * * ? ") // 每1分钟执行一次
  75. // public void execute() {
  76. // sendMegService.executeSend();
  77. // }
  78. //
  79. // }