From c9cb7ac09456abe6ba452cd716eac6a85cf98a2b Mon Sep 17 00:00:00 2001 From: geek Date: Tue, 4 Jul 2017 12:46:23 +0900 Subject: [PATCH] emailAuthService method added --- .../email/api/service/EmailAuthService.ts | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/ts/@overflow/email/api/service/EmailAuthService.ts b/src/ts/@overflow/email/api/service/EmailAuthService.ts index 75e908f..84731c5 100644 --- a/src/ts/@overflow/email/api/service/EmailAuthService.ts +++ b/src/ts/@overflow/email/api/service/EmailAuthService.ts @@ -7,11 +7,28 @@ class EmailAuthService extends Service { super('EmailAuthService'); } - public sendEmail(to: string, sub: string, message: string): void { + public sendEmailByMember(id: number, email: string): Promise { - return null; + return new Promise((resolve) => { + const json = this.send('sendEmailByMember', [id, email]); + }); } + public read(id: number): Promise { + return null; + } + + public readByAuthKey(authKey: string): Promise { + return null; + } + + public readByMember(memberId: number): Promise { + return null; + } + + public modify(auth:EmailAuth): Promise { + return null; + } }