好友:list添加类型返回
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user