新增邮件显示已读未读功能
This commit is contained in:
@@ -671,6 +671,11 @@ const emailService = {
|
||||
async physicsDeleteByAccountId(c, accountId) {
|
||||
await attService.removeByAccountId(c, accountId);
|
||||
await orm(c).delete(email).where(eq(email.accountId, accountId)).run();
|
||||
},
|
||||
|
||||
async read(c, params, userId) {
|
||||
const { emailIds } = params;
|
||||
await orm(c).update(email).set({ unread: emailConst.unread.READ }).where(and(eq(email.userId, userId), inArray(email.emailId, emailIds)));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user