update Log (#4533)

* add log search

* update log
This commit is contained in:
gggaaallleee
2025-04-14 18:28:42 +08:00
committed by GitHub
parent ea74c669ee
commit 2af3cd83f2
2 changed files with 115 additions and 9 deletions

View File

@@ -1,8 +1,13 @@
import { GET, POST, PUT } from '@/web/common/api/request';
import type { PaginationProps, PaginationResponse } from '@fastgpt/web/common/fetch/type';
import type { OperationListItemType } from '@fastgpt/global/support/operationLog/type';
export const getOperationLogs = (props: PaginationProps<PaginationProps>) =>
import { OperationLogEventEnum } from '@fastgpt/global/support/operationLog/constants';
export const getOperationLogs = (
props: PaginationProps & {
tmbIds?: string[];
events?: OperationLogEventEnum[];
}
) =>
POST<PaginationResponse<OperationListItemType>>(
`/proApi/support/user/team/operationLog/list`,
props