mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 02:58:11 +00:00
20 lines
526 B
TypeScript
20 lines
526 B
TypeScript
import { prefixSuffixService } from "@/user-management/services/api/prefixSuffixService";
|
|
import { useQuery } from "@tanstack/react-query";
|
|
|
|
export interface RemarkParams{
|
|
skip:number,
|
|
take:number,
|
|
orderBy?:string;
|
|
}
|
|
|
|
|
|
export const useRemarkByUnitId = (unitId: string, params:RemarkParams) => {
|
|
return useQuery({
|
|
queryKey: ["remark", unitId,params],
|
|
queryFn: async () => {
|
|
const response = await prefixSuffixService.getRemarkList(unitId,params);
|
|
return response.data ;
|
|
},
|
|
});
|
|
};
|