This commit is contained in:
snoop 2017-07-04 12:53:19 +09:00
commit 4e3316075d

View File

@ -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<EmailAuth> {
return null;
return new Promise<EmailAuth>((resolve) => {
const json = this.send('sendEmailByMember', [id, email]);
});
}
public read(id: number): Promise<EmailAuth> {
return null;
}
public readByAuthKey(authKey: string): Promise<EmailAuth> {
return null;
}
public readByMember(memberId: number): Promise<EmailAuth[]> {
return null;
}
public modify(auth:EmailAuth): Promise<EmailAuth> {
return null;
}
}