60 lines
1.6 KiB
C#
60 lines
1.6 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;
|
|
|
|
|
|
namespace ServerCommon.BusinessLogDomain
|
|
{
|
|
public class ShopLogData : ILogInvoker.IInfo
|
|
{
|
|
public ShopLogData()
|
|
: base()
|
|
{ }
|
|
|
|
[JsonProperty]
|
|
public META_ID ShopMId { get; set; } = 0;
|
|
[JsonProperty]
|
|
public META_ID ProductMId { get; set; } = 0;
|
|
[JsonProperty]
|
|
public Int32 ProductCount { get; set; } = 0;
|
|
[JsonProperty]
|
|
public DateTime TransactTime { get; set; } = DateTimeHelper.Current;
|
|
|
|
|
|
//=====================================================================================
|
|
// 로그 생성용 객체 정의
|
|
//=====================================================================================
|
|
|
|
public void setInfo(ShopLogData logInfo)
|
|
{
|
|
ShopMId = logInfo.ShopMId;
|
|
ProductMId = logInfo.ProductMId;
|
|
ProductCount = logInfo.ProductCount;
|
|
TransactTime = logInfo.TransactTime;
|
|
}
|
|
|
|
//=====================================================================================
|
|
// 로그 출력용 객체 정의
|
|
//=====================================================================================
|
|
public ShopLogData(ILogInvoker parent, ShopLogData logParam)
|
|
: base(parent)
|
|
{
|
|
if (null != logParam)
|
|
{
|
|
setInfo(logParam);
|
|
}
|
|
}
|
|
}
|
|
}
|