cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TCourseController.java
@@ -11,6 +11,7 @@ import org.springframework.ui.Model; import org.springframework.web.bind.annotation.*; import java.util.List; import java.util.Map; /** @@ -146,4 +147,16 @@ courseService.editCourseState(id, state); return ResultUtil.success(); } /** * 根据类型获取数据 * @param type * @return */ @ResponseBody @PostMapping("/queryCourseByType") public List<TCourse> queryCourseByType(Integer type){ return courseService.queryCourseByType(type); } }