yz3456
2024-07-21 6669c680f79663fc220935d61c3f3f6eee078e7c
ruoyi-ui/src/api/doctor/index.js
@@ -8,6 +8,14 @@
    params: query
  })
}
//类别数据
export function listType(query) {
  return request({
    url: '/zfDoctor/type',
    method: 'get',
    params: query
  })
}
// 根据id查询记录
export function getDoctor(id) {
@@ -48,7 +56,7 @@
//上传文件
export function uploadPic(data) {
  return request({
    url: '/common/upload',
    url: '/common/uploads',
    method: 'post',
    data: data
  })
@@ -70,3 +78,55 @@
    data: data
  })
}
// -------------------------------
// 分享
export function share(data) {
  return request({
    url: '/ZfDoctorShare/share',
    method: 'post',
    data: data
  })
}
// 查看分享给谁了什么数据
export function shareToWho(data,query) {
  return request({
    url: '/ZfDoctorShare/getInfoByUserId',
    method: 'post',
    data: data,
    params: query
  })
}
// 查看谁分享了数据
export function getWhoShare(data,query) {
  return request({
    url: '/ZfDoctorShare/getInfoByShareId',
    method: 'get',
    data: data,
    params: query
  })
}
// 下载分享的数据
export function downShareData(data) {
  return request({
    url: '/ZfDoctorShare/downloadDate',
    method: 'post',
    data: data
  })
}
// 收回分享数据
export function deleteShareData(data) {
  return request({
    url: '/ZfDoctorShare/deleteInfoByUserId',
    method: 'post',
    data: data
  })
}
// 展示下载的数据
export function showShareData(query) {
  return request({
    url: '/ZfDoctorShare/all',
    method: 'get',
    params: query
  })
}