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