| | |
| | | import { AppointmentDetail } from '../models/AppointmentDetail'; |
| | | import { ConsultantLoginInfo } from '../models/ConsultantLoginInfo'; |
| | | import _ from 'lodash'; |
| | | import { UserSetting } from '../models/account.model'; |
| | | |
| | | // 顧客登入(TODO: OTP認證開發前 暫時使用) |
| | | export function login(user: any) { |
| | |
| | | } |
| | | return service.get('/appointment/getDetail/'+apointmentId, {headers}) |
| | | } |
| | | |
| | | //取得使用者帳號資訊 |
| | | export function getUserAccountSetting() : Promise<UserSetting> { |
| | | const headers = { |
| | | Authorization: 'Bearer ' + localStorage.getItem('id_token') |
| | | } |
| | | return service.get<UserSetting>('/customer/info', {headers}).then(res => res.data); |
| | | } |
| | | |
| | | //更新使用者帳號資訊 |
| | | export function updateAccountSetting(params: any) : any { |
| | | const headers = { |
| | | Authorization: 'Bearer ' + localStorage.getItem('id_token') |
| | | } |
| | | return service.put('/customer/info', params ,{headers}).then(res => res.data); |
| | | } |
| | | |
| | | export interface Consultants { |
| | | agentNo : string, |
| | | name : string, |