using Admin.NET.Plugin.AiDOP.Entity.DataPlatform;
namespace Admin.NET.Plugin.AiDOP.DataPlatform;
/// 数据源配置 API(供配置中心 sources 页读取与保存)。
[ApiDescriptionSettings(Order = 324, Description = "数据中台数据源")]
[Route("api/DataPlatform")]
[NonUnify]
public class MdpSourceConfigService : IDynamicApiController, ITransient
{
private readonly ISqlSugarClient _db;
private readonly UserManager _user;
private readonly MdpSourceScopeFactory _scopes;
public MdpSourceConfigService(ISqlSugarClient db, UserManager user, MdpSourceScopeFactory scopes)
{
_db = db;
_user = user;
_scopes = scopes;
}
[DisplayName("数据源列表")]
[HttpGet("sources")]
public async Task