48 lines
1.4 KiB
C#
48 lines
1.4 KiB
C#
using Newtonsoft.Json;
|
|
|
|
using ServerBase;
|
|
|
|
using META_ID = System.UInt32;
|
|
|
|
namespace ServerCommon.BusinessLogDomain;
|
|
|
|
public class PackageLastOrderRecordData : ILogInvoker.IInfo
|
|
{
|
|
public PackageLastOrderRecordData()
|
|
: base()
|
|
{ }
|
|
|
|
[JsonProperty]
|
|
public string orderGuid { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public META_ID productMetaId { get; set; } = 0;
|
|
[JsonProperty]
|
|
public DateTime buyDateTime { get; set; } = new();
|
|
[JsonProperty]
|
|
public DateTime provideTime { get; set; } = new();
|
|
|
|
//=====================================================================================
|
|
// 로그 생성용 객체 정의
|
|
//=====================================================================================
|
|
|
|
public void setItemInfo(PackageLastOrderRecordData logData)
|
|
{
|
|
orderGuid = logData.orderGuid;
|
|
productMetaId = logData.productMetaId;
|
|
buyDateTime = logData.buyDateTime;
|
|
provideTime = logData.provideTime;
|
|
}
|
|
|
|
//=====================================================================================
|
|
// 로그 출력용 객체 정의
|
|
//=====================================================================================
|
|
public PackageLastOrderRecordData(ILogInvoker parent, PackageLastOrderRecordData itemParam)
|
|
: base(parent)
|
|
{
|
|
if (null != itemParam)
|
|
{
|
|
setItemInfo(itemParam);
|
|
}
|
|
}
|
|
}
|