From 30c1eeca00527a1294c62b1c708edd32ba079b67 Mon Sep 17 00:00:00 2001 From: yinbangzhong <zhongbangyin@126.com> Date: 星期四, 29 八月 2024 17:35:47 +0800 Subject: [PATCH] select role --- src/api/session.ts | 21 ++++++++++++++++++++- 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/src/api/session.ts b/src/api/session.ts index 70d0b9e..6f221f3 100644 --- a/src/api/session.ts +++ b/src/api/session.ts @@ -66,4 +66,23 @@ // 鑾峰彇瑙f瀽鏂规硶鍒楄〃 export function getParseMethodsListApi() { return axios.get<ISessionListResult>('/api/v1/user/parse-methods'); -} \ No newline at end of file +} + +// 涓婁紶v1/document/upload_and_parse +export function uploadAndParse(params) { + const config = { + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + // token: token, + }, + }; + return axios.post('/api/v1/document/upload_and_parse', params, config); +} + +//楂樼骇浼氳瘽 +export function seniorAgentApi(params) { + return axios.get<ISessionListResult>( + '/api/v1/advanced-agent/list', + params + ); +} -- Gitblit v1.8.0