From 17062f511f1a714e8bf091c9916af8f70872858d Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期五, 27 六月 2025 09:30:04 +0800 Subject: [PATCH] feat: 接口 --- src/hooks/dic.ts | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/hooks/dic.ts b/src/hooks/dic.ts index 3b84750..ce60fd7 100644 --- a/src/hooks/dic.ts +++ b/src/hooks/dic.ts @@ -16,3 +16,19 @@ refetch, }; } + +export function useUserInsureProductSetting() { + const { data: allUserInsureProductSettingList, refetch } = useQuery({ + queryKey: ['dictionaryServices/getUserInsureProductSetting'], + queryFn: async () => { + let res = await dictionaryServices.getUserInsureProductSetting({ showLoading: false }); + return res; + }, + placeholderData: () => [] as API.InsureProductSettingDto[], + }); + + return { + allUserInsureProductSettingList, + refetch, + }; +} -- Gitblit v1.9.1