20 lines
612 B
JavaScript
20 lines
612 B
JavaScript
import { post, get } from './http'
|
||
|
||
/**
|
||
* 我的病历列表(xk-api POST /medical-record/list)
|
||
* 取值:unwrapXkApi → code/result/message
|
||
* @param {{ user_patient_id: number, page?: number, pageSize?: number }} params
|
||
*/
|
||
export async function getMedicalRecordListApi(params) {
|
||
return await post('/medical-record/list', params, 3)
|
||
}
|
||
|
||
/**
|
||
* 我的病历详情(xk-api GET /medical-record/detail)
|
||
* 取值:unwrapXkApi → code/result/message
|
||
* @param {{ id: number }} params
|
||
*/
|
||
export async function getMedicalRecordDetailApi(params) {
|
||
return await get('/medical-record/detail', params, 3)
|
||
}
|