초기커밋
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
namespace BrokerCore.BrokerBusinessLog;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
using ServerBase;
|
||||
|
||||
public class PlanetProviderLogActor : IWithLogActor
|
||||
{
|
||||
// 로그 행위자 정보
|
||||
public class LogActor : ILogActor
|
||||
{
|
||||
[JsonProperty] public ServerType ServerType { get; init; } = ServerType.BrokerApi;
|
||||
[JsonProperty] public string PlanetId { get; init; } = string.Empty;
|
||||
}
|
||||
|
||||
private readonly ILogActor m_log_actor;
|
||||
|
||||
public PlanetProviderLogActor(string planetId)
|
||||
{
|
||||
m_log_actor = new LogActor { PlanetId = planetId};
|
||||
}
|
||||
|
||||
public ILogActor toLogActor()
|
||||
{
|
||||
return m_log_actor;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
|
||||
namespace BrokerCore.BrokerBusinessLog;
|
||||
|
||||
public class PlanetUserLogActor : ILogActor
|
||||
{
|
||||
[JsonProperty] public ServerType ServerType { get; init; } = ServerType.BrokerApi;
|
||||
[JsonProperty] public string PlanetId { get; init; } = string.Empty; // 플래닛 아이디
|
||||
[JsonProperty] public string AccountIdString { get; init; } = string.Empty; // 계정 식별 문자열
|
||||
[JsonProperty] public string AccountId { get; init; } = string.Empty; // 계정 식별키
|
||||
[JsonProperty] public string UserGuid { get; init; } = string.Empty; // 유저 식별키
|
||||
[JsonProperty] public string UserNickname { get; init; } = string.Empty;
|
||||
[JsonProperty] public AccountType AccountType { get; init; } = AccountType.None;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
|
||||
|
||||
namespace BrokerCore.BrokerBusinessLog;
|
||||
|
||||
public class PlanetItemExchangeBusinessLog : ILogInvokerEx
|
||||
{
|
||||
private readonly PlanetItemExchangeLogData m_log_data;
|
||||
|
||||
public PlanetItemExchangeBusinessLog(LogActionEx logAction, PlanetItemExchangeLogData logData)
|
||||
: base(LogDomainType.BrokerApi, logAction)
|
||||
{
|
||||
m_log_data = new PlanetItemExchangeLogData(this, logData);
|
||||
}
|
||||
|
||||
protected override void fillup(ref BusinessLog.LogBody body)
|
||||
{
|
||||
body.append(m_log_data);
|
||||
}
|
||||
|
||||
public override bool hasLog()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
|
||||
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
|
||||
|
||||
namespace BrokerCore.BrokerBusinessLog;
|
||||
|
||||
public class PlanetProviderAuthBusinessLog : ILogInvokerEx
|
||||
{
|
||||
private readonly PlanetProviderAuthLogData m_log_data;
|
||||
|
||||
public PlanetProviderAuthBusinessLog(LogActionEx logAction, PlanetProviderAuthLogData logData)
|
||||
: base(LogDomainType.PlanetProviderAuth, logAction)
|
||||
{
|
||||
m_log_data = new PlanetProviderAuthLogData(this, logData);
|
||||
}
|
||||
|
||||
protected override void fillup(ref BusinessLog.LogBody body)
|
||||
{
|
||||
body.append(m_log_data);
|
||||
}
|
||||
|
||||
public override bool hasLog()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
26
BrokerApiCore/BrokerBusinessLog/PlanetUserAuthBusinessLog.cs
Normal file
26
BrokerApiCore/BrokerBusinessLog/PlanetUserAuthBusinessLog.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
|
||||
|
||||
namespace BrokerCore.BrokerBusinessLog;
|
||||
|
||||
public class PlanetUserAuthBusinessLog : ILogInvokerEx
|
||||
{
|
||||
private readonly PlanetUserAuthLogData m_log_data;
|
||||
|
||||
public PlanetUserAuthBusinessLog(PlanetUserAuthLogData logData, LogActionType logActionType)
|
||||
: base(LogDomainType.BrokerApi, new LogActionEx(logActionType))
|
||||
{
|
||||
m_log_data = new PlanetUserAuthLogData(this, logData);
|
||||
}
|
||||
|
||||
protected override void fillup(ref BusinessLog.LogBody body)
|
||||
{
|
||||
body.append(m_log_data);
|
||||
}
|
||||
|
||||
public override bool hasLog()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user