(feature)(webapp) add show case and support multiple selection and deletion of filter conditions (#251)

This commit is contained in:
williamhliu
2023-10-18 09:56:35 +08:00
committed by GitHub
parent 8d81f63e08
commit 36052cb4f2
36 changed files with 492 additions and 134 deletions

View File

@@ -0,0 +1,12 @@
import axios from '../service/axiosInstance';
import { isMobile } from '../utils/utils';
import { ShowCaseType } from './type';
const prefix = isMobile ? '/openapi' : '/api';
export function queryShowCase(agentId: number, current: number, pageSize: number) {
return axios.post<ShowCaseType>(
`${prefix}/chat/manage/queryShowCase?agentId=${agentId}`,
{ current, pageSize }
);
}