|
@@ -0,0 +1,42 @@
|
|
|
+package com.zhongzheng.controller.course;
|
|
|
+
|
|
|
+import com.zhongzheng.common.core.controller.BaseController;
|
|
|
+import com.zhongzheng.common.core.page.TableDataInfo;
|
|
|
+import com.zhongzheng.modules.top.goods.bo.TopCourseEducationTypeQueryBo;
|
|
|
+import com.zhongzheng.modules.top.goods.service.ITopCourseEducationTypeService;
|
|
|
+import com.zhongzheng.modules.top.goods.vo.TopCourseEducationTypeVo;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 教育类型Controller
|
|
|
+ *
|
|
|
+ * @author ruoyi
|
|
|
+ * @date 2021-10-08
|
|
|
+ */
|
|
|
+@Api(value = "教育类型控制器", tags = {"教育类型管理"})
|
|
|
+@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
|
|
+@RestController
|
|
|
+@RequestMapping("/course/educationType")
|
|
|
+public class TopCourseEducationTypeController extends BaseController {
|
|
|
+
|
|
|
+ private final ITopCourseEducationTypeService iCourseEducationTypeService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询教育类型列表
|
|
|
+ */
|
|
|
+ @ApiOperation("查询教育类型列表")
|
|
|
+ @GetMapping("/list")
|
|
|
+ public TableDataInfo<TopCourseEducationTypeVo> list(TopCourseEducationTypeQueryBo bo) {
|
|
|
+ startPage();
|
|
|
+ List<TopCourseEducationTypeVo> list = iCourseEducationTypeService.queryList(bo);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
+}
|