登录:服务器列表排序

This commit is contained in:
luying
2021-03-05 18:50:58 +08:00
parent 9b533b54a3
commit 1479c66f14
2 changed files with 9 additions and 2 deletions

View File

@@ -27,13 +27,13 @@ export class ServerParam {
export class GroupParam {
groupId: number; // 大区号
groupName: string; // 大区名
serverStr: string; // 大区内小区编号 S1-S10
groupStr: string; // 大区内小区编号 S1-S10
servers: ServerParam[]; // 区
constructor(server: ServerInfo) {
this.groupId = server.groupId;
this.groupName = server.groupName;
this.serverStr = `S${server.id}-S${server.id + 9}`;
this.groupStr = `S${server.id}-S${server.id + 9}`;
this.servers = new Array<ServerParam>();
}
@@ -52,6 +52,7 @@ export class ServerParamWithRole extends ServerParam {
headHid: number; // 头像
sHid: number; // 形象
lv: number; // 等级
updatedAt: Date;
constructor(role: RoleType, server: ServerInfo) {
super(server);
@@ -63,5 +64,6 @@ export class ServerParamWithRole extends ServerParam {
this.headHid = role.headHid;
this.sHid = role.sHid;
this.lv = role.lv;
this.updatedAt = role.updatedAt;
}
}