|
@@ -1,39 +0,0 @@
|
|
|
-export interface DoctorInfo {
|
|
|
|
|
- id: string
|
|
|
|
|
- name: string
|
|
|
|
|
- title?: string
|
|
|
|
|
- hospital?: string
|
|
|
|
|
- department?: string
|
|
|
|
|
- phone?: string
|
|
|
|
|
- specialty?: string
|
|
|
|
|
- introduction?: string
|
|
|
|
|
- avatar?: string
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-// 获取医生详细信息
|
|
|
|
|
-export async function getDoctorInfo(doctorId: number) {
|
|
|
|
|
- const token = uni.getStorageSync('token')
|
|
|
|
|
- const res: any = await uni.request({
|
|
|
|
|
- url: `https://wx.baiyun.work/doctor/${doctorId}`,
|
|
|
|
|
- method: 'GET',
|
|
|
|
|
- header: {
|
|
|
|
|
- 'content-type': 'application/json',
|
|
|
|
|
- Authorization: `Bearer ${token}`
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- return res
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-// 获取当前登录医生的信息
|
|
|
|
|
-export async function getCurrentDoctorInfo() {
|
|
|
|
|
- const token = uni.getStorageSync('token')
|
|
|
|
|
- const res: any = await uni.request({
|
|
|
|
|
- url: 'https://wx.baiyun.work/doctor/current',
|
|
|
|
|
- method: 'GET',
|
|
|
|
|
- header: {
|
|
|
|
|
- 'content-type': 'application/json',
|
|
|
|
|
- Authorization: `Bearer ${token}`
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- return res
|
|
|
|
|
-}
|
|
|