|
@@ -0,0 +1,47 @@
|
|
|
+package com.zhongzheng.controller.course;
|
|
|
+
|
|
|
+import com.zhongzheng.common.annotation.Log;
|
|
|
+import com.zhongzheng.common.core.controller.BaseController;
|
|
|
+import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
+import com.zhongzheng.common.core.page.TableDataInfo;
|
|
|
+import com.zhongzheng.common.enums.BusinessType;
|
|
|
+import com.zhongzheng.modules.course.bo.CourseSubjectAddBo;
|
|
|
+import com.zhongzheng.modules.course.bo.CourseSubjectEditBo;
|
|
|
+import com.zhongzheng.modules.course.bo.CourseSubjectQueryBo;
|
|
|
+import com.zhongzheng.modules.course.service.ICourseSubjectService;
|
|
|
+import com.zhongzheng.modules.course.vo.CourseSubjectVo;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 科目Controller
|
|
|
+ *
|
|
|
+ * @author ruoyi
|
|
|
+ * @date 2021-10-09
|
|
|
+ */
|
|
|
+@Api(value = "科目控制器", tags = {"科目管理"})
|
|
|
+@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
|
|
+@RestController
|
|
|
+@RequestMapping("/course/subject")
|
|
|
+public class CourseSubjectController extends BaseController {
|
|
|
+
|
|
|
+ private final ICourseSubjectService iCourseSubjectService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询科目列表
|
|
|
+ */
|
|
|
+ @ApiOperation("查询科目列表")
|
|
|
+ @PreAuthorize("@ss.hasPermi('course:subject:list')")
|
|
|
+ @GetMapping("/list")
|
|
|
+ public TableDataInfo<CourseSubjectVo> list(CourseSubjectQueryBo bo) {
|
|
|
+ startPage();
|
|
|
+ List<CourseSubjectVo> list = iCourseSubjectService.queryList(bo);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
+}
|