40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
|
using System.Collections.Generic;
|
||
|
|
||
|
public class ResponseData<T>
|
||
|
{
|
||
|
public int status;
|
||
|
public string message;
|
||
|
public T data;
|
||
|
}
|
||
|
|
||
|
[System.Serializable]
|
||
|
public class MsgGateLoginReq
|
||
|
{
|
||
|
public uint Platform; // 客户端平台(暂时无用, 保留字段)
|
||
|
public uint Channel; // 登录渠道
|
||
|
public string Device; // 设备信息 (可空)
|
||
|
public string Version; // 客户端版本
|
||
|
public string Username; // 用户名 (可空)
|
||
|
public string Password; // 密码 (可空)
|
||
|
public string Token; // 第三方登录的TOKEN (可空)
|
||
|
}
|
||
|
|
||
|
[System.Serializable]
|
||
|
public class GameServer
|
||
|
{
|
||
|
public uint Id; // 服务器ID
|
||
|
public string Area; // 大区
|
||
|
public string Name; // 名称
|
||
|
public string Address; // 地址
|
||
|
public uint Online; // 在线人数
|
||
|
}
|
||
|
|
||
|
[System.Serializable]
|
||
|
public class MsgGateLoginAck
|
||
|
{
|
||
|
public string Token; // 用户TOKEN
|
||
|
public ulong UserId; // 用户ID
|
||
|
public string Username; // 用户名
|
||
|
public uint RecentServer; // 最近登录的服务器ID
|
||
|
public List<GameServer> ServerList; // 服务器列表
|
||
|
}
|