package com.cf.imes.module.system.api.dataSource;

import com.cf.imes.framework.common.pojo.CommonResult;
import com.cf.imes.module.system.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Beal
 */
@FeignClient(name = ApiConstants.NAME) // TODO 晨丰：fallbackFactory =
@Tag(name = "RPC 服务 - 数据源")
public interface DataSourceApi {

    String PREFIX = ApiConstants.PREFIX + "/dataSource";

    @GetMapping(PREFIX + "/getSqlById")
    @Operation(summary = "获得数据源sql")
    CommonResult<String> getSqlById(@RequestParam(value = "id") Long id);
}
