注册登录Demo

注册登录Demo
This commit is contained in:
ALEXTANG
2023-07-16 00:57:20 +08:00
parent c178f8bb75
commit c6ecb48944
17 changed files with 350 additions and 22 deletions

View File

@@ -152,6 +152,33 @@ namespace TEngine
[ProtoMember(91, IsRequired = true)]
public int ErrorCode { get; set; }
[ProtoMember(1)]
public uint UID { get; set; }
[ProtoMember(2)]
public string Text { get; set; }
}
/// <summary>
/// 客户端发送消息请求注册账户
/// </summary>
[ProtoContract]
public partial class H_C2G_RegisterRequest : AProto, IRequest
{
[ProtoIgnore]
public H_G2C_RegisterResponse ResponseType { get; set; }
public uint OpCode() { return OuterOpcode.H_C2G_RegisterRequest; }
[ProtoMember(1)]
public string UserName { get; set; }
[ProtoMember(2)]
public string Password { get; set; }
[ProtoMember(3)]
public uint SDKUID { get; set; }
}
[ProtoContract]
public partial class H_G2C_RegisterResponse : AProto, IResponse
{
public uint OpCode() { return OuterOpcode.H_G2C_RegisterResponse; }
[ProtoMember(91, IsRequired = true)]
public int ErrorCode { get; set; }
[ProtoMember(1)]
public uint UID { get; set; }
}
}