Files
xk-admin/apps/web-antd/src/api/core/file-folder.ts
李琦 d159e514b2 feat: 补齐素材文件夹、挂号改期、系统配置分组与工作台简报开关
素材库按 object_key 目录同步文件夹侧栏,选图和筛选可按目录收窄。
挂号列表支持管理端代改期,号源日历与患者端同源。
系统配置按端拆模块(患者首页展示、医生默认常用入口、工作台简报总开关、处方签名),旧菜单 key 做迁移以免刷新丢选中。
AI 生成记录补每日简报场景和缓存命中筛选;个人中心改走后端菜单 Profile。
2026-08-18 09:12:07 +08:00

28 lines
719 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { requestClient } from '#/api/request';
const prefix = 'file-folder/';
/** 素材库文件夹path 来自 object_key 按 / 拆出的目录 */
export interface FileFolderItem {
id: number;
pid: number;
name: string;
path: string;
depth: number;
sort: number;
}
/** 文件夹列表(会先按 object_key 同步xk-api GET /file-folder/list */
export async function getFileFolderList() {
return requestClient.get<FileFolderItem[]>(`${prefix}list`);
}
/** 手动从 object_key 同步文件夹xk-api POST /file-folder/sync */
export async function syncFileFolder() {
return requestClient.post<{
bound: number;
created: number;
folder_count: number;
}>(`${prefix}sync`);
}