package com.nuvole.four.controller.app; import com.github.pagehelper.PageHelper; import com.nuvole.base.domain.SysUser; import com.nuvole.common.domain.emnu.CommonResultEmnu; import com.nuvole.common.domain.result.CommonResult; import com.nuvole.common.domain.result.PageBean; import com.nuvole.four.contants.Contants; import com.nuvole.four.controller.BaseController; import com.nuvole.four.domain.dto.ChannelOrgConfigDetailDto; import com.nuvole.four.domain.dto.ChannelOrgConfigDto; import com.nuvole.four.domain.params.ChannelOrgConfigParam; import com.nuvole.four.service.ChannelOrgConfigService; import com.nuvole.four.util.SystemUtil; import com.nuvole.util.CommonUtil; import com.nuvole.util.PageUtils; import io.swagger.annotations.*; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang.StringUtils; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; /** * @Desc: APP机构通道查询 * @Author: dqh * @Date: 2024-04-10 **/ @Api(value = "APP机构通道查询", tags = "APP机构通道查询") @Slf4j @RestController @RequestMapping(value = "/v1/four/manager/app/channel/org/config") public class AppChannelOrgConfigController extends BaseController { @Autowired private ChannelOrgConfigService channelOrgConfigService; /** * 方法描述: 查询机构通道详情 * 详情中的通道 仅包含当前orgId对应的pId对应的通道 * @date 2024-04-11 20:04 **/ @ApiOperation(value = "查询机构通道详情", notes = "查询机构通道详情") @GetMapping("/getDetail") public CommonResult getChannelOrgConfigDetail( @ApiParam(name = "orgId", value = "机构ID") Long orgId) { SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_MANAGER_APP); orgId = user.getOrgId(); ChannelOrgConfigDetailDto dtoList = channelOrgConfigService.getChannelOrgConfigDetail(orgId); return new CommonResult(dtoList); } }