using learun.iapplication;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
namespace learun.webapi.Controllers
{
///
/// 版 本 Learun-ADMS-Core 力软管理后台
/// Copyright (c) 2019-present 力软信息技术(苏州)有限公司
/// 创建人:tobin
/// 日 期:2020.04.22
/// 描 述:数据源接口
///
public class DataSourceController : MvcControllerBase
{
private readonly DataSourceIBLL _dataSourceIBLL;
///
/// 初始化
///
/// 数据源接口
public DataSourceController(DataSourceIBLL dataSourceIBLL) {
_dataSourceIBLL = dataSourceIBLL;
}
///
/// 获取数据源数据
///
/// 数据源编码
///
[HttpGet]
public async Task DataTable(string code)
{
var data =await _dataSourceIBLL.GetDataTable(code, "");
return Success(data);
}
}
}