초기커밋
This commit is contained in:
53
ServerCommon/1. Define/BusinessLog/Domain/MailExpiredData.cs
Normal file
53
ServerCommon/1. Define/BusinessLog/Domain/MailExpiredData.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
|
||||
using ServerBase;
|
||||
|
||||
|
||||
namespace ServerCommon.BusinessLogDomain;
|
||||
|
||||
public class MailExpiredLogData : ILogInvoker.IInfo
|
||||
{
|
||||
public MailExpiredLogData()
|
||||
: base()
|
||||
{ }
|
||||
|
||||
[JsonProperty]
|
||||
public string OrderGuid { get; set; } = string.Empty;
|
||||
[JsonProperty]
|
||||
public int ProductMetaId { get; set; } = 0;
|
||||
[JsonProperty]
|
||||
public DateTime NextGiveTime { get; set; } = new();
|
||||
[JsonProperty]
|
||||
public DateTime ExpireTime { get; set; } = new();
|
||||
[JsonProperty]
|
||||
public DateTime CurrencyTime { get; set; } = new();
|
||||
[JsonProperty]
|
||||
public int RepeatLeftCount { get; set; } = 0;
|
||||
|
||||
//=====================================================================================
|
||||
// 로그 생성용 객체 정의
|
||||
//=====================================================================================
|
||||
|
||||
public void setItemInfo(MailExpiredLogData logData)
|
||||
{
|
||||
OrderGuid = logData.OrderGuid;
|
||||
ProductMetaId = logData.ProductMetaId;
|
||||
NextGiveTime = logData.NextGiveTime;
|
||||
ExpireTime = logData.ExpireTime;
|
||||
CurrencyTime = logData.CurrencyTime;
|
||||
RepeatLeftCount = logData.RepeatLeftCount;
|
||||
}
|
||||
|
||||
//=====================================================================================
|
||||
// 로그 출력용 객체 정의
|
||||
//=====================================================================================
|
||||
public MailExpiredLogData(ILogInvoker parent, MailExpiredLogData itemParam)
|
||||
: base(parent)
|
||||
{
|
||||
if (null != itemParam)
|
||||
{
|
||||
setItemInfo(itemParam);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user