更新 clear

This commit is contained in:
zoujiandong
2023-09-15 17:14:45 +08:00
parent 25c628d7f2
commit 64d7546bc5
4 changed files with 19 additions and 20 deletions
+7 -7
View File
@@ -1,17 +1,17 @@
import request from '../../utils/request'
const url = '/admin/doctor';
const url = '/admin/patient';
export function getDoctorList(params){
export function getPatientList(params){
return request({
url:'/admin/doctor',
url:'/admin/patient',
method: 'get',
params
})
}
export function addDoctor(data) {
export function addPatient(data) {
return request({
url,
method: 'post',
@@ -19,7 +19,7 @@ export function addDoctor(data) {
})
}
export function removeDoctor(data) {
export function removePatient(data) {
return request({
url,
method: 'delete',
@@ -27,14 +27,14 @@ export function removeDoctor(data) {
})
}
export function updateDoctor(data, id) {
export function updatePatient(data, id) {
return request({
url: `${url}/${id}`,
method: 'put',
data
})
}
export function getDoctorDetail(id){
export function getPatientDetail(id){
return request({
url:'/admin/doctor/'+id,
method: 'get'