wupengfei
2025-09-29 6b8101d9e2d6ca9d449a4087fbf065c6c31eec98
feat: 短信
1个文件已添加
3个文件已修改
54 ■■■■■ 已修改文件
src/services/api/SmsAppService.ts 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/services/api/index.ts 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/services/api/sms.ts 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/services/api/typings.d.ts 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/services/api/SmsAppService.ts
New file
@@ -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 || {}),
  });
}
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,
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 || {}),
  });
}
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 {
    /** 手机号码 */