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

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.northking.cctp.device.api.engineInfo.service.CdEngineInfoApiService;
import net.northking.cctp.device.dto.engineInfo.CdEngineInfoDetailDto;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

/**
 * 执行引擎信息表 => Restful 类型 HTTP/HTTPS 接口
 *
 * @author maven-cctp-plugin
 * @since 1.0
 */
@Api(tags = "执行引擎信息表")
@RequestMapping("/v1")
@RestController
public class EngineActivityCtrl
{
  /**
   * 日志
   */
  private final static Logger logger = LoggerFactory.getLogger(EngineActivityCtrl.class);

  @Autowired
  private CdEngineInfoApiService apiService;

  /**
   *
   * @param uuid       数据库主键
   * @return 接口数据传输对象
   */
  @ApiOperation(value = "获取：执行引擎信息表")
  @GetMapping(
      value = "/query/engineInfo/{uuid}",
      produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
  public CdEngineInfoDetailDto findByPK(
      @PathVariable("uuid") String uuid)
  {
    return apiService.findByPK(uuid);
  }

}
