Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
44 lines
979 B
TypeScript
44 lines
979 B
TypeScript
import { requestClient } from '#/api/request';
|
|
|
|
const prefix = 'transfer-question/';
|
|
|
|
/**
|
|
* 获取转诊问题列表
|
|
* @param data
|
|
*/
|
|
export async function getTransferQuestionList(data: any) {
|
|
return requestClient.post<any>(`${prefix}list`, data);
|
|
}
|
|
|
|
/**
|
|
* 获取转诊问题详情
|
|
* @param id
|
|
*/
|
|
export async function getTransferQuestionInfo(id: number) {
|
|
return requestClient.get<any>(`${prefix}detail`, { params: { id } });
|
|
}
|
|
|
|
/**
|
|
* 新增转诊问题
|
|
* @param data
|
|
*/
|
|
export async function createTransferQuestion(data: Record<string, any>) {
|
|
return requestClient.post<any>(`${prefix}add`, data);
|
|
}
|
|
|
|
/**
|
|
* 更新转诊问题
|
|
* @param data
|
|
*/
|
|
export async function updateTransferQuestion(data: Record<string, any>) {
|
|
return requestClient.post<any>(`${prefix}update`, data);
|
|
}
|
|
|
|
/**
|
|
* 删除转诊问题
|
|
* @param data
|
|
*/
|
|
export async function deleteTransferQuestion(data: Record<string, any>) {
|
|
return requestClient.post<any>(`${prefix}delete`, data);
|
|
}
|