21 lines
555 B
C#
21 lines
555 B
C#
namespace MiaoYu.Shared.Admin.MessageHandler;
|
|
|
|
/// <summary>
|
|
/// Ïû·ÑÈÕÖ¾
|
|
/// </summary>
|
|
public class WriteLogHandler : IBus<SysOperationLog>
|
|
{
|
|
public string topic => "WriteInLog";
|
|
|
|
private readonly IRepository<SysOperationLog> _sysOperationLogRepository;
|
|
|
|
public WriteLogHandler(IRepository<SysOperationLog> sysOperationLogRepository)
|
|
{
|
|
_sysOperationLogRepository = sysOperationLogRepository;
|
|
}
|
|
|
|
public async Task HandlerAsync(SysOperationLog data)
|
|
{
|
|
await _sysOperationLogRepository.InsertAsync(data);
|
|
}
|
|
} |