形象:头像相框形象字段

This commit is contained in:
luying
2021-03-11 19:29:50 +08:00
parent b2566f3fb6
commit 09a7a8b89b
30 changed files with 290 additions and 166 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ export default class FriendApply extends BaseModel {
const list: FriendApplyType[] = await FriendApplyModel.find({ roleId }, { _id: 0 })
// .select(select)
.populate('friend', ROLE_SELECT.SHOW_FRIEND_APPLY_LIST, 'Role')
.lean({ getters: true });
.lean({ getters: true, virtuals: true });
return list;
}
@@ -54,7 +54,7 @@ export default class FriendApply extends BaseModel {
const list: FriendApplyType[] = await FriendApplyModel.find({ applyCode: { $in: applyCodeList } }, { _id: 0 })
// .select(select)
.populate('friend', ROLE_SELECT.SHOW_FRIEND_APPLY_LIST, 'Role')
.lean({ getters: true });
.lean({ getters: true, virtuals: true });
return list;
}