From 268bf6d9cbfc7c534f231991e88bab727c6e0a28 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期四, 14 八月 2025 11:06:08 +0800 Subject: [PATCH] feat: 接口 --- src/services/api/enterpriseEmployee.ts | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/src/services/api/enterpriseEmployee.ts b/src/services/api/enterpriseEmployee.ts index 1c915b2..cb2c49a 100644 --- a/src/services/api/enterpriseEmployee.ts +++ b/src/services/api/enterpriseEmployee.ts @@ -2,6 +2,21 @@ // @ts-ignore import { request } from '@/utils/request'; +/** 缂栬緫鐏靛伐淇℃伅 POST /api/user/enterpriseEmployee/editEnterpriseEmployee */ +export async function editEnterpriseEmployee( + body: API.EditEnterpriseEmployeeCommand, + options?: API.RequestConfig +) { + return request<string>('/api/user/enterpriseEmployee/editEnterpriseEmployee', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + /** 鏌ヨ鐏靛伐璇︽儏 GET /api/user/enterpriseEmployee/getEnterpriseEmployee */ export async function getEnterpriseEmployee( // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) @@ -37,3 +52,18 @@ } ); } + +/** 瀵煎叆鐏靛伐淇℃伅 POST /api/user/enterpriseEmployee/importEnterpriseEmployees */ +export async function importEnterpriseEmployees( + body: API.ImportEnterpriseEmployeesCommand, + options?: API.RequestConfig +) { + return request<number>('/api/user/enterpriseEmployee/importEnterpriseEmployees', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} -- Gitblit v1.9.1