mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-19 04:44:19 +08:00
(feature)(webapp) add show case and support multiple selection and deletion of filter conditions (#251)
This commit is contained in:
12
webapp/packages/chat-sdk/src/ShowCase/service.ts
Normal file
12
webapp/packages/chat-sdk/src/ShowCase/service.ts
Normal 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 }
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user