刘光辉
4 小时以前 cf11e63b659afcc9792ab3e395f1b45d844431a8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { defHttp } from '#/api/request';
 
export interface DmsFullTextSearchItem {
  createdAt?: string;
  documentId: string;
  documentNo?: string;
  fileName: string;
  folderId?: string;
  folderPath?: string;
  highlightedSnippet?: string;
  highlightedTitle: string;
  id: string;
  lifecycleStatus?: string;
  mimeType?: string;
  title: string;
  versionLabel?: string;
}
 
export interface DmsFullTextSearchPage {
  hasMore: boolean;
  list: DmsFullTextSearchItem[];
  nextCursor?: string;
}
 
interface DmsApiResult<T> {
  code: number;
  data: T;
  msg?: string;
}
 
export function searchDmsFiles(data: { cursor?: string; keyword: string; pageSize?: number }) {
  return defHttp.post<DmsApiResult<DmsFullTextSearchPage>>({ url: '/api/dms/search', data }, { errorMessageMode: 'none' });
}