好友:一键申请提示
This commit is contained in:
@@ -21,11 +21,30 @@ export class FriendParams {
|
||||
}
|
||||
}
|
||||
|
||||
export class FriendRecommendParams extends FriendParams {
|
||||
friendCnt: number = 0;
|
||||
recFrdApplyCnt: number = 0;
|
||||
type: number;
|
||||
|
||||
constructor(role: RoleType) {
|
||||
super(role);
|
||||
if(role.friendCnt) this.friendCnt = role.friendCnt;
|
||||
if(role.recFrdApplyCnt) this.recFrdApplyCnt = role.recFrdApplyCnt;
|
||||
}
|
||||
|
||||
setType(type: number) {
|
||||
this.type = type;
|
||||
}
|
||||
}
|
||||
|
||||
export class FriendApplyParams extends FriendParams {
|
||||
applyCode: string;
|
||||
friendCnt: number = 0;
|
||||
|
||||
constructor(applyCode: string, role: RoleType) {
|
||||
super(role);
|
||||
this.applyCode = applyCode;
|
||||
if(role.friendCnt) this.friendCnt = role.friendCnt;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,8 +54,8 @@ export class FriendListParam extends FriendParams {
|
||||
quitTime: number = 0;
|
||||
friendValue: number = 0;
|
||||
friendLv: number = 1;
|
||||
canReceive: boolean = false;
|
||||
canSend: boolean = false;
|
||||
canReceive: boolean = false; // 初始没人送肯定不能领取
|
||||
canSend: boolean = true; // 初始可以赠送
|
||||
|
||||
constructor(role: RoleType, friendship: FriendShipType) {
|
||||
super(role);
|
||||
|
||||
Reference in New Issue
Block a user