초기커밋
This commit is contained in:
60
ServerCommon/z.Backup/CharMetaDataEntity.cs
Normal file
60
ServerCommon/z.Backup/CharMetaDataEntity.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
//using System;
|
||||
//using Amazon.DynamoDBv2.DocumentModel;
|
||||
//using System.Collections.Generic;
|
||||
//using System.Linq;
|
||||
//using System.Text;
|
||||
//using System.Threading.Tasks;
|
||||
//using System.Collections.Concurrent;
|
||||
//using Newtonsoft.Json;
|
||||
//using ServerCore; using ServerBase;
|
||||
|
||||
//namespace ServerCommon.DB
|
||||
//{
|
||||
// public class CharMetaDataAttr
|
||||
// {
|
||||
// public int MailSendCount = 0;
|
||||
// public long MailSendUpdateDay = 0;
|
||||
// public int LastGetSystemMailId = 0;
|
||||
// public List<ChatTapInfo> chatTapInfoList = new();
|
||||
// }
|
||||
|
||||
// public class CharMetaDataEntity
|
||||
// {
|
||||
// public string PK_Guid { get; private set; } = string.Empty;
|
||||
// public string SK_Empty { get; private set; } = string.Empty;
|
||||
|
||||
// public CharMetaDataAttr Attr { get; private set; } = new();
|
||||
|
||||
// public CharMetaDataEntity() { }
|
||||
|
||||
// public CharMetaDataEntity(Document document)
|
||||
// {
|
||||
// ReadFrom(document);
|
||||
// }
|
||||
|
||||
// public bool ReadFrom(Document document)
|
||||
// {
|
||||
// PK_Guid = document["PK"].AsString().Replace(MainDB.GetPKPrefix(EEntityType.CharMetaData), "");
|
||||
// SK_Empty = document["SK"].AsString().Replace(MainDB.GetSKPrefix(EEntityType.CharMetaData), "");
|
||||
|
||||
// CharMetaDataAttr? attr = JsonConvert.DeserializeObject<CharMetaDataAttr>(document["Attr"].AsString());
|
||||
// if (attr == null)
|
||||
// {
|
||||
// Log.getLogger().error($"{PK_Guid} Attr DeserializeObject error");
|
||||
// return false;
|
||||
// }
|
||||
|
||||
// Attr = attr;
|
||||
// return true;
|
||||
// }
|
||||
|
||||
// public Document DocumentForUpdate()
|
||||
// {
|
||||
// var document = new Document();
|
||||
// document["PK"] = MainDB.MakePK(EEntityType.CharMetaData, PK_Guid);
|
||||
// document["SK"] = MainDB.MakeSK(EEntityType.CharMetaData, SK_Empty);
|
||||
// document["Attr"] = JsonConvert.SerializeObject(Attr);
|
||||
// return document;
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
Reference in New Issue
Block a user