|
@@ -0,0 +1,48 @@
|
|
|
+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.core.page.TableDataInfo;
|
|
|
+import com.zhongzheng.common.enums.BusinessType;
|
|
|
+import com.zhongzheng.modules.course.vo.CourseVo;
|
|
|
+import com.zhongzheng.modules.goods.bo.GoodsCourseAddBo;
|
|
|
+import com.zhongzheng.modules.goods.service.IGoodsCourseService;
|
|
|
+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.Arrays;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 商品课程关系Controller
|
|
|
+ *
|
|
|
+ * @author hjl
|
|
|
+ * @date 2021-10-12
|
|
|
+ */
|
|
|
+@Api(value = "商品课程关系控制器", tags = {"商品课程关系管理"})
|
|
|
+@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
|
|
+@RestController
|
|
|
+@RequestMapping("/app/common/goods/course")
|
|
|
+public class GoodsCourseController extends BaseController {
|
|
|
+
|
|
|
+ private final IGoodsCourseService iGoodsCourseService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询商品课程关系列表
|
|
|
+ */
|
|
|
+ @ApiOperation("查询商品课程关系列表")
|
|
|
+ @GetMapping("/list/{id}")
|
|
|
+ public TableDataInfo<CourseVo> list(@PathVariable Long id) {
|
|
|
+ startPage();
|
|
|
+ List<CourseVo> list = iGoodsCourseService.selectList(id);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|