55 lines
922 B
JavaScript
55 lines
922 B
JavaScript
import request from '@/utils/request'
|
|
|
|
/**
|
|
* 获取医生常用语列表
|
|
*/
|
|
export function getDoctorPhraseList() {
|
|
return request({
|
|
url: '/Doctor-phrase/list',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 搜索医生常用语
|
|
*/
|
|
export function searchDoctorPhraseList(phraseName, phraseType) {
|
|
return request({
|
|
url: '/Doctor-phrase/search',
|
|
method: 'get',
|
|
params: { phraseName, phraseType }
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 新增医生常用语
|
|
*/
|
|
export function addDoctorPhrase(data) {
|
|
return request({
|
|
url: '/Doctor-phrase/add',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 更新医生常用语
|
|
*/
|
|
export function updateDoctorPhrase(data) {
|
|
return request({
|
|
url: '/Doctor-phrase/update',
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 删除医生常用语
|
|
*/
|
|
export function deleteDoctorPhrase(DoctorPhraseId) {
|
|
return request({
|
|
url: `/Doctor-phrase/delete/${DoctorPhraseId}`,
|
|
method: 'delete'
|
|
})
|
|
}
|