mirror of
https://github.com/certd/certd.git
synced 2026-04-23 19:57:27 +08:00
chore: email template优化
This commit is contained in:
@@ -18,24 +18,24 @@ export class EmailController extends BaseController {
|
||||
return this.ok({});
|
||||
}
|
||||
|
||||
// @Post('/list', { summary: Constants.per.authOnly })
|
||||
// public async list() {
|
||||
// const userId = super.getUserId();
|
||||
// const res = await this.emailService.list(userId);
|
||||
// return this.ok(res);
|
||||
// }
|
||||
@Post('/list', { summary: Constants.per.authOnly })
|
||||
public async list() {
|
||||
const userId = super.getUserId();
|
||||
const res = await this.emailService.list(userId);
|
||||
return this.ok(res);
|
||||
}
|
||||
|
||||
// @Post('/add', { summary: Constants.per.authOnly })
|
||||
// public async add(@Body('email') email) {
|
||||
// const userId = super.getUserId();
|
||||
// await this.emailService.add(userId, email);
|
||||
// return this.ok({});
|
||||
// }
|
||||
@Post('/add', { summary: Constants.per.authOnly })
|
||||
public async add(@Body('email') email) {
|
||||
const userId = super.getUserId();
|
||||
await this.emailService.add(userId, email);
|
||||
return this.ok({});
|
||||
}
|
||||
|
||||
// @Post('/delete', { summary: Constants.per.authOnly })
|
||||
// public async delete(@Body('email') email) {
|
||||
// const userId = super.getUserId();
|
||||
// await this.emailService.delete(userId, email);
|
||||
// return this.ok({});
|
||||
// }
|
||||
@Post('/delete', { summary: Constants.per.authOnly })
|
||||
public async delete(@Body('email') email) {
|
||||
const userId = super.getUserId();
|
||||
await this.emailService.delete(userId, email);
|
||||
return this.ok({});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user