From 63f27012358691479719c70ee004ff2ad4f9e21b Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 01 九月 2025 15:14:42 +0800
Subject: [PATCH] feat: 接口对接

---
 src/services/api/enterpriseEmployee.ts |  124 +++++++++++++++++++++++++++++++----------
 1 files changed, 94 insertions(+), 30 deletions(-)

diff --git a/src/services/api/enterpriseEmployee.ts b/src/services/api/enterpriseEmployee.ts
index b54b7c3..dbf7f68 100644
--- a/src/services/api/enterpriseEmployee.ts
+++ b/src/services/api/enterpriseEmployee.ts
@@ -17,6 +17,24 @@
   });
 }
 
+/** 浼佷笟鐢ㄦ埛绛剧害 POST /api/user/enterpriseEmployee/enterpriseUserElectronSign */
+export async function enterpriseUserElectronSign(
+  body: API.EnterpriseUserElectronSignCommand,
+  options?: API.RequestConfig
+) {
+  return request<API.EnterpriseUserElectronSignCommandResult>(
+    '/api/user/enterpriseEmployee/enterpriseUserElectronSign',
+    {
+      method: 'POST',
+      headers: {
+        'Content-Type': 'application/json-patch+json',
+      },
+      data: body,
+      ...(options || {}),
+    }
+  );
+}
+
 /** 鏌ヨ鐏靛伐璇︽儏 GET /api/user/enterpriseEmployee/getEnterpriseEmployee */
 export async function getEnterpriseEmployee(
   // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
@@ -35,33 +53,13 @@
   );
 }
 
-/** 鏌ヨ涓汉鐢ㄦ埛绛剧害璇︽儏 GET /api/user/enterpriseEmployee/getEnterpriseEmployeeElectronSign */
-export async function getEnterpriseEmployeeElectronSign(
-  // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
-  params: API.APIgetEnterpriseEmployeeElectronSignParams,
+/** 鏌ヨ鐏靛伐鍒嗛〉鍒楄〃鏁版嵁 POST /api/user/enterpriseEmployee/getEnterpriseEmployees */
+export async function getEnterpriseEmployees(
+  body: API.GetEnterpriseEmployeesQuery,
   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',
+  return request<API.GetEnterpriseEmployeesQueryResult>(
+    '/api/user/enterpriseEmployee/getEnterpriseEmployees',
     {
       method: 'POST',
       headers: {
@@ -73,13 +71,31 @@
   );
 }
 
-/** 鏌ヨ鐏靛伐鍒嗛〉鍒楄〃鏁版嵁 POST /api/user/enterpriseEmployee/getEnterpriseEmployees */
-export async function getEnterpriseEmployees(
-  body: API.GetEnterpriseEmployeesQuery,
+/** 鏌ヨ涓汉鐢ㄦ埛绛剧害璇︽儏 GET /api/user/enterpriseEmployee/getPersonalUserElectronSign */
+export async function getPersonalUserElectronSign(
+  // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+  params: API.APIgetPersonalUserElectronSignParams,
   options?: API.RequestConfig
 ) {
-  return request<API.GetEnterpriseEmployeesQueryResult>(
-    '/api/user/enterpriseEmployee/getEnterpriseEmployees',
+  return request<API.GetPersonalUserElectronSignQueryResult>(
+    '/api/user/enterpriseEmployee/getPersonalUserElectronSign',
+    {
+      method: 'GET',
+      params: {
+        ...params,
+      },
+      ...(options || {}),
+    }
+  );
+}
+
+/** 鏌ヨ涓汉鐢ㄦ埛绛剧害鍒楄〃 POST /api/user/enterpriseEmployee/getPersonalUserElectronSigns */
+export async function getPersonalUserElectronSigns(
+  body: API.GetPersonalUserElectronSignsQuery,
+  options?: API.RequestConfig
+) {
+  return request<API.GetPersonalUserElectronSignsQueryResult>(
+    '/api/user/enterpriseEmployee/getPersonalUserElectronSigns',
     {
       method: 'POST',
       headers: {
@@ -108,3 +124,51 @@
     }
   );
 }
+
+/** 閭�璇风伒宸ョ绾� POST /api/user/enterpriseEmployee/inviteElectronSign */
+export async function inviteElectronSign(
+  body: API.InviteElectronSignCommand,
+  options?: API.RequestConfig
+) {
+  return request<string>('/api/user/enterpriseEmployee/inviteElectronSign', {
+    method: 'POST',
+    headers: {
+      'Content-Type': 'application/json-patch+json',
+    },
+    data: body,
+    ...(options || {}),
+  });
+}
+
+/** 涓汉鐢ㄦ埛绛剧害 POST /api/user/enterpriseEmployee/personalUserElectronSign */
+export async function personalUserElectronSign(
+  body: API.PersonalUserElectronSignCommand,
+  options?: API.RequestConfig
+) {
+  return request<API.PersonalUserElectronSignCommandResult>(
+    '/api/user/enterpriseEmployee/personalUserElectronSign',
+    {
+      method: 'POST',
+      headers: {
+        'Content-Type': 'application/json-patch+json',
+      },
+      data: body,
+      ...(options || {}),
+    }
+  );
+}
+
+/** 鐏靛伐瑙g害 POST /api/user/enterpriseEmployee/stopElectronSign */
+export async function stopElectronSign(
+  body: API.StopElectronSignCommand,
+  options?: API.RequestConfig
+) {
+  return request<string>('/api/user/enterpriseEmployee/stopElectronSign', {
+    method: 'POST',
+    headers: {
+      'Content-Type': 'application/json-patch+json',
+    },
+    data: body,
+    ...(options || {}),
+  });
+}

--
Gitblit v1.9.1