feat: 邮件通知

This commit is contained in:
xiaojunnuo
2023-06-25 15:30:18 +08:00
parent 64afebecd4
commit 937e3fac19
32 changed files with 790 additions and 88 deletions

View File

@@ -187,14 +187,19 @@ export abstract class BaseService<T> {
return await qb.getMany();
}
async checkUserId(id = 0, userId, userKey = 'userId') {
async checkUserId(
id: any = 0,
userId,
userKey = 'userId',
queryIdKey = 'id'
) {
// @ts-ignore
const res = await this.getRepository().findOne({
// @ts-ignore
select: { [userKey]: true },
// @ts-ignore
where: {
// @ts-ignore
id,
[queryIdKey]: id,
},
});
// @ts-ignore