医生常用语页面开发,接口实现.

This commit is contained in:
2025-12-23 17:01:24 +08:00
parent 91968530b4
commit 8beb7f3d3d
6 changed files with 540 additions and 34 deletions

View File

@@ -0,0 +1,54 @@
import request from '@/utils/request'
/**
* 获取医生常用语列表
*/
export function getDoctorPhraseList() {
return request({
url: '/Doctor-phrase/list',
method: 'get'
})
}
/**
* 搜索医生常用语
*/
export function searchDoctorPhraseList(phraseName, phraseType, phraseCategory) {
return request({
url: '/Doctor-phrase/search',
method: 'get',
params: { phraseName, phraseType, phraseCategory }
})
}
/**
* 新增医生常用语
*/
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'
})
}