From bed3ed84e17796ade03d35939b62cdbb11daf2c6 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 31 十月 2025 14:33:30 +0800
Subject: [PATCH] fix: bug
---
packages/services/apiV2/enterprise.ts | 194 ++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 194 insertions(+), 0 deletions(-)
diff --git a/packages/services/apiV2/enterprise.ts b/packages/services/apiV2/enterprise.ts
index 820738d..1878577 100644
--- a/packages/services/apiV2/enterprise.ts
+++ b/packages/services/apiV2/enterprise.ts
@@ -2,6 +2,39 @@
// @ts-ignore
import { request } from '@/utils/request';
+/** 鏌ヨ浼佷笟璇︽儏 GET /api/user/enterprise/getEnterprise */
+export async function getEnterprise(
+ // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+ params: API.APIgetEnterpriseParams,
+ options?: API.RequestConfig
+) {
+ return request<API.GetEnterpriseQueryResult>('/api/user/enterprise/getEnterprise', {
+ method: 'GET',
+ params: {
+ ...params,
+ },
+ ...(options || {}),
+ });
+}
+
+/** 鏌ヨ浼佷笟鐢靛瓙绛鹃厤缃� GET /api/user/enterprise/getEnterpriseElectronSignSetting */
+export async function getEnterpriseElectronSignSetting(
+ // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+ params: API.APIgetEnterpriseElectronSignSettingParams,
+ options?: API.RequestConfig
+) {
+ return request<API.GetEnterpriseElectronSignSettingQueryResult>(
+ '/api/user/enterprise/getEnterpriseElectronSignSetting',
+ {
+ method: 'GET',
+ params: {
+ ...params,
+ },
+ ...(options || {}),
+ }
+ );
+}
+
/** 鏌ヨ浼佷笟淇℃伅鍒嗛〉鍒楄〃鏁版嵁 POST /api/user/enterprise/getEnterprises */
export async function getEnterprises(body: API.GetEnterprisesQuery, options?: API.RequestConfig) {
return request<API.PagedListQueryResultGetEnterprisesQueryResultItem>(
@@ -16,3 +49,164 @@
}
);
}
+
+/** 鏌ヨ浼佷笟鐭俊閰嶇疆 GET /api/user/enterprise/getEnterpriseSmsSetting */
+export async function getEnterpriseSmsSetting(
+ // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+ params: API.APIgetEnterpriseSmsSettingParams,
+ options?: API.RequestConfig
+) {
+ return request<API.GetEnterpriseSmsSettingQueryResult>(
+ '/api/user/enterprise/getEnterpriseSmsSetting',
+ {
+ method: 'GET',
+ params: {
+ ...params,
+ },
+ ...(options || {}),
+ }
+ );
+}
+
+/** 鏌ヨ瀹㈡埛璇︽儏锛堢敳鏂逛紒涓氾級 GET /api/user/enterprise/getPartyAEnterprise */
+export async function getPartyAEnterprise(
+ // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+ params: API.APIgetPartyAEnterpriseParams,
+ options?: API.RequestConfig
+) {
+ return request<API.GetPartyAEnterpriseQueryResult>('/api/user/enterprise/getPartyAEnterprise', {
+ method: 'GET',
+ params: {
+ ...params,
+ },
+ ...(options || {}),
+ });
+}
+
+/** 鏌ヨ瀹㈡埛绠$悊锛堢敳鏂瑰鎴凤級 POST /api/user/enterprise/getPartyAEnterprises */
+export async function getPartyAEnterprises(
+ body: API.GetPartyAEnterprisesQuery,
+ options?: API.RequestConfig
+) {
+ return request<API.PagedListQueryResultGetPartyAEnterprisesQueryResultItem>(
+ '/api/user/enterprise/getPartyAEnterprises',
+ {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json-patch+json',
+ },
+ data: body,
+ ...(options || {}),
+ }
+ );
+}
+
+/** 鏌ヨ渚涘簲鍟嗙鐞� POST /api/user/enterprise/getSupplierEnterprises */
+export async function getSupplierEnterprises(
+ body: API.GetSupplierEnterprisesQuery,
+ options?: API.RequestConfig
+) {
+ return request<API.PagedListQueryResultGetSupplierEnterprisesQueryResultItem>(
+ '/api/user/enterprise/getSupplierEnterprises',
+ {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json-patch+json',
+ },
+ data: body,
+ ...(options || {}),
+ }
+ );
+}
+
+/** 鏌ヨ渚涘簲鍟嗛�夋嫨鍣ㄦ暟鎹� GET /api/user/enterprise/getSupplierEnterpriseSelect */
+export async function getSupplierEnterpriseSelect(
+ // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+ params: API.APIgetSupplierEnterpriseSelectParams,
+ options?: API.RequestConfig
+) {
+ return request<API.SelectOptionGuidGetSupplierEnterpriseSelectQueryOption[]>(
+ '/api/user/enterprise/getSupplierEnterpriseSelect',
+ {
+ method: 'GET',
+ params: {
+ ...params,
+ request: undefined,
+ ...params['request'],
+ },
+ ...(options || {}),
+ }
+ );
+}
+
+/** 淇濆瓨浼佷笟 POST /api/user/enterprise/saveEnterprise */
+export async function saveEnterprise(body: API.SaveEnterpriseCommand, options?: API.RequestConfig) {
+ return request<string>('/api/user/enterprise/saveEnterprise', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json-patch+json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 淇濆瓨浼佷笟璐圭敤 POST /api/user/enterprise/saveEnterpriseCost */
+export async function saveEnterpriseCost(
+ body: API.SaveEnterpriseCostCommand,
+ options?: API.RequestConfig
+) {
+ return request<string>('/api/user/enterprise/saveEnterpriseCost', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json-patch+json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 娣诲姞瀹㈡埛浼佷笟锛堢敳鏂逛紒涓氾級 POST /api/user/enterprise/savePartyAEnterprise */
+export async function savePartyAEnterprise(
+ body: API.SavePartyAEnterpriseCommand,
+ options?: API.RequestConfig
+) {
+ return request<string>('/api/user/enterprise/savePartyAEnterprise', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json-patch+json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 璁剧疆浼佷笟鐢靛瓙绛鹃厤缃� PUT /api/user/enterprise/setEnterpriseElectronSignSetting */
+export async function setEnterpriseElectronSignSetting(
+ body: API.SetEnterpriseElectronSignSettingCommand,
+ options?: API.RequestConfig
+) {
+ return request<string>('/api/user/enterprise/setEnterpriseElectronSignSetting', {
+ method: 'PUT',
+ headers: {
+ 'Content-Type': 'application/json-patch+json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 璁剧疆浼佷笟鐭俊閰嶇疆 PUT /api/user/enterprise/setEnterpriseSmsSetting */
+export async function setEnterpriseSmsSetting(
+ body: API.SetEnterpriseSmsSettingCommand,
+ options?: API.RequestConfig
+) {
+ return request<string>('/api/user/enterprise/setEnterpriseSmsSetting', {
+ method: 'PUT',
+ headers: {
+ 'Content-Type': 'application/json-patch+json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
--
Gitblit v1.9.1