注册登录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; }
}
}

View File

@@ -16,5 +16,7 @@ namespace TEngine
public const int H_M2C_ReceiveAddressMessageToServer = 190000003;
public const int H_C2G_LoginRequest = 110000003;
public const int H_G2C_LoginResponse = 160000003;
public const int H_C2G_RegisterRequest = 110000004;
public const int H_G2C_RegisterResponse = 160000004;
}
}