초기커밋
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
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 USER_GUID = System.String;
|
||||
using META_TYPE = System.String;
|
||||
|
||||
|
||||
namespace ServerCommon.BusinessLogDomain
|
||||
{
|
||||
public class UserInitialLogInfo : ILogInvoker.IInfo
|
||||
{
|
||||
[JsonProperty]
|
||||
public USER_GUID UserGuid { get; set; } = string.Empty;
|
||||
|
||||
[JsonProperty]
|
||||
public string UserPK { get; set; } = string.Empty;
|
||||
[JsonProperty]
|
||||
public string UserSK { get; set; } = string.Empty;
|
||||
|
||||
[JsonProperty]
|
||||
public META_TYPE UserInitialMetaType { get; set; } = string.Empty;
|
||||
[JsonProperty]
|
||||
public META_ID UserInitialMetaId { get; set; } = 0;
|
||||
|
||||
//=====================================================================================
|
||||
// 로그 생성용 객체 정의
|
||||
//=====================================================================================
|
||||
public UserInitialLogInfo()
|
||||
: base()
|
||||
{
|
||||
}
|
||||
|
||||
public void setInfo(UserInitialLogInfo logInfo)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(logInfo, $"logInfo is null !!!");
|
||||
|
||||
UserGuid = logInfo.UserGuid;
|
||||
UserPK = logInfo.UserPK;
|
||||
UserSK = logInfo.UserSK;
|
||||
|
||||
UserInitialMetaType = logInfo.UserInitialMetaType;
|
||||
UserInitialMetaId = logInfo.UserInitialMetaId;
|
||||
}
|
||||
|
||||
//=====================================================================================
|
||||
// 로그 출력용 객체 정의
|
||||
//=====================================================================================
|
||||
public UserInitialLogInfo(ILogInvoker parent, UserInitialLogInfo logInfo)
|
||||
: base(parent)
|
||||
{
|
||||
if (null != logInfo)
|
||||
{
|
||||
setInfo(logInfo);
|
||||
}
|
||||
}
|
||||
|
||||
//=====================================================================================
|
||||
// 로그 설정용 함수
|
||||
//=====================================================================================
|
||||
public void setLogProperty( USER_GUID userGuid
|
||||
, string userPK, string userSK
|
||||
, META_TYPE userInitialMetaType
|
||||
, META_ID userCreateMetaId )
|
||||
{
|
||||
UserGuid = userGuid;
|
||||
UserPK = userPK;
|
||||
UserSK = userSK;
|
||||
|
||||
UserInitialMetaType = userInitialMetaType;
|
||||
UserInitialMetaId = userCreateMetaId;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user