|
| 1 | +// ========================================================================================== |
| 2 | +// GameFrameX 组织及其衍生项目的版权、商标、专利及其他相关权利 |
| 3 | +// GameFrameX organization and its derivative projects' copyrights, trademarks, patents, and related rights |
| 4 | +// 均受中华人民共和国及相关国际法律法规保护。 |
| 5 | +// are protected by the laws of the People's Republic of China and relevant international regulations. |
| 6 | +// 使用本项目须严格遵守相应法律法规及开源许可证之规定。 |
| 7 | +// Usage of this project must strictly comply with applicable laws, regulations, and open-source licenses. |
| 8 | +// 本项目采用 MIT 许可证与 Apache License 2.0 双许可证分发, |
| 9 | +// This project is dual-licensed under the MIT License and Apache License 2.0, |
| 10 | +// 完整许可证文本请参见源代码根目录下的 LICENSE 文件。 |
| 11 | +// please refer to the LICENSE file in the root directory of the source code for the full license text. |
| 12 | +// 禁止利用本项目实施任何危害国家安全、破坏社会秩序、 |
| 13 | +// It is prohibited to use this project to engage in any activities that endanger national security, disrupt social order, |
| 14 | +// 侵犯他人合法权益等法律法规所禁止的行为! |
| 15 | +// or infringe upon the legitimate rights and interests of others, as prohibited by laws and regulations! |
| 16 | +// 因基于本项目二次开发所产生的一切法律纠纷与责任, |
| 17 | +// Any legal disputes and liabilities arising from secondary development based on this project |
| 18 | +// 本项目组织与贡献者概不承担。 |
| 19 | +// shall be borne solely by the developer; the project organization and contributors assume no responsibility. |
| 20 | +// GitHub 仓库:https://github.com/GameFrameX |
| 21 | +// GitHub Repository: https://github.com/GameFrameX |
| 22 | +// Gitee 仓库:https://gitee.com/GameFrameX |
| 23 | +// Gitee Repository: https://gitee.com/GameFrameX |
| 24 | +// CNB 仓库:https://cnb.cool/GameFrameX |
| 25 | +// CNB Repository: https://cnb.cool/GameFrameX |
| 26 | +// 官方文档:https://gameframex.doc.alianblank.com/ |
| 27 | +// Official Documentation: https://gameframex.doc.alianblank.com/ |
| 28 | +// ========================================================================================== |
| 29 | + |
| 30 | +namespace GameFrameX.Apps.Player.Friend.Entity; |
| 31 | + |
| 32 | +/// <summary> |
| 33 | +/// 好友关系状态。 |
| 34 | +/// 存储两个玩家之间的好友关系,采用双向存储设计(PlayerIdA < PlayerIdB 确保唯一性)。 |
| 35 | +/// </summary> |
| 36 | +public sealed class FriendRelationState : CacheState |
| 37 | +{ |
| 38 | + /// <summary> |
| 39 | + /// 玩家A的ID(较小者作为主键的一部分,确保同一对玩家只有一条记录) |
| 40 | + /// </summary> |
| 41 | + public long PlayerIdA { get; set; } |
| 42 | + |
| 43 | + /// <summary> |
| 44 | + /// 玩家B的ID |
| 45 | + /// </summary> |
| 46 | + public long PlayerIdB { get; set; } |
| 47 | + |
| 48 | + /// <summary> |
| 49 | + /// 关系创建时间 |
| 50 | + /// </summary> |
| 51 | + public DateTime CreateTime { get; set; } |
| 52 | + |
| 53 | + /// <summary> |
| 54 | + /// 创建者ID(发起加好友的那个人) |
| 55 | + /// </summary> |
| 56 | + public long CreatedBy { get; set; } |
| 57 | + |
| 58 | + /// <summary> |
| 59 | + /// 关系状态:0=正常,1=被删除 |
| 60 | + /// </summary> |
| 61 | + public int Status { get; set; } |
| 62 | +} |
0 commit comments