emailAuthService method added
This commit is contained in:
parent
ba2037bad5
commit
c9cb7ac094
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user