好友:当天申请过好友的不再在邀请列表显示
This commit is contained in:
@@ -42,6 +42,13 @@ export default class FriendApply extends BaseModel {
|
||||
return list;
|
||||
}
|
||||
|
||||
// 获取自己发出的申请列表
|
||||
public static async getSentApplyList(roleId: string, time: Date) {
|
||||
const list: FriendApplyType[] = await FriendApplyModel.find({ frdRoleId: roleId, createdAt: { $gt: time } }, { _id: 0 })
|
||||
.lean({ getters: true });
|
||||
return list;
|
||||
}
|
||||
|
||||
// 根据applyCode获得申请
|
||||
public static async getApplyListByCode(applyCodeList: string[]) {
|
||||
const list: FriendApplyType[] = await FriendApplyModel.find({ applyCode: { $in: applyCodeList } }, { _id: 0 })
|
||||
|
||||
Reference in New Issue
Block a user