초기커밋

This commit is contained in:
2025-05-01 07:20:41 +09:00
commit 98bb2e3c5c
2747 changed files with 646947 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
using ServerCore; using ServerBase;
using ThirdParty.Json.LitJson;
namespace ServerCommon.BusinessLogDomain;
public class VoteResult
{
[JsonProperty] public int Agree { get; set; } = 0;
[JsonProperty] public int DisAgree { get; set; } = 0;
[JsonProperty] public int Abstain { get; set; } = 0;
}
public class PartyVoteLogData : ILogInvoker.IInfo
{
[JsonProperty] public string PartyGuid { get; set; } = string.Empty;
[JsonProperty] public string VoteTitle { get; set; } = string.Empty;
[JsonProperty] public DateTime StartVoteTime { get; set; } = DateTimeHelper.Current;
[JsonProperty] public DateTime EndVoteTime { get; set; }
[JsonProperty] public VoteResult VoteResult { get; set; } = new();
public PartyVoteLogData()
: base()
{ }
public PartyVoteLogData(ILogInvoker parent, PartyVoteLogData logParam)
: base(parent)
{
if (null != logParam)
{
setPartyInfo(logParam);
}
}
public void setPartyInfo(PartyVoteLogData logData)
{
PartyGuid = logData.PartyGuid;
VoteTitle = logData.VoteTitle;
StartVoteTime = logData.StartVoteTime;
EndVoteTime = logData.EndVoteTime;
VoteResult = logData.VoteResult;
}
}