|
|
@@ -0,0 +1,33 @@
|
|
|
+package com.fs.app.controller;
|
|
|
+
|
|
|
+import com.fs.app.annotation.Login;
|
|
|
+import com.fs.common.core.domain.R;
|
|
|
+import com.fs.store.domain.FsCoursePlaySourceConfig;
|
|
|
+import com.fs.store.service.IFsCoursePlaySourceConfigService;
|
|
|
+import com.github.pagehelper.PageHelper;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("/app/course/playSourceConfig")
|
|
|
+@AllArgsConstructor
|
|
|
+public class FsCoursePlaySourceConfigController extends AppBaseController {
|
|
|
+
|
|
|
+ private final IFsCoursePlaySourceConfigService fsCoursePlaySourceConfigService;
|
|
|
+
|
|
|
+ @Login
|
|
|
+ @ApiOperation("获取点播播放源配置")
|
|
|
+ @GetMapping("/list")
|
|
|
+ public R list(@RequestParam(required = false) String appid,
|
|
|
+ @RequestParam(required = false, defaultValue = "1") Integer pageNum,
|
|
|
+ @RequestParam(required = false, defaultValue = "10") Integer pageSize
|
|
|
+ ) {
|
|
|
+ FsCoursePlaySourceConfig fsCoursePlaySourceConfig = new FsCoursePlaySourceConfig();
|
|
|
+ fsCoursePlaySourceConfig.setAppid(appid);
|
|
|
+ PageHelper.startPage(pageNum, pageSize);
|
|
|
+ List<FsCoursePlaySourceConfig> list = fsCoursePlaySourceConfigService.selectFsCoursePlaySourceConfigList(fsCoursePlaySourceConfig);
|
|
|
+ return R.ok().put("data",list);
|
|
|
+ }
|
|
|
+}
|