using Admin.NET.Plugin.AiDOP.DataPlatform.Executors;
using Admin.NET.Plugin.AiDOP.Entity.DataPlatform;
namespace Admin.NET.Plugin.AiDOP.DataPlatform;
///
/// WP10 S4a · Outbox 可观测与手工重推(本库运维数据,需登录;不加 AllowAnonymous)。
///
[ApiDescriptionSettings(Order = 328, Description = "出站回写队列")]
[Route("api/aidop/mdp-outbox")]
[NonUnify]
public class MdpOutboxAdminService : IDynamicApiController, ITransient
{
private readonly ISqlSugarClient _db;
private readonly MdpOutboxWakeSignal _wake;
public MdpOutboxAdminService(ISqlSugarClient db, MdpOutboxWakeSignal wake)
{
_db = db;
_wake = wake;
}
public sealed class PageInput
{
public int? Status { get; set; }
public string? TargetSourceCode { get; set; }
public string? ActionCode { get; set; }
public string? IdemKey { get; set; }
public DateTime? CreateTimeFrom { get; set; }
public DateTime? CreateTimeTo { get; set; }
public int Page { get; set; } = 1;
public int PageSize { get; set; } = 20;
}
public sealed class RetryInput
{
public long[]? Ids { get; set; }
public bool? AllDead { get; set; }
}
[DisplayName("出站回写队列分页")]
[HttpGet("page")]
public async Task