yz3456
2024-07-01 9c376c3c54702b872ad690055c7bac16b64e817c
ruoyi-ui/src/api/doctor/index.js
@@ -78,3 +78,51 @@
    data: data
  })
}
// -------------------------------
// 分享
export function share(data) {
  return request({
    url: '/ZfDoctorShare/share',
    method: 'post',
    data: data
  })
}
// 查看分享给谁了什么数据
export function shareToWho(data) {
  return request({
    url: '/ZfDoctorShare/getInfoByUserId',
    method: 'post',
    data: data
  })
}
// 查看谁分享了数据
export function getWhoShare() {
  return request({
    url: '/ZfDoctorShare/getInfoByShareId',
    method: 'get',
  })
}
// 下载分享的数据
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() {
  return request({
    url: '/ZfDoctorShare/all',
    method: 'get'
  })
}