xuekang
2024-05-13 15a0280ae9e7db96fdf0744c722d214d2cb5a0e5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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<ChannelOrgConfigDetailDto> 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);
    }
 
 
}