SysScheduleController.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package com.boman.system.controller;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.boman.common.core.web.controller.BaseController;
  4. import com.boman.system.service.ISysScheduleService;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.validation.annotation.Validated;
  7. import org.springframework.web.bind.annotation.PostMapping;
  8. import org.springframework.web.bind.annotation.RequestBody;
  9. import org.springframework.web.bind.annotation.RequestMapping;
  10. import org.springframework.web.bind.annotation.RestController;
  11. import java.util.List;
  12. /**
  13. * @author tjf
  14. * @Date: 2021/04/02/9:45
  15. */
  16. @RestController
  17. @RequestMapping("/schedule")
  18. public class SysScheduleController extends BaseController {
  19. @Autowired
  20. private ISysScheduleService sysScheduleService;
  21. /**
  22. * 为日程表定制日程时间接口
  23. * @param result 结果
  24. * @return
  25. */
  26. @PostMapping("/setDay")
  27. public List<JSONObject> setDay(@Validated @RequestBody List<JSONObject> result) {
  28. return sysScheduleService.setDay(result);
  29. }
  30. }