From 4e7c38d4e98ee1050d7cbf9753d4ad5fc9761c4e Mon Sep 17 00:00:00 2001 From: schnee Date: Tue, 5 Sep 2023 10:31:07 +0800 Subject: [PATCH] minor: retrieve and update data source user url user -> users (#1216) --- src/pages/src/http/dataSourceFiles.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/src/http/dataSourceFiles.ts b/src/pages/src/http/dataSourceFiles.ts index 9f81ef569..6e1ac87a3 100644 --- a/src/pages/src/http/dataSourceFiles.ts +++ b/src/pages/src/http/dataSourceFiles.ts @@ -28,9 +28,9 @@ export const getDataSourceLeaders = (id: string, keyword: string) => http.get(`/ /** * 数据源用户详情 */ -export const getDataSourceUserDetails = (id: string) => http.get(`/api/v1/web/data-sources/user/${id}/`); +export const getDataSourceUserDetails = (id: string) => http.get(`/api/v1/web/data-sources/users/${id}/`); /** * 更新数据源用户 */ -export const putDataSourceUserDetails = (params: PutDataSourceUserParams) => http.put(`/api/v1/web/data-sources/user/${params.id}/`, params); +export const putDataSourceUserDetails = (params: PutDataSourceUserParams) => http.put(`/api/v1/web/data-sources/users/${params.id}/`, params);