fix: 诊所管理
This commit is contained in:
59
apps/web-antd/src/views/system/store/api/index.ts
Normal file
59
apps/web-antd/src/views/system/store/api/index.ts
Normal file
@@ -0,0 +1,59 @@
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
const prefix = 'store/';
|
||||
/**
|
||||
* 分页查询用户列表
|
||||
* @param data
|
||||
*/
|
||||
export async function getStoreList(data: any) {
|
||||
return requestClient.get<any>(`${prefix}list`, { params: data });
|
||||
}
|
||||
/**
|
||||
* 分页查询用户列表
|
||||
* @param data
|
||||
*/
|
||||
export async function getStoreOption(data: any) {
|
||||
return requestClient.get<any>(`${prefix}option`, { params: data });
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取诊所详情
|
||||
* @param id
|
||||
*/
|
||||
export async function getStoreInfo(id: number) {
|
||||
return requestClient.get<any>(`${prefix}detail`, { params: { id } });
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增诊所
|
||||
* @param data
|
||||
*/
|
||||
export async function createStore(data: Record<string, any>) {
|
||||
return requestClient.post<any>(`${prefix}create`, data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑诊所
|
||||
* @param data
|
||||
*/
|
||||
export async function updateStore(data: Record<string, any>) {
|
||||
return requestClient.post<any>(`${prefix}update`, data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除诊所
|
||||
* @param data
|
||||
*/
|
||||
export async function deleteStore(data: Record<string, any>) {
|
||||
return requestClient.post<any>(`${prefix}delete`, data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 开启后台登录
|
||||
* @param id
|
||||
*/
|
||||
export async function openPcWindowsApiByStore(id: number) {
|
||||
return requestClient.post<any>(`${prefix}open-pc-windows`, {
|
||||
id,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user