|
|
|
@ -8,10 +8,7 @@ import com.shxy.xymanager_common.bean.ServiceStatus;
|
|
|
|
|
import com.shxy.xymanager_common.model.DyLineTreeAndChannelListModel;
|
|
|
|
|
import com.shxy.xymanager_common.model.TerminalChannelListModel;
|
|
|
|
|
import com.shxy.xymanager_common.model.TerminalChannelMapperListModel;
|
|
|
|
|
import com.shxy.xymanager_common.vo.TerminalChannelIdListVo;
|
|
|
|
|
import com.shxy.xymanager_common.vo.TerminalChannelVo;
|
|
|
|
|
import com.shxy.xymanager_common.vo.TerminalIdVo;
|
|
|
|
|
import com.shxy.xymanager_common.vo.UpdateTerminalChannelVo;
|
|
|
|
|
import com.shxy.xymanager_common.vo.*;
|
|
|
|
|
import com.shxy.xymanager_service.service.TerminalChannelService;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
@ -38,8 +35,8 @@ public class ChannelController extends BaseController {
|
|
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
|
|
|
|
@RequestMapping("/getChannelList")
|
|
|
|
|
@Log(title = "获取所有通道列表", type = "查询")
|
|
|
|
|
public ResponseReult<TerminalChannelListModel> getChannelList() {
|
|
|
|
|
ServiceBody<TerminalChannelListModel> serviceBody = terminalChannelService.getChannelList();
|
|
|
|
|
public ResponseReult<TerminalChannelListModel> getChannelList(@RequestBody @Validated PageVo vo) {
|
|
|
|
|
ServiceBody<TerminalChannelListModel> serviceBody = terminalChannelService.getChannelList(vo);
|
|
|
|
|
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
|
|
|
|
return ResponseReult.success(serviceBody.getData());
|
|
|
|
|
} else {
|
|
|
|
@ -64,7 +61,7 @@ public class ChannelController extends BaseController {
|
|
|
|
|
@ApiOperation(value = "修改通道接口", notes = "获取通道列表接口", httpMethod = "POST")
|
|
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
|
|
|
|
@RequestMapping("/updateChannelList")
|
|
|
|
|
@Log(title = "修改通道列表", type = "查询")
|
|
|
|
|
@Log(title = "修改通道列表", type = "修改")
|
|
|
|
|
public ResponseReult<String> updateChannelList(@RequestBody @Validated UpdateTerminalChannelVo vo) {
|
|
|
|
|
ServiceBody<String> serviceBody = terminalChannelService.updateChannelList(vo);
|
|
|
|
|
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
|
|
|
@ -77,7 +74,7 @@ public class ChannelController extends BaseController {
|
|
|
|
|
@ApiOperation(value = "删除通道接口", notes = "获取通道列表接口", httpMethod = "POST")
|
|
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
|
|
|
|
@RequestMapping("/deleteChannelList")
|
|
|
|
|
@Log(title = "获取通道列表", type = "查询")
|
|
|
|
|
@Log(title = "删除通道接口", type = "修改")
|
|
|
|
|
public ResponseReult<String> deleteChannelList(@RequestBody @Validated TerminalChannelIdListVo vo) {
|
|
|
|
|
ServiceBody<String> serviceBody = terminalChannelService.deleteChannelList(vo);
|
|
|
|
|
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
|
|
|
|