초기커밋
This commit is contained in:
66
ServerCommon/Doc/OwnerContents/CharacterProfileDoc.cs
Normal file
66
ServerCommon/Doc/OwnerContents/CharacterProfileDoc.cs
Normal file
@@ -0,0 +1,66 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
|
||||
|
||||
namespace ServerCommon;
|
||||
|
||||
public class CharacterProfileAttrib : AttribBase
|
||||
{
|
||||
[JsonProperty]
|
||||
public string SNSLick { get; set; } = string.Empty;
|
||||
[JsonProperty]
|
||||
public string Message { get; set; } = string.Empty;
|
||||
|
||||
public CharacterProfileAttrib()
|
||||
: base(typeof(CharacterProfileAttrib).Name)
|
||||
{ }
|
||||
}
|
||||
|
||||
//=============================================================================================
|
||||
// PK(Partition Key) : "character_profile#user_guid"
|
||||
// SK(Sort Key) : ""
|
||||
// DocType : CharacterProfileDoc
|
||||
// CharacterProfileAttrib : {}
|
||||
// ...
|
||||
//=============================================================================================
|
||||
public class CharacterProfileDoc : DynamoDbDocBase
|
||||
{
|
||||
private static string getPrefixOfPK() { return "character_profile#"; }
|
||||
|
||||
public CharacterProfileDoc()
|
||||
: base(typeof(CharacterProfileDoc).Name)
|
||||
{
|
||||
appendAttribWrapperAll();
|
||||
}
|
||||
|
||||
public CharacterProfileDoc(string ownerGuid)
|
||||
: base(typeof(CharacterProfileDoc).Name)
|
||||
{
|
||||
setCombinationKeyForPK(ownerGuid);
|
||||
|
||||
appendAttribWrapperAll();
|
||||
|
||||
fillUpPrimaryKey(onMakePK(), onMakeSK());
|
||||
}
|
||||
|
||||
private void appendAttribWrapperAll()
|
||||
{
|
||||
appendAttribWrapper(new AttribWrapper<CharacterProfileAttrib>());
|
||||
}
|
||||
|
||||
protected override string onGetPrefixOfPK()
|
||||
{
|
||||
return getPrefixOfPK();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user