This commit is contained in:
crusader 2018-04-11 15:40:12 +09:00
parent df15cd56a9
commit 5bd50ed53b

View File

@ -18,29 +18,27 @@ export class MemberService {
} }
public signin(email: string, password: string): Observable<any> { public signin(email: string, password: string): Observable<any> {
const body = {
signinId: email,
signinPw: password,
};
return this.restService.request<any>('post', '/account/signin', { return this.restService.request<any>('post', '/account/signin', {
body: body, body: {
signinId: email,
signinPw: password,
},
}); });
} }
public signin_cookie(authToken: string): Observable<DomainMember> { public signin_cookie(authToken: string): Observable<DomainMember> {
const body = {
authToken: authToken,
};
return this.restService.request<DomainMember>('post', '/account/signin_cookie', { return this.restService.request<DomainMember>('post', '/account/signin_cookie', {
body: body, body: {
authToken: authToken,
},
}); });
} }
public signup(member: Member): Observable<Member> { public signup(member: Member): Observable<Member> {
return this.restService.request<Member>('post', '/account/signup', { return this.restService.request<Member>('post', '/account/signup', {
body: member, body: {
member: member,
},
}); });
} }
} }