mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
using SqlSugar;
|
|
|
|
namespace EggLink.DanhengServer.Database.Friend;
|
|
|
|
[SugarTable("Friend")]
|
|
public class FriendData : BaseDatabaseDataHelper
|
|
{
|
|
|
|
[SugarColumn(IsJson = true, ColumnDataType = "TEXT")]
|
|
public Dictionary<int, FriendDetailData> FriendDetailList { get; set; } = [];
|
|
|
|
|
|
[SugarColumn(IsJson = true, ColumnDataType = "TEXT")]
|
|
public List<FriendDetailData> FriendList { get; set; } = []; // leave for compatibility
|
|
|
|
[SugarColumn(IsJson = true)] public List<int> BlackList { get; set; } = [];
|
|
|
|
[SugarColumn(IsJson = true)] public List<int> SendApplyList { get; set; } = [];
|
|
|
|
[SugarColumn(IsJson = true)] public List<int> ReceiveApplyList { get; set; } = [];
|
|
|
|
[SugarColumn(IsJson = true, ColumnDataType = "TEXT")]
|
|
public Dictionary<int, FriendChatHistory> ChatHistory { get; set; } = []; // key: friend uid
|
|
}
|
|
|
|
public class FriendDetailData
|
|
{
|
|
public bool IsMark { get; set; }
|
|
public string RemarkName { get; set; } = "";
|
|
}
|
|
|
|
public class FriendChatHistory
|
|
{
|
|
public List<FriendChatData> MessageList { get; set; } = [];
|
|
}
|
|
|
|
public class FriendChatData
|
|
{
|
|
public long SendTime { get; set; }
|
|
public string Message { get; set; } = "";
|
|
public int ExtraId { get; set; }
|
|
public int SendUid { get; set; }
|
|
public int ReceiveUid { get; set; }
|
|
} |