From be028017a461af4c9745c69c4df084d4c3e6b296 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期三, 22 十月 2025 18:08:49 +0800
Subject: [PATCH] fix: bug
---
src/services/api/enterpriseEmployee.ts | 148 ++++++++++++++++++++++++++++++++++++++----------
1 files changed, 116 insertions(+), 32 deletions(-)
diff --git a/src/services/api/enterpriseEmployee.ts b/src/services/api/enterpriseEmployee.ts
index 4f7e0c8..622e474 100644
--- a/src/services/api/enterpriseEmployee.ts
+++ b/src/services/api/enterpriseEmployee.ts
@@ -2,6 +2,24 @@
// @ts-ignore
import { request } from '@/utils/request';
+/** 浼佷笟鎵归噺绛剧害鍚堝悓 POST /api/user/enterpriseEmployee/batchEnterpriseSignContract */
+export async function batchEnterpriseSignContract(
+ body: API.BatchEnterpriseSignContractCommand,
+ options?: API.RequestConfig
+) {
+ return request<API.BatchEnterpriseSignContractCommandResult>(
+ '/api/user/enterpriseEmployee/batchEnterpriseSignContract',
+ {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json-patch+json',
+ },
+ data: body,
+ ...(options || {}),
+ }
+ );
+}
+
/** 缂栬緫鐏靛伐淇℃伅 POST /api/user/enterpriseEmployee/editEnterpriseEmployee */
export async function editEnterpriseEmployee(
body: API.EditEnterpriseEmployeeCommand,
@@ -15,6 +33,24 @@
data: body,
...(options || {}),
});
+}
+
+/** 浼佷笟鐢ㄦ埛绛剧害 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 */
@@ -35,31 +71,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,
- },
- ...(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: {
@@ -71,13 +89,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: {
@@ -107,12 +143,60 @@
);
}
-/** 閭�璇风伒宸ョ绾� POST /api/user/enterpriseEmployee/inviteEnterpriseEmployeeElectronSign */
-export async function inviteEnterpriseEmployeeElectronSign(
- body: API.InviteEnterpriseEmployeeElectronSignCommand,
+/** 閭�璇风伒宸ョ绾� POST /api/user/enterpriseEmployee/inviteElectronSign */
+export async function inviteElectronSign(
+ body: API.InviteElectronSignCommand,
options?: API.RequestConfig
) {
- return request<string>('/api/user/enterpriseEmployee/inviteEnterpriseEmployeeElectronSign', {
+ return request<number>('/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 || {}),
+ }
+ );
+}
+
+/** 鍙戦�侀個璇风绾︾煭淇� POST /api/user/enterpriseEmployee/sendInviteElectronSignSms */
+export async function sendInviteElectronSignSms(
+ body: API.SendInviteElectronSignSmsCommand,
+ options?: API.RequestConfig
+) {
+ return request<number>('/api/user/enterpriseEmployee/sendInviteElectronSignSms', {
+ 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<number>('/api/user/enterpriseEmployee/stopElectronSign', {
method: 'POST',
headers: {
'Content-Type': 'application/json-patch+json',
--
Gitblit v1.9.1