From a48be50fb38f21c6dd7ac8545c80d511783449ab Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期五, 22 八月 2025 15:07:39 +0800 Subject: [PATCH] fix: 签约 --- src/services/api/enterpriseEmployee.ts | 71 +++++++++++++++++++++++++++++++++++ 1 files changed, 71 insertions(+), 0 deletions(-) diff --git a/src/services/api/enterpriseEmployee.ts b/src/services/api/enterpriseEmployee.ts index 1c915b2..b54b7c3 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榛樿娌℃湁鐢熸垚瀵硅薄) @@ -20,6 +35,44 @@ ); } +/** 鏌ヨ涓汉鐢ㄦ埛绛剧害璇︽儏 GET /api/user/enterpriseEmployee/getEnterpriseEmployeeElectronSign */ +export async function getEnterpriseEmployeeElectronSign( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetEnterpriseEmployeeElectronSignParams, + options?: API.RequestConfig +) { + return request<API.GetEnterpriseEmployeeElectronSignQueryResult>( + '/api/user/enterpriseEmployee/getEnterpriseEmployeeElectronSign', + { + method: 'GET', + params: { + ...params, + request: undefined, + ...params['request'], + }, + ...(options || {}), + } + ); +} + +/** 鏌ヨ涓汉鐢ㄦ埛绛剧害鍒楄〃 POST /api/user/enterpriseEmployee/getEnterpriseEmployeeElectronSigns */ +export async function getEnterpriseEmployeeElectronSigns( + body: API.GetEnterpriseEmployeeElectronSignsQuery, + options?: API.RequestConfig +) { + return request<API.GetEnterpriseEmployeeElectronSignsQueryResult>( + '/api/user/enterpriseEmployee/getEnterpriseEmployeeElectronSigns', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + } + ); +} + /** 鏌ヨ鐏靛伐鍒嗛〉鍒楄〃鏁版嵁 POST /api/user/enterpriseEmployee/getEnterpriseEmployees */ export async function getEnterpriseEmployees( body: API.GetEnterpriseEmployeesQuery, @@ -37,3 +90,21 @@ } ); } + +/** 瀵煎叆鐏靛伐淇℃伅 POST /api/user/enterpriseEmployee/importEnterpriseEmployees */ +export async function importEnterpriseEmployees( + body: API.ImportEnterpriseEmployeesCommand, + options?: API.RequestConfig +) { + return request<API.ImportEnterpriseEmployeesCommandResult>( + '/api/user/enterpriseEmployee/importEnterpriseEmployees', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + } + ); +} -- Gitblit v1.9.1