| | |
| | | import com.ard.common.core.page.TableDataInfo; |
| | | import com.ard.vtdu.domain.ArdVtdu; |
| | | import com.ard.vtdu.domain.Conf; |
| | | import com.ard.vtdu.service.IArdMediaMTXService; |
| | | import com.ard.vtdu.service.IArdMediaService; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | public class MediaMTXController extends BaseController { |
| | | |
| | | @Resource |
| | | private IArdMediaMTXService mediaService; |
| | | private IArdMediaService mediaService; |
| | | |
| | | /** |
| | | * 增加通道 |
| | | */ |
| | | @PostMapping() |
| | | @ApiOperation("增加通道") |
| | | @ApiOperationSupport(includeParameters = {"ardVtdu.name", "ardVtdu.rtspSource", "ardVtdu.mode", "ardVtdu.isCode", "ardVtdu.isRecord"}, order = 1) |
| | | @ApiOperationSupport(includeParameters = {"ardVtdu.name", "ardVtdu.rtspSource"}, order = 1) |
| | | public AjaxResult addPath(@RequestBody ArdVtdu ardVtdu) { |
| | | if (StringUtils.isEmpty(ardVtdu.getName())) { |
| | | return AjaxResult.error("通道名称不能为空"); |
| | |
| | | * 修改通道 |
| | | */ |
| | | @ApiOperation("修改通道") |
| | | @ApiOperationSupport(includeParameters = {"ardVtdu.name", "ardVtdu.rtspSource", "ardVtdu.mode", "ardVtdu.isCode", "ardVtdu.isRecord"}, order = 2) |
| | | @ApiOperationSupport(includeParameters = {"ardVtdu.name", "ardVtdu.rtspSource"}, order = 2) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ArdVtdu ardVtdu) { |
| | | return AjaxResult.success(mediaService.editPath(ardVtdu)); |