From 6b8101d9e2d6ca9d449a4087fbf065c6c31eec98 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 29 九月 2025 09:20:45 +0800
Subject: [PATCH] feat: 短信

---
 src/services/api/index.ts         |    6 ++++--
 src/services/api/SmsAppService.ts |   11 +++++++++++
 src/services/api/typings.d.ts     |   22 ++++++++++++++++++++--
 src/services/api/sms.ts           |   15 ---------------
 4 files changed, 35 insertions(+), 19 deletions(-)

diff --git a/src/services/api/SmsAppService.ts b/src/services/api/SmsAppService.ts
new file mode 100644
index 0000000..d4dcb3b
--- /dev/null
+++ b/src/services/api/SmsAppService.ts
@@ -0,0 +1,11 @@
+/* eslint-disable */
+// @ts-ignore
+import { request } from '@/utils/request';
+
+/** 姝ゅ鍚庣娌℃湁鎻愪緵娉ㄩ噴 POST /api/common/sms/smsChengLiYeNotify */
+export async function SmsChengLiYeNotify(options?: API.RequestConfig) {
+  return request<API.FriendlyResultIActionResult>('/api/common/sms/smsChengLiYeNotify', {
+    method: 'POST',
+    ...(options || {}),
+  });
+}
diff --git a/src/services/api/index.ts b/src/services/api/index.ts
index c27a0d6..e00039e 100644
--- a/src/services/api/index.ts
+++ b/src/services/api/index.ts
@@ -2,10 +2,10 @@
 /* eslint-disable */
 // API 鏇存柊鏃堕棿锛�
 // API 鍞竴鏍囪瘑锛�
+import * as SmsAppService from './SmsAppService';
 import * as enterpriseEmployee from './enterpriseEmployee';
 import * as user from './user';
 import * as role from './role';
-import * as sms from './sms';
 import * as ocrUtils from './ocrUtils';
 import * as task from './task';
 import * as enterprise from './enterprise';
@@ -19,14 +19,15 @@
 import * as auth from './auth';
 import * as taskCheckReceive from './taskCheckReceive';
 import * as taskUser from './taskUser';
+import * as sms from './sms';
 import * as menu from './menu';
 import * as fileUtils from './fileUtils';
 import * as syncDatabase from './syncDatabase';
 export default {
+  SmsAppService,
   enterpriseEmployee,
   user,
   role,
-  sms,
   ocrUtils,
   task,
   enterprise,
@@ -40,6 +41,7 @@
   auth,
   taskCheckReceive,
   taskUser,
+  sms,
   menu,
   fileUtils,
   syncDatabase,
diff --git a/src/services/api/sms.ts b/src/services/api/sms.ts
index 5a65279..2b69aab 100644
--- a/src/services/api/sms.ts
+++ b/src/services/api/sms.ts
@@ -25,18 +25,3 @@
     ...(options || {}),
   });
 }
-
-/** 璇氱珛涓氱煭淇″钩鍙板洖浼犻�氱煡 POST /api/common/sms/smsChengLiYeNotify */
-export async function smsChengLiYeNotify(
-  body: API.SmsChengLiYeNotifyCommand,
-  options?: API.RequestConfig
-) {
-  return request<boolean>('/api/common/sms/smsChengLiYeNotify', {
-    method: 'POST',
-    headers: {
-      'Content-Type': 'application/json-patch+json',
-    },
-    data: body,
-    ...(options || {}),
-  });
-}
diff --git a/src/services/api/typings.d.ts b/src/services/api/typings.d.ts
index 80e7e2c..c12e0db 100644
--- a/src/services/api/typings.d.ts
+++ b/src/services/api/typings.d.ts
@@ -2263,6 +2263,24 @@
     timestamp?: number;
   }
 
+  interface FriendlyResultIActionResult {
+    /** 璺熻釜Id */
+    traceId?: string;
+    /** 鐘舵�佺爜 */
+    code?: number;
+    /** 閿欒鐮� */
+    errorCode?: string;
+    data?: IActionResult;
+    /** 鎵ц鎴愬姛 */
+    success?: boolean;
+    /** 閿欒淇℃伅 */
+    msg?: any;
+    /** 闄勫姞鏁版嵁 */
+    extras?: any;
+    /** 鏃堕棿鎴� */
+    timestamp?: number;
+  }
+
   interface FriendlyResultImportEnterpriseEmployeesCommandResult {
     /** 璺熻釜Id */
     traceId?: string;
@@ -5540,6 +5558,8 @@
     workExperience?: string;
   }
 
+  type IActionResult = Record<string, any>;
+
   interface ImportEnterpriseEmployeesCommand {
     /** Excel鍦板潃 */
     excelUrl?: string;
@@ -6427,8 +6447,6 @@
     ids?: string[];
     status?: EnumUserStatus;
   }
-
-  type SmsChengLiYeNotifyCommand = Record<string, any>;
 
   interface SmsLoginCommand {
     /** 鎵嬫満鍙风爜 */

--
Gitblit v1.9.1