好友:list添加类型返回

This commit is contained in:
luying
2021-02-06 11:15:18 +08:00
parent 9a71f6258a
commit d9bea0444c
2 changed files with 16 additions and 4 deletions

View File

@@ -12,6 +12,7 @@ export class FriendParams {
title: number;
serverId: number;
serverName: string;
type: number;
constructor(role: RoleType) {
this.roleId = role.roleId;
@@ -27,12 +28,15 @@ export class FriendParams {
this.serverId = serverId;
this.serverName = serverName;
}
setType(type: number) {
this.type = type;
}
}
export class FriendRecommendParams extends FriendParams {
friendCnt: number = 0;
recFrdApplyCnt: number = 0;
type: number;
constructor(role: RoleType) {
super(role);
@@ -40,9 +44,6 @@ export class FriendRecommendParams extends FriendParams {
if(role.recFrdApplyCnt) this.recFrdApplyCnt = role.recFrdApplyCnt;
}
setType(type: number) {
this.type = type;
}
}
export class FriendApplyParams extends FriendParams {