using Admin.NET.Plugin.AiDOP.Order;
namespace Admin.NET.Plugin.AiDOP.Supply;
///
/// S3 MDP 运行监控。
///
/// 【租户安全边界】租户一律经 从认证后 JWT 解析,
/// 无有效租户即拒绝,不读前端 tenantId、无默认回退(原实现:类级 [AllowAnonymous] +
/// _userManager.TenantId > 0 跳过分支,匿名时退化为 tenant_id = 0 平台行或不过滤)。
/// 注:租户行与 tenant_id = 0 平台行的可见性语义(BuildMdpRunLogTenantWhere)保持不变。
///
[ApiDescriptionSettings(Order = 320, Description = "S3 MDP运行监控")]
[Route("api/Supply")]
[NonUnify]
public class S3MdpMonitorService : IDynamicApiController, ITransient
{
private readonly ISqlSugarClient _db;
private readonly UserManager _userManager;
public S3MdpMonitorService(ISqlSugarClient db, UserManager userManager)
{
_db = db;
_userManager = userManager;
}
[DisplayName("S3 MDP最近运行状态")]
[HttpGet("s3-mdp-monitor/latest")]
public async Task