| | |
| | | import { ConsultantLoginInfo } from '../models/ConsultantLoginInfo'; |
| | | import _ from 'lodash'; |
| | | import { UserSetting } from '../models/account.model'; |
| | | import { Consultants } from '~/assets/ts/models/consultant.model'; |
| | | |
| | | // 顧客登入(TODO: OTP認證開發前 暫時使用) |
| | | export function login(user: any) { |
| | |
| | | return service.put('/customer/info', params ,{headers}).then(res => res.data); |
| | | } |
| | | |
| | | export interface Consultants { |
| | | agentNo : string, |
| | | name : string, |
| | | img : string, |
| | | new : boolean, |
| | | avgScore : number, |
| | | expertise : string[], |
| | | updateTime : Date, |
| | | seniority : string, |
| | | contactStatus? : string; |
| | | latestAppointmentId: number; |
| | | role : string; |
| | | image? : string; |
| | | expertises? : string; |
| | | //客戶進行滿意度評分 |
| | | |
| | | export function userReviewsConsultants(data: UserReviewsConsultantsParams) { |
| | | const headers = { |
| | | Authorization: 'Bearer ' + localStorage.getItem('id_token') |
| | | } |
| | | return service.post('/satisfaction/create', data ,{headers}); |
| | | } |
| | | |
| | | export interface FastQueryParams { |
| | |
| | | /** "SMS":Otp發送手機,"EMAIL":Otp發email */ |
| | | contactType: string |
| | | } |
| | | |
| | | export interface UserReviewsConsultantsParams{ |
| | | appointmentId:number, |
| | | score:number, |
| | | } |