军团:减少getGuildMember的返回数据

This commit is contained in:
luying
2022-01-25 17:49:24 +08:00
parent 36693f58b2
commit b67e4448df
2 changed files with 47 additions and 7 deletions
+40
View File
@@ -7,6 +7,7 @@ import { EXTERIOR } from "../../pubUtils/dicParam";
import { HeroType } from "../../db/Hero";
import { PvpDefenseType } from "../../db/PvpDefense";
import { PvpHistoryOppType } from "../../db/PvpHistoryOpp";
import { UserGuildType } from "../../db/UserGuild";
export class PlayerDetailHero {
actorId: number;
@@ -185,3 +186,42 @@ export class GuildListInfo extends GuildMainInfo {
this.hasApply = hasApply;
}
}
export class GuildMemberParam {
roleId: string;
roleName: string;
ce: number;
head: number = EXTERIOR.EXTERIOR_FACE;
frame: number = EXTERIOR.EXTERIOR_FACECASE;
spine: number = EXTERIOR.EXTERIOR_APPEARANCE;
lv: number;
title: number = 1;
job: number;
quitTime: number;
isOnline: boolean;
auth?: number;
activeWeekly?: number;
activeUpdateTime?: number;
constructor(userGuild: UserGuildType, role: RoleType) {
this.roleId = role.roleId;
this.roleName = role.roleName;
this.ce = role.ce;
this.head = role.head;
this.frame = role.frame;
this.spine = role.spine;
this.lv = role.lv;
this.title = role.title;
this.quitTime = role.quitTime;
this.job = userGuild.job;
this.auth = userGuild.auth;
this.activeWeekly = userGuild.activeWeekly;
this.activeUpdateTime = userGuild.activeUpdateTime;
}
setOnline(isOnline: boolean) {
this.isOnline = isOnline;
}
}