| | |
| | | import { ConsultantLoginInfo } from '../models/ConsultantLoginInfo'; |
| | | import _ from 'lodash'; |
| | | import { UserSetting } from '../models/account.model'; |
| | | import { Consultants } from '~/assets/ts/models/consultant.model'; |
| | | import { Consultant } from '~/assets/ts/models/consultant.model'; |
| | | |
| | | // 顧客登入(TODO: OTP認證開發前 暫時使用) |
| | | export function login(user: any) { |
| | |
| | | |
| | | // 推薦保險顧問 |
| | | export function recommend() { |
| | | return service.get<Consultants[]>('/consultant/recommend') |
| | | return service.get<Consultant[]>('/consultant/recommend') |
| | | .then(res => res.data); |
| | | } |
| | | |
| | |
| | | const headers = { |
| | | Authorization: 'Bearer ' + localStorage.getItem('id_token') |
| | | } |
| | | return service.get<Consultants[]>('/consultant/favorite', {headers}) |
| | | return service.get<Consultant[]>('/consultant/favorite', {headers}) |
| | | .then(res => res.data); |
| | | } |
| | | |