/** * Copyright (c) 2013-Now https://jeesite.com All rights reserved. * No deletion without permission, or be held responsible to law. * @author ThinkGem */ import { defHttp } from '@jeesite/core/utils/http/axios'; import { useGlobSetting } from '@jeesite/core/hooks/setting'; const { adminPath } = useGlobSetting(); export interface GlobalSearchItem { id: string; tableName?: string; sheetId: string; fileId: string; dateTime: string; content: string; fileName?: string; sheetName?: string; } export interface GlobalSearchTableQuery { id?: ApiId | number; tableName?: ApiText; page?: ApiCount; limit?: ApiCount; } export interface GlobalSearchTablePayload { pages?: { records?: ApiList; total?: ApiCount; count?: ApiCount; }; head?: any[]; list?: ApiList; total?: ApiCount; count?: ApiCount; } export const globalSearchList = (params?: { keyword?: ApiText }) => defHttp.get({ url: adminPath + '/search/list', params }); export const treeTablePage = (data: GlobalSearchTableQuery) => defHttp.postJson({ url: adminPath + '/gt/treeTablePage', data });