From 4e32f1188e9d0cafd3511994d2d13617ca6e08f9 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 15 十二月 2023 11:15:00 +0800
Subject: [PATCH] 完成
---
src/api/patient/homepage.js | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 58 insertions(+), 2 deletions(-)
diff --git a/src/api/patient/homepage.js b/src/api/patient/homepage.js
index 8ede6e1..0dfedce 100644
--- a/src/api/patient/homepage.js
+++ b/src/api/patient/homepage.js
@@ -36,14 +36,14 @@
// 鎮h�呰鎯�
export function particularpatient(userId) {
return request({
- url: '/smartor/patarchive/' + userId,
+ url: '/smartor/patarchive/getInfo/' + userId,
method: 'get',
})
};
// 鍒犻櫎鎮h�呭垪琛�
export function deletepatient(userId) {
return request({
- url: '/smartor/patarchive/' + userId,
+ url: '/smartor/patarchive/remove/' + userId,
method: 'delete',
})
};
@@ -62,3 +62,59 @@
method: 'get',
})
};
+// 鏂板鎮h�呯梾鍙�
+
+export function addmedicalhistory(data) {
+ return request({
+ url: '/medicalhistory/add',
+ method: 'post',
+ data: data
+ })
+};
+// 鐥呭彶璇︽儏
+export function getmedicalhistory(userId) {
+ return request({
+ url: '/medicalhistory/'+userId,
+ method: 'get',
+ })
+};
+
+// 淇敼鐥呭彶
+export function editmedicalhistory(data) {
+ return request({
+ url: '/medicalhistory/edit',
+ method: 'post',
+ data: data
+ })
+};
+
+// 鏂板鎮h�呰仈绯绘柟寮�
+export function addcontactinformation(data) {
+ return request({
+ url: '/archivecontact/add',
+ method: 'post',
+ data: data
+ })
+};
+// 淇敼鎮h�呰仈绯绘柟寮�
+export function editcontactinformation(data) {
+ return request({
+ url: '/archivecontact/edit',
+ method: 'post',
+ data: data
+ })
+};
+// 鑱旂郴鏂瑰紡璇︽儏
+export function getcontactinformation(userId) {
+ return request({
+ url: '/medicalhistory/'+userId,
+ method: 'get',
+ })
+};
+// 鍒犻櫎璇︽儏
+export function delcontactinformation(userId) {
+ return request({
+ url: '/archivecontact/'+userId,
+ method: 'get',
+ })
+};
--
Gitblit v1.9.3