fix: 修复患者就诊历史
This commit is contained in:
@@ -77,6 +77,10 @@ function request(url, params, method = 0) {
|
||||
if (res.data?.data != null) {
|
||||
res.data.data = getRes(res.data.data)
|
||||
}
|
||||
// 处理 xkApi 返回的 result 格式
|
||||
if (res.data?.result != null) {
|
||||
res.data.result = getRes(res.data.result)
|
||||
}
|
||||
resolve(res)
|
||||
},
|
||||
// 失败钩子
|
||||
|
||||
49
request/api/systemNotice.js
Normal file
49
request/api/systemNotice.js
Normal file
@@ -0,0 +1,49 @@
|
||||
import {get, post} from './http'
|
||||
|
||||
const prefix = '/system-notice'
|
||||
|
||||
/**
|
||||
* 获取通知概览(各类通知未读数量)
|
||||
* @param params
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
export async function getSystemNoticeIndexApi(params) {
|
||||
return await get(`${prefix}/index`, params, 3)
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取订单消息列表
|
||||
* @param params
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
export async function getOrderNoticeApi(params) {
|
||||
return await get(`${prefix}/order`, params, 3)
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取系统消息列表
|
||||
* @param params
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
export async function getSystemNoticeListApi(params) {
|
||||
return await get(`${prefix}/system`, params, 3)
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取医生群发消息列表
|
||||
* @param params
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
export async function getDoctorNewsApi(params) {
|
||||
return await get(`${prefix}/doctor-news`, params, 3)
|
||||
}
|
||||
|
||||
/**
|
||||
* 标记医生消息为已读
|
||||
* @param params
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
export async function readDoctorNewsApi(params) {
|
||||
return await post(`${prefix}/read-doctor-news`, params, 3)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user