| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- /**
- * 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<Recordable>;
- total?: ApiCount;
- count?: ApiCount;
- };
- head?: any[];
- list?: ApiList<Recordable>;
- total?: ApiCount;
- count?: ApiCount;
- }
- export const globalSearchList = (params?: { keyword?: ApiText }) =>
- defHttp.get<GlobalSearchItem[]>({ url: adminPath + '/search/list', params });
- export const treeTablePage = (data: GlobalSearchTableQuery) =>
- defHttp.postJson<GlobalSearchTablePayload>({ url: adminPath + '/gt/treeTablePage', data });
|