94 lines
2.8 KiB
C#
94 lines
2.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
using ServerCore; using ServerBase;
|
|
|
|
|
|
using META_ID = System.UInt32;
|
|
using CHARACTER_GUID = System.String;
|
|
using META_TYPE = System.String;
|
|
|
|
|
|
namespace ServerCommon.BusinessLogDomain;
|
|
|
|
public class CharacterCreateLogInfo : ILogInvoker.IInfo
|
|
{
|
|
[JsonProperty]
|
|
public CHARACTER_GUID CharacterGuid { get; set; } = string.Empty;
|
|
|
|
[JsonProperty]
|
|
public string CharacterPK { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public string CharacterSK { get; set; } = string.Empty;
|
|
|
|
[JsonProperty]
|
|
public META_TYPE CharacterCreateMetaType { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public META_ID CharacterCreateMetaId { get; set; } = 0;
|
|
|
|
[JsonProperty]
|
|
public DateTime CreatedTime { get; set; } = DateTimeHelper.MinTime;
|
|
|
|
//=====================================================================================
|
|
// 로그 생성용 객체 정의
|
|
//=====================================================================================
|
|
public CharacterCreateLogInfo()
|
|
: base()
|
|
{
|
|
}
|
|
|
|
public void setInfo(CharacterCreateLogInfo logInfo)
|
|
{
|
|
ArgumentNullReferenceCheckHelper.throwIfNull(logInfo, () => $"logInfo is null !!!");
|
|
|
|
CharacterGuid = logInfo.CharacterGuid;
|
|
CharacterPK = logInfo.CharacterPK;
|
|
CharacterSK = logInfo.CharacterSK;
|
|
|
|
CharacterCreateMetaType = logInfo.CharacterCreateMetaType;
|
|
CharacterCreateMetaId = logInfo.CharacterCreateMetaId;
|
|
|
|
CreatedTime = logInfo.CreatedTime;
|
|
}
|
|
|
|
//=====================================================================================
|
|
// 로그 출력용 객체 정의
|
|
//=====================================================================================
|
|
public CharacterCreateLogInfo(ILogInvoker parent, DateTime processTime, CharacterCreateLogInfo logParam)
|
|
: base(parent)
|
|
{
|
|
if (null != logParam)
|
|
{
|
|
setInfo(logParam);
|
|
|
|
CreatedTime = processTime;
|
|
}
|
|
}
|
|
|
|
//=====================================================================================
|
|
// 로그 설정용 함수
|
|
//=====================================================================================
|
|
public void setLogProperty( CHARACTER_GUID charGuid
|
|
, string charPK, string charSK
|
|
, META_TYPE charCreateMetaType
|
|
, META_ID charCreateMetaId
|
|
, DateTime createdTime )
|
|
{
|
|
CharacterGuid = charGuid;
|
|
CharacterPK = charPK;
|
|
CharacterSK = charSK;
|
|
|
|
CharacterCreateMetaType = charCreateMetaType;
|
|
CharacterCreateMetaId = charCreateMetaId;
|
|
|
|
CreatedTime = createdTime;
|
|
}
|
|
}
|