mirror of
https://github.com/r-ca/kidshift-skills.git
synced 2024-10-25 17:14:03 +00:00
ServiceBaseを継承するように
This commit is contained in:
parent
bb929d5c03
commit
faa2249c10
|
@ -1,7 +1,8 @@
|
||||||
import api from '../api'
|
import api from '../api'
|
||||||
import { TokenResponse } from '../models/Common';
|
import { TokenResponse } from '../models/Common';
|
||||||
|
import _ServiceBase from './_ServiceBase';
|
||||||
|
|
||||||
class AuthService {
|
class AuthService extends _ServiceBase {
|
||||||
async login(loginCode: string) {
|
async login(loginCode: string) {
|
||||||
return await api.post<TokenResponse>('/parent/auth/login' , { code: loginCode });
|
return await api.post<TokenResponse>('/parent/auth/login' , { code: loginCode });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user