puzhibing
2023-08-14 1882d607549762a84b1a5326f7262eba01363b85
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);
    }
}