feat(web): Web 前端功能完善 — API 扩展 + 组件优化
- 新增 AI 透析分析 API + 药物提醒 API - MediaPicker/ThemeSwitcher/usePaginatedData 优化 - 健康管理页面组件增强(Banner/Consultation/Doctor/MediaLibrary 等) - PluginCRUDPage 导入优化
This commit is contained in:
@@ -249,6 +249,14 @@ export const healthDataApi = {
|
||||
return data.data;
|
||||
},
|
||||
|
||||
generateTrend: async (patientId: string, req: { indicator: string; start_date?: string; end_date?: string }) => {
|
||||
const { data } = await client.post<{
|
||||
success: boolean;
|
||||
data: TrendData;
|
||||
}>(`/health/patients/${patientId}/trends/generate`, req);
|
||||
return data.data;
|
||||
},
|
||||
|
||||
getIndicatorTimeseries: async (patientId: string, indicator: string) => {
|
||||
const { data } = await client.get<{
|
||||
success: boolean;
|
||||
|
||||
Reference in New Issue
Block a user