chore:目录重构
This commit is contained in:
31
Yi.Furion.Net6/Yi.Furion.Core/Rbac/Etos/LoginEventSource.cs
Normal file
31
Yi.Furion.Net6/Yi.Furion.Core/Rbac/Etos/LoginEventSource.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Furion.EventBus;
|
||||
|
||||
namespace Yi.Furion.Core.Rbac.Etos
|
||||
{
|
||||
public class LoginEventSource : IEventSource
|
||||
{
|
||||
public LoginEventSource(LoginEventArgs payload)
|
||||
{ Payload = payload; }
|
||||
public string EventId => nameof(LoginEventSource);
|
||||
public DateTime CreatedTime { get; set; } = DateTime.UtcNow;
|
||||
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public CancellationToken CancellationToken { get; set; }
|
||||
|
||||
|
||||
public object Payload { get; set; }
|
||||
}
|
||||
|
||||
public class LoginEventArgs
|
||||
{
|
||||
public long UserId { get; set; }
|
||||
public string UserName { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user