using Admin.NET.Plugin.AiDOP.Dto.S8; using Admin.NET.Plugin.AiDOP.Infrastructure; using Admin.NET.Plugin.AiDOP.Service.S8; namespace Admin.NET.Plugin.AiDOP.Controllers.S8; [ApiController] [Route("api/aidop/s8/config/notification-logs")] [NonUnify] public class AdoS8ConfigNotificationLogsController : ControllerBase { private readonly S8NotificationLogQueryService _svc; private readonly S8TrustedScopeResolver _scope; public AdoS8ConfigNotificationLogsController(S8NotificationLogQueryService svc, S8TrustedScopeResolver scope) { _svc = svc; _scope = scope; } [HttpGet] public async Task GetPagedAsync([FromQuery] AdoS8NotificationLogQueryDto q) { var scope = await _scope.ResolveAsync(); q.TenantId = scope.TenantId; q.FactoryId = scope.FactoryId; var (total, list) = await _svc.GetPagedAsync(q); return Ok(new { total, page = q.Page, pageSize = q.PageSize, list }); } }