You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
37 lines
1.1 KiB
3 years ago
|
using learun.iapplication;
|
||
|
using Microsoft.AspNetCore.Mvc;
|
||
|
using System.Threading.Tasks;
|
||
|
|
||
|
namespace learun.webapi.Controllers
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 版 本 Learun-ADMS-Core 力软管理后台
|
||
|
/// Copyright (c) 2019-present 力软信息技术(苏州)有限公司
|
||
|
/// 创建人:tobin
|
||
|
/// 日 期:2020.04.22
|
||
|
/// 描 述:数据源接口
|
||
|
/// </summary>
|
||
|
public class DataSourceController : MvcControllerBase
|
||
|
{
|
||
|
private readonly DataSourceIBLL _dataSourceIBLL;
|
||
|
/// <summary>
|
||
|
/// 初始化
|
||
|
/// </summary>
|
||
|
/// <param name="dataSourceIBLL">数据源接口</param>
|
||
|
public DataSourceController(DataSourceIBLL dataSourceIBLL) {
|
||
|
_dataSourceIBLL = dataSourceIBLL;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 获取数据源数据
|
||
|
/// </summary>
|
||
|
/// <param name="code">数据源编码</param>
|
||
|
/// <returns></returns>
|
||
|
[HttpGet]
|
||
|
public async Task<IActionResult> DataTable(string code)
|
||
|
{
|
||
|
var data =await _dataSourceIBLL.GetDataTable(code, "");
|
||
|
return Success(data);
|
||
|
}
|
||
|
}
|
||
|
}
|