package com.zhongzheng.controller.goods; import com.zhongzheng.common.annotation.Log; import com.zhongzheng.common.core.controller.BaseController; import com.zhongzheng.common.core.domain.AjaxResult; import com.zhongzheng.common.enums.BusinessType; import com.zhongzheng.modules.goods.bo.GoodsCourseTeacherAddBo; import com.zhongzheng.modules.goods.bo.GoodsCourseTeacherEditBo; import com.zhongzheng.modules.goods.bo.GoodsCourseTeacherQueryBo; import com.zhongzheng.modules.goods.service.IGoodsCourseTeacherService; import com.zhongzheng.modules.goods.vo.GoodsCourseTeacherVo; 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 hjl * @date 2022-09-14 */ @Api(value = "商品课程双师资绑定控制器", tags = {"商品课程双师资绑定管理"}) @RequiredArgsConstructor(onConstructor_ = @Autowired) @RestController @RequestMapping("/goods/course/teacher") public class GoodsCourseTeacherController extends BaseController { private final IGoodsCourseTeacherService iGoodsCourseTeacherService; /** * 查询商品课程双师资绑定列表 */ @ApiOperation("查询商品课程双师资绑定列表") @PreAuthorize("@ss.hasPermi('system:teacher:list')") @GetMapping("/list") public AjaxResult> list(GoodsCourseTeacherQueryBo bo) { bo.setStatus(1); List list = iGoodsCourseTeacherService.queryList(bo); return AjaxResult.success(list); } }