/*
* Copyright (c) 京北方信息技术股份有限公司 Corporation 2022 . All rights reserved.
*
*/
package net.northking.cctp.scriptcase.api.component;

import cn.gjing.tools.auth.annotation.RequiredPermissions;
import com.hzbank.testteam.autotest.dependencies.authDependency.constants.AuthDependencyConstants;
import com.hzbank.testteam.autotest.dependencies.baseDefineDependency.constants.BaseDefineDependencyConstants;
import com.hzbank.testteam.autotest.dependencies.baseDefineDependency.vo.ResponseVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import net.northking.cctp.common.db.Pagination;
import net.northking.cctp.common.dto.AdvancedQueryOptions;
import net.northking.cctp.common.http.QueryByPage;
import net.northking.cctp.common.http.ResultWrapper;
import net.northking.cctp.scriptcase.api.component.service.MdBusComponentInfoApiService;
import net.northking.cctp.scriptcase.dto.component.MdBusComponentInfoDetailDto;
import net.northking.cctp.scriptcase.dto.component.MdBusComponentInfoQueryDto;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@Api(tags = "业务组件")
@RequestMapping("/pub")
@RestController
public class MdBusComInfoPubCtrl
{
  /**
   * 日志
   */
  private final static Logger logger = LoggerFactory.getLogger(MdBusComInfoPubCtrl.class);

  @Autowired
  private MdBusComponentInfoApiService apiService;

  @ApiOperation(value = "feign调用:查询业务组件信息")
  @PostMapping(value = "/busCom/findBusComName")
  public ResultWrapper<MdBusComponentInfoDetailDto> findBusComName(@RequestBody String id){
    ResultWrapper<MdBusComponentInfoDetailDto> wrapper = new ResultWrapper<>();
    MdBusComponentInfoDetailDto dto = apiService.findById(id);

    return wrapper.success(dto);
  }

}


