From f860fbe54bf0264d897dc5cc2c207504630c5a8b Mon Sep 17 00:00:00 2001 From: inter Date: Mon, 8 Sep 2025 16:36:30 +0800 Subject: [PATCH] Add File --- frontend/src/api/auth.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 frontend/src/api/auth.ts diff --git a/frontend/src/api/auth.ts b/frontend/src/api/auth.ts new file mode 100644 index 0000000..c55a0b8 --- /dev/null +++ b/frontend/src/api/auth.ts @@ -0,0 +1,14 @@ +import { request } from '@/utils/request' + +export const userApi = { + pager: (pageNumber: number, pageSize: number) => + request.get(`/user/pager/${pageNumber}/${pageSize}`), + add: (data: any) => request.post('/settings/terminology', data), + edit: (data: any) => request.put('/settings/terminology', data), + delete: (id: number) => request.delete(`/settings/terminology/${id}`), + query: (id: number) => request.get(`/settings/terminology/${id}`), + language: (data: any) => request.put('/user/language', data), + pwd: (data: any) => request.put('/user/pwd', data), + ws_options: () => request.get('/user/ws'), + ws_change: (oid: number) => request.put(`/user/ws/${oid}`), +}