GoodsCourseTeacherController.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package com.zhongzheng.controller.goods;
  2. import com.zhongzheng.common.annotation.Log;
  3. import com.zhongzheng.common.core.controller.BaseController;
  4. import com.zhongzheng.common.core.domain.AjaxResult;
  5. import com.zhongzheng.common.enums.BusinessType;
  6. import com.zhongzheng.modules.goods.bo.GoodsCourseTeacherAddBo;
  7. import com.zhongzheng.modules.goods.bo.GoodsCourseTeacherEditBo;
  8. import com.zhongzheng.modules.goods.bo.GoodsCourseTeacherQueryBo;
  9. import com.zhongzheng.modules.goods.service.IGoodsCourseTeacherService;
  10. import com.zhongzheng.modules.goods.vo.GoodsCourseTeacherVo;
  11. import io.swagger.annotations.Api;
  12. import io.swagger.annotations.ApiOperation;
  13. import lombok.RequiredArgsConstructor;
  14. import org.springframework.beans.factory.annotation.Autowired;
  15. import org.springframework.security.access.prepost.PreAuthorize;
  16. import org.springframework.web.bind.annotation.*;
  17. import java.util.List;
  18. /**
  19. * 商品课程双师资绑定Controller
  20. *
  21. * @author hjl
  22. * @date 2022-09-14
  23. */
  24. @Api(value = "商品课程双师资绑定控制器", tags = {"商品课程双师资绑定管理"})
  25. @RequiredArgsConstructor(onConstructor_ = @Autowired)
  26. @RestController
  27. @RequestMapping("/goods/course/teacher")
  28. public class GoodsCourseTeacherController extends BaseController {
  29. private final IGoodsCourseTeacherService iGoodsCourseTeacherService;
  30. /**
  31. * 查询商品课程双师资绑定列表
  32. */
  33. @ApiOperation("查询商品课程双师资绑定列表")
  34. @PreAuthorize("@ss.hasPermi('system:teacher:list')")
  35. @GetMapping("/list")
  36. public AjaxResult<List<GoodsCourseTeacherVo>> list(GoodsCourseTeacherQueryBo bo) {
  37. bo.setStatus(1);
  38. List<GoodsCourseTeacherVo> list = iGoodsCourseTeacherService.queryList(bo);
  39. return AjaxResult.success(list);
  40. }
  41. }