namespace Admin.NET.Plugin.AiDOP.Universal;
///
/// 通用货源清单选择服务
///
/// 【租户安全边界】需认证访问(已移除类级 [AllowAnonymous]);
/// 租户一律经 AidopTenantScope.ResolveOrThrow 从认证后 JWT 解析,
/// 无有效租户即拒绝,不读前端 tenantId、无默认回退(原实现:类级匿名 + 宽松解析,
/// 未认证方可携带 ?tenantId= 读任意租户货源清单)。
///
[ApiDescriptionSettings(Order = 280, Description = "通用-货源清单选择")]
[Route("api/Universal")]
[NonUnify]
public class UniversalSourceListService : IDynamicApiController, ITransient
{
private const string C = "utf8mb4_general_ci";
private readonly ISqlSugarClient _db;
private readonly UserManager _userManager;
public UniversalSourceListService(ISqlSugarClient db, UserManager userManager)
{
_db = db;
_userManager = userManager;
}
[DisplayName("获取货源清单选择列表")]
[HttpGet("source-list/page")]
public async Task