增加备注
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-10-12 13:48:48 +08:00
parent c940976f7f
commit 8eecabb897
5 changed files with 48 additions and 14 deletions
@@ -15,6 +15,8 @@ public class EventStoreRecordView
public string EventData { get; set; }
public string EventTypeName { get; set; }
public EventStateEnum EventState { get; set; }
public string EventType { get; set; }
@@ -33,7 +35,7 @@ public class EventStoreRecordQuery : PageInput
public EventStateEnum? EventState { get; set; }
public string? EventType { get; set; }
public string? EventTypeName { get; set; }
}
@@ -22,12 +22,16 @@ namespace IRaCIS.Core.Application.Service;
[ApiExplorerSettings(GroupName = "Common")]
public class EventStoreRecordService(IRepository<EventStoreRecord> _eventStoreRecordRepository, IMediator _mediator,IPublishEndpoint _publishEndpoint) : BaseService
{
/// <summary>
/// 邮件事件消息列表
/// </summary>
/// <param name="inQuery"></param>
/// <returns></returns>
[HttpPost]
public async Task<PageOutput<EventStoreRecordView>> GetEventStoreRecordList(EventStoreRecordQuery inQuery)
{
var eventStoreRecordQueryable = _eventStoreRecordRepository
var eventStoreRecordQueryable = _eventStoreRecordRepository.WhereIf(inQuery.EventTypeName.IsNotNullOrEmpty(),t=>t.EventTypeName.Contains(inQuery.EventTypeName))
.ProjectTo<EventStoreRecordView>(_mapper.ConfigurationProvider);
var pageList = await eventStoreRecordQueryable.ToPagedListAsync(inQuery);