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.ArrayList; import java.util.Arrays; import java.util.List; /** * 科目Controller * * @author ruoyi * @date 2021-10-09 */ @Api(value = "科目控制器", tags = {"科目管理"}) @RequiredArgsConstructor(onConstructor_ = @Autowired) @RestController @RequestMapping("/app/common/course/subject") public class CourseSubjectController extends BaseController { private final ICourseSubjectService iCourseSubjectService; /** * 查询科目列表 */ @ApiOperation("查询科目列表") @GetMapping("/list") public TableDataInfo list(CourseSubjectQueryBo bo) { bo.setStatus(new ArrayList(Arrays.asList(1))); startPage(); List list = iCourseSubjectService.queryList(bo); return getDataTable(list); } }