초기커밋
This commit is contained in:
60
ServerCommon/1. Define/BusinessLog/Domain/UserReportData.cs
Normal file
60
ServerCommon/1. Define/BusinessLog/Domain/UserReportData.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
using ServerBase;
|
||||
|
||||
namespace ServerCommon.BusinessLogDomain;
|
||||
|
||||
public class UserReportLogData : ILogInvoker.IInfo
|
||||
{
|
||||
public UserReportLogData()
|
||||
: base()
|
||||
{ }
|
||||
|
||||
[JsonProperty]
|
||||
public string ReporterGuid { get; set; } = string.Empty;
|
||||
[JsonProperty]
|
||||
public string ReporterNickName { get; set; } = string.Empty;
|
||||
[JsonProperty]
|
||||
public string TargetGuid { get; set; } = string.Empty;
|
||||
[JsonProperty]
|
||||
public string TargetNickName { get; set; } = string.Empty;
|
||||
[JsonProperty]
|
||||
public string Reason { get; set; } = string.Empty;
|
||||
[JsonProperty]
|
||||
public string Title { get; set; } = string.Empty;
|
||||
[JsonProperty]
|
||||
public string Detail { get; set; } = string.Empty;
|
||||
[JsonProperty]
|
||||
public int State { get; set; } = 0;
|
||||
[JsonProperty]
|
||||
public DateTime CreateTime { get; set; } = new();
|
||||
|
||||
//=====================================================================================
|
||||
// 로그 생성용 객체 정의
|
||||
//=====================================================================================
|
||||
|
||||
public void setItemInfo(UserReportLogData logData)
|
||||
{
|
||||
ReporterGuid = logData.ReporterGuid;
|
||||
ReporterNickName = logData.ReporterNickName;
|
||||
TargetGuid = logData.TargetGuid;
|
||||
TargetNickName = logData.TargetNickName;
|
||||
Reason = logData.Reason;
|
||||
Title = logData.Title;
|
||||
Detail = logData.Detail;
|
||||
State = logData.State;
|
||||
CreateTime = logData.CreateTime;
|
||||
}
|
||||
|
||||
//=====================================================================================
|
||||
// 로그 출력용 객체 정의
|
||||
//=====================================================================================
|
||||
public UserReportLogData(ILogInvoker parent, UserReportLogData itemParam)
|
||||
: base(parent)
|
||||
{
|
||||
if (null != itemParam)
|
||||
{
|
||||
setItemInfo(itemParam);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user