完成离线消息发送和上线获取离线消息

This commit is contained in:
2025-08-13 23:44:59 +08:00
parent f8b876ca2f
commit 022cc1ac3e
39 changed files with 499 additions and 85 deletions

View File

@@ -50,22 +50,22 @@ namespace Fantasy
/// 请求创建工会
/// </summary>
[ProtoContract]
public partial class C2S_CreateRequest : AMessage, ICustomRouteRequest, IProto
public partial class C2S_CreateClubRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_CreateRequest Create(Scene scene)
public static C2S_CreateClubRequest Create(Scene scene)
{
return scene.MessagePoolComponent.Rent<C2S_CreateRequest>();
return scene.MessagePoolComponent.Rent<C2S_CreateClubRequest>();
}
public override void Dispose()
{
Name = default;
#if FANTASY_NET || FANTASY_UNITY
GetScene().MessagePoolComponent.Return<C2S_CreateRequest>(this);
GetScene().MessagePoolComponent.Return<C2S_CreateClubRequest>(this);
#endif
}
[ProtoIgnore]
public Caht2C_GetChatRecordResponse ResponseType { get; set; }
public uint OpCode() { return OuterOpcode.C2S_CreateRequest; }
public S2C_CreateClubResponse ResponseType { get; set; }
public uint OpCode() { return OuterOpcode.C2S_CreateClubRequest; }
[ProtoIgnore]
public int RouteType => Fantasy.RouteType.SocialRoute;
[ProtoMember(1)]
@@ -75,21 +75,21 @@ namespace Fantasy
/// 创建工会响应
/// </summary>
[ProtoContract]
public partial class S2C_CreateResponse : AMessage, ICustomRouteResponse, IProto
public partial class S2C_CreateClubResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_CreateResponse Create(Scene scene)
public static S2C_CreateClubResponse Create(Scene scene)
{
return scene.MessagePoolComponent.Rent<S2C_CreateResponse>();
return scene.MessagePoolComponent.Rent<S2C_CreateClubResponse>();
}
public override void Dispose()
{
ErrorCode = default;
Club = default;
#if FANTASY_NET || FANTASY_UNITY
GetScene().MessagePoolComponent.Return<S2C_CreateResponse>(this);
GetScene().MessagePoolComponent.Return<S2C_CreateClubResponse>(this);
#endif
}
public uint OpCode() { return OuterOpcode.S2C_CreateResponse; }
public uint OpCode() { return OuterOpcode.S2C_CreateClubResponse; }
[ProtoMember(1)]
public ClubInfo Club { get; set; }
[ProtoMember(2)]