Просмотр исходного кода

refactor(api): 移除旧版医生信息接口定义与请求方法

- 删除了 DoctorInfo 接口定义
- 移除了 getDoctorInfo 方法的实现
- 移除了 getCurrentDoctorInfo 方法的实现
- 清理了相关 HTTP 请求逻辑代码
- 为新架构准备接口重构基础
- 减少冗余代码提升模块清晰度
mcbaiyun 1 месяц назад
Родитель
Сommit
72409f3cc4
1 измененных файлов с 0 добавлено и 39 удалено
  1. 0 39
      src/api/doctor.ts

+ 0 - 39
src/api/doctor.ts

@@ -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
-}