초기커밋
This commit is contained in:
232
ServerCommon/1. Define/BusinessLog/Domain/UgqApiLog.cs
Normal file
232
ServerCommon/1. Define/BusinessLog/Domain/UgqApiLog.cs
Normal file
@@ -0,0 +1,232 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
|
||||
using ServerBase;
|
||||
|
||||
|
||||
namespace ServerCommon.BusinessLogDomain;
|
||||
|
||||
public class UgqApiUserActorLog : ILogActor
|
||||
{
|
||||
public ServerType ServerType { get; private set; } = ServerType.None;
|
||||
public string UserGuid { get; private set; } = string.Empty;
|
||||
public string UserNickname { get; private set; } = string.Empty;
|
||||
|
||||
public void initLogInfo(ServerType serverType
|
||||
, string userGuid
|
||||
, string userNickname)
|
||||
{
|
||||
ServerType = serverType;
|
||||
UserGuid = userGuid;
|
||||
UserNickname = userNickname;
|
||||
}
|
||||
|
||||
public void setLogInfo(UgqApiUserActorLog logInfo)
|
||||
{
|
||||
ServerType = logInfo.ServerType;
|
||||
UserGuid = logInfo.UserGuid;
|
||||
UserNickname = logInfo.UserNickname;
|
||||
}
|
||||
|
||||
public UgqApiUserActorLog()
|
||||
{
|
||||
}
|
||||
|
||||
public UgqApiUserActorLog(UgqApiUserActorLog logInfo)
|
||||
{
|
||||
setLogInfo(logInfo);
|
||||
}
|
||||
}
|
||||
|
||||
public class UgqApiAdminLog : ILogActor
|
||||
{
|
||||
public ServerType ServerType { get; private set; } = ServerType.None;
|
||||
public string Username { get; private set; } = string.Empty;
|
||||
|
||||
public void initLogInfo(ServerType serverType
|
||||
, string username)
|
||||
{
|
||||
ServerType = serverType;
|
||||
Username = username;
|
||||
}
|
||||
|
||||
public void setLogInfo(UgqApiAdminLog logInfo)
|
||||
{
|
||||
ServerType = logInfo.ServerType;
|
||||
Username = logInfo.Username;
|
||||
}
|
||||
|
||||
public UgqApiAdminLog()
|
||||
{
|
||||
}
|
||||
|
||||
public UgqApiAdminLog(UgqApiAdminLog logInfo)
|
||||
{
|
||||
setLogInfo(logInfo);
|
||||
}
|
||||
}
|
||||
|
||||
public enum UgqApiLoginType
|
||||
{
|
||||
DevelopmentApi,
|
||||
NormalApi,
|
||||
}
|
||||
|
||||
|
||||
public class UgqApiLoginLogInfo : ILogInvokerEx.IInfo
|
||||
{
|
||||
[JsonProperty("type")]
|
||||
UgqApiLoginType m_type;
|
||||
|
||||
public UgqApiLoginLogInfo(ILogInvoker parent, UgqApiLoginType type)
|
||||
: base(parent)
|
||||
{
|
||||
m_type = type;
|
||||
}
|
||||
}
|
||||
|
||||
public class UgqApiLogoutLogInfo : ILogInvokerEx.IInfo
|
||||
{
|
||||
public UgqApiLogoutLogInfo(ILogInvoker parent)
|
||||
: base(parent)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class UgqApiQuestCraeteLogInfo : ILogInvokerEx.IInfo
|
||||
{
|
||||
[JsonProperty("quest_content_id")]
|
||||
public string m_quest_content_id { get; private set; }
|
||||
|
||||
[JsonProperty("admin_username")]
|
||||
public string m_admin_username { get; private set; }
|
||||
|
||||
public UgqApiQuestCraeteLogInfo(ILogInvoker parent, string quest_content_id, string admin_username)
|
||||
: base(parent)
|
||||
{
|
||||
m_quest_content_id = quest_content_id;
|
||||
m_admin_username = admin_username;
|
||||
}
|
||||
}
|
||||
|
||||
public class UgqApiAddSlotLogInfo : ILogInvokerEx.IInfo
|
||||
{
|
||||
[JsonProperty("additional_slots")]
|
||||
public int m_additional_slots { get; private set; }
|
||||
|
||||
[JsonProperty("admin_username")]
|
||||
public string m_admin_username { get; private set; }
|
||||
|
||||
public UgqApiAddSlotLogInfo(ILogInvoker parent, int additional_slots, string admin_username)
|
||||
: base(parent)
|
||||
{
|
||||
m_additional_slots = additional_slots;
|
||||
m_admin_username = admin_username;
|
||||
}
|
||||
}
|
||||
|
||||
public class UgqApiChangeStateLogInfo : ILogInvokerEx.IInfo
|
||||
{
|
||||
[JsonProperty("quest_content_id")]
|
||||
public string m_quest_content_id { get; private set; }
|
||||
|
||||
[JsonProperty("from_state")]
|
||||
public string m_from_state { get; private set; }
|
||||
|
||||
[JsonProperty("to_state")]
|
||||
public string m_to_state { get; private set; }
|
||||
|
||||
[JsonProperty("quest_id")]
|
||||
public long m_quest_id { get; private set; }
|
||||
|
||||
[JsonProperty("revision")]
|
||||
public long m_revision { get; private set; }
|
||||
|
||||
[JsonProperty("admin_username")]
|
||||
public string m_admin_username { get; private set; }
|
||||
|
||||
public UgqApiChangeStateLogInfo(ILogInvoker parent, string quest_content_id,
|
||||
string from_state, string to_state,
|
||||
long quest_id, long revision, string admin_username)
|
||||
: base(parent)
|
||||
{
|
||||
m_quest_content_id = quest_content_id;
|
||||
m_from_state = from_state;
|
||||
m_to_state = to_state;
|
||||
m_quest_id = quest_id;
|
||||
m_revision = revision;
|
||||
m_admin_username = admin_username;
|
||||
}
|
||||
}
|
||||
|
||||
public enum UgqCreatorPointReason
|
||||
{
|
||||
QuestCompleted = 1,
|
||||
Admin = 2,
|
||||
Development = 3,
|
||||
}
|
||||
|
||||
public class UgqApiCreatorPointLogInfo : ILogInvokerEx.IInfo
|
||||
{
|
||||
[JsonProperty("amount")]
|
||||
public double m_amount { get; private set; }
|
||||
|
||||
[JsonProperty("quest_id")]
|
||||
public long m_quest_id { get; private set; }
|
||||
|
||||
[JsonProperty("revision")]
|
||||
public long m_revision { get; private set; }
|
||||
|
||||
[JsonProperty("reason")]
|
||||
public UgqCreatorPointReason m_reason { get; private set; }
|
||||
|
||||
[JsonProperty("admin_username")]
|
||||
public string m_admin_username { get; private set; }
|
||||
|
||||
[JsonProperty("reason_detail")]
|
||||
public string m_reason_detail { get; private set; }
|
||||
|
||||
public UgqApiCreatorPointLogInfo(ILogInvoker parent, double amount,
|
||||
long quest_id, long revision,
|
||||
string admin_username,
|
||||
UgqCreatorPointReason reason, string reason_detail)
|
||||
: base(parent)
|
||||
{
|
||||
m_amount = amount;
|
||||
m_quest_id = quest_id;
|
||||
m_revision = revision;
|
||||
m_admin_username = admin_username;
|
||||
m_reason = reason;
|
||||
m_reason_detail = reason_detail;
|
||||
}
|
||||
}
|
||||
|
||||
public class UgqApiAdminLoginLogInfo : ILogInvokerEx.IInfo
|
||||
{
|
||||
[JsonProperty("username")]
|
||||
public string m_username { get; private set; }
|
||||
|
||||
public UgqApiAdminLoginLogInfo(ILogInvoker parent, string username)
|
||||
: base(parent)
|
||||
{
|
||||
m_username = username;
|
||||
}
|
||||
}
|
||||
|
||||
public class UgqApiEmptyLogInfo : ILogInvokerEx.IInfo
|
||||
{
|
||||
public UgqApiEmptyLogInfo(ILogInvoker parent)
|
||||
: base(parent)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user