emailAuthService method added

This commit is contained in:
geek 2017-07-04 12:46:23 +09:00
parent ba2037bad5
commit c9cb7ac094

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;
}
}