提交修改

This commit is contained in:
Bob.Song
2026-03-19 16:14:33 +08:00
parent c2ec7226c0
commit 34070d0769
90 changed files with 3016 additions and 1765 deletions

View File

@@ -678,4 +678,89 @@ namespace Fantasy
[ProtoMember(1)]
public ChatInfoTree ChatInfoTree { get; set; }
}
/// <summary>
/// 其他服务器发送邮件
/// </summary>
////////// ******** 邮件 *******/////////////
public partial class Other2Mail_SendMailRequest : AMessage, IAddressRequest
{
public static Other2Mail_SendMailRequest Create(bool autoReturn = true)
{
var other2Mail_SendMailRequest = MessageObjectPool<Other2Mail_SendMailRequest>.Rent();
other2Mail_SendMailRequest.AutoReturn = autoReturn;
if (!autoReturn)
{
other2Mail_SendMailRequest.SetIsPool(false);
}
return other2Mail_SendMailRequest;
}
public void Return()
{
if (!AutoReturn)
{
SetIsPool(true);
AutoReturn = true;
}
else if (!IsPool())
{
return;
}
Dispose();
}
public void Dispose()
{
if (!IsPool()) return;
MailBox = default;
MessageObjectPool<Other2Mail_SendMailRequest>.Return(this);
}
public uint OpCode() { return InnerOpcode.Other2Mail_SendMailRequest; }
[BsonIgnore]
public Mail2Other_SendMailResponse ResponseType { get; set; }
public MailBox MailBox { get; set; }
}
[Serializable]
[ProtoContract]
public partial class Mail2Other_SendMailResponse : AMessage, IAddressResponse
{
public static Mail2Other_SendMailResponse Create(bool autoReturn = true)
{
var mail2Other_SendMailResponse = MessageObjectPool<Mail2Other_SendMailResponse>.Rent();
mail2Other_SendMailResponse.AutoReturn = autoReturn;
if (!autoReturn)
{
mail2Other_SendMailResponse.SetIsPool(false);
}
return mail2Other_SendMailResponse;
}
public void Return()
{
if (!AutoReturn)
{
SetIsPool(true);
AutoReturn = true;
}
else if (!IsPool())
{
return;
}
Dispose();
}
public void Dispose()
{
if (!IsPool()) return;
ErrorCode = 0;
MessageObjectPool<Mail2Other_SendMailResponse>.Return(this);
}
public uint OpCode() { return InnerOpcode.Mail2Other_SendMailResponse; }
[ProtoMember(1)]
public uint ErrorCode { get; set; }
}
}