From 73e08504c64f42d5e253575be434802c812c3ad9 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期三, 10 九月 2025 14:21:17 +0800
Subject: [PATCH] fix: 公告

---
 packages/services/api/typings.d.ts           |  117 +++++++++++++++++++++++
 packages/core/src/lifeRechargeConstants.ts   |    7 +
 packages/services/api/WxPayNotify.ts         |   15 +++
 packages/services/api/index.ts               |    4 
 packages/services/api/LifePayAnnouncement.ts |   62 ++++++++++++
 packages/services/api/LifePayRate.ts         |   81 ++++++++++++++++
 6 files changed, 286 insertions(+), 0 deletions(-)

diff --git a/packages/core/src/lifeRechargeConstants.ts b/packages/core/src/lifeRechargeConstants.ts
index fef3bf6..0c3e5ed 100644
--- a/packages/core/src/lifeRechargeConstants.ts
+++ b/packages/core/src/lifeRechargeConstants.ts
@@ -231,4 +231,11 @@
     [LifePayChannelAgentType.BrandAgent]: '鍝佺墝浠g悊',
     [LifePayChannelAgentType.AreaAgent]: '鍖哄煙浠g悊',
   };
+
+  export enum AnnouncementTypeEnum {
+    /**鏅�氬叕鍛� */
+    Normal = 10,
+    /**寮圭獥鍏憡 */
+    Dialog = 20,
+  }
 }
diff --git a/packages/services/api/LifePayAnnouncement.ts b/packages/services/api/LifePayAnnouncement.ts
new file mode 100644
index 0000000..d22e488
--- /dev/null
+++ b/packages/services/api/LifePayAnnouncement.ts
@@ -0,0 +1,62 @@
+/* eslint-disable */
+// @ts-ignore
+import { request } from '@/utils/request';
+
+/** 鏂板缂栬緫鍏憡 POST /api/LifePayAnnouncement/CreateOrEditLifePayAnnouncement */
+export async function createOrEditLifePayAnnouncement(
+  body: API.CreateEditLifePayAnnouncementInput,
+  options?: API.RequestConfig
+) {
+  return request<number>('/api/LifePayAnnouncement/CreateOrEditLifePayAnnouncement', {
+    method: 'POST',
+    headers: {
+      'Content-Type': 'application/json',
+    },
+    data: body,
+    ...(options || {}),
+  });
+}
+
+/** 鍒犻櫎鍏憡 GET /api/LifePayAnnouncement/DeleteLifePayAnnouncement */
+export async function deleteLifePayAnnouncement(
+  // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+  params: API.APIdeleteLifePayAnnouncementParams,
+  options?: API.RequestConfig
+) {
+  return request<number>('/api/LifePayAnnouncement/DeleteLifePayAnnouncement', {
+    method: 'GET',
+    params: {
+      ...params,
+    },
+    ...(options || {}),
+  });
+}
+
+/** 鑾峰彇鍏憡鍒嗛〉 POST /api/LifePayAnnouncement/GetLifePayAnnouncementPage */
+export async function getLifePayAnnouncementPage(
+  body: API.GetLifePayAnnouncementPageInput,
+  options?: API.RequestConfig
+) {
+  return request<API.CreateEditLifePayAnnouncementOutputPageOutput>(
+    '/api/LifePayAnnouncement/GetLifePayAnnouncementPage',
+    {
+      method: 'POST',
+      headers: {
+        'Content-Type': 'application/json',
+      },
+      data: body,
+      ...(options || {}),
+    }
+  );
+}
+
+/** 鑾峰彇褰撳墠灞曠ず涓殑鍏憡 GET /api/LifePayAnnouncement/GetShowingLifePayAnnouncement */
+export async function getShowingLifePayAnnouncement(options?: API.RequestConfig) {
+  return request<API.CreateEditLifePayAnnouncementOutput>(
+    '/api/LifePayAnnouncement/GetShowingLifePayAnnouncement',
+    {
+      method: 'GET',
+      ...(options || {}),
+    }
+  );
+}
diff --git a/packages/services/api/LifePayRate.ts b/packages/services/api/LifePayRate.ts
new file mode 100644
index 0000000..6d326d1
--- /dev/null
+++ b/packages/services/api/LifePayRate.ts
@@ -0,0 +1,81 @@
+/* eslint-disable */
+// @ts-ignore
+import { request } from '@/utils/request';
+
+/** 鏂板缂栬緫鎶樻墸閫氶亾閰嶇疆 POST /api/LifePayRate/CreateOrEditLifePayRateChannel */
+export async function createOrEditLifePayRateChannel(
+  body: API.CreateEditRateChannelInput,
+  options?: API.RequestConfig
+) {
+  return request<number>('/api/LifePayRate/CreateOrEditLifePayRateChannel', {
+    method: 'POST',
+    headers: {
+      'Content-Type': 'application/json',
+    },
+    data: body,
+    ...(options || {}),
+  });
+}
+
+/** 鍒犻櫎鎶樻墸閫氶亾 POST /api/LifePayRate/DeleteRateChannel */
+export async function deleteRateChannel(
+  // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+  params: API.APIdeleteRateChannelParams,
+  options?: API.RequestConfig
+) {
+  return request<number>('/api/LifePayRate/DeleteRateChannel', {
+    method: 'POST',
+    params: {
+      ...params,
+    },
+    ...(options || {}),
+  });
+}
+
+/** 鑾峰彇鎶樻墸閫氶亾閰嶇疆鍒楄〃 POST /api/LifePayRate/GetLifePayRateChannelAllList */
+export async function getLifePayRateChannelAllList(
+  body: API.QueryRateChannelInput,
+  options?: API.RequestConfig
+) {
+  return request<API.CreateEditRateChannelOutput[]>(
+    '/api/LifePayRate/GetLifePayRateChannelAllList',
+    {
+      method: 'POST',
+      headers: {
+        'Content-Type': 'application/json',
+      },
+      data: body,
+      ...(options || {}),
+    }
+  );
+}
+
+/** 鑾峰彇鎶樻墸閫氶亾閰嶇疆鍒嗛〉 POST /api/LifePayRate/GetLifePayRateChannelPage */
+export async function getLifePayRateChannelPage(body: API.PageInput, options?: API.RequestConfig) {
+  return request<API.CreateEditRateChannelOutputPageOutput>(
+    '/api/LifePayRate/GetLifePayRateChannelPage',
+    {
+      method: 'POST',
+      headers: {
+        'Content-Type': 'application/json',
+      },
+      data: body,
+      ...(options || {}),
+    }
+  );
+}
+
+/** 璁剧疆鎶樻墸閫氶亾鐘舵�� GET /api/LifePayRate/SetRateChannelStatus */
+export async function setRateChannelStatus(
+  // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+  params: API.APIsetRateChannelStatusParams,
+  options?: API.RequestConfig
+) {
+  return request<number>('/api/LifePayRate/SetRateChannelStatus', {
+    method: 'GET',
+    params: {
+      ...params,
+    },
+    ...(options || {}),
+  });
+}
diff --git a/packages/services/api/WxPayNotify.ts b/packages/services/api/WxPayNotify.ts
index fa00992..ac15ac8 100644
--- a/packages/services/api/WxPayNotify.ts
+++ b/packages/services/api/WxPayNotify.ts
@@ -17,6 +17,21 @@
   });
 }
 
+/** 姝ゅ鍚庣娌℃湁鎻愪緵娉ㄩ噴 POST /api/WxPayNotify/WxPayDomesticRefundsNotifyImp */
+export async function wxPayDomesticRefundsNotifyImp(
+  body: API.WxPayDomesticRefundsNotice,
+  options?: API.RequestConfig
+) {
+  return request<any>('/api/WxPayNotify/WxPayDomesticRefundsNotifyImp', {
+    method: 'POST',
+    headers: {
+      'Content-Type': 'application/json',
+    },
+    data: body,
+    ...(options || {}),
+  });
+}
+
 /** 寰俊鏀粯鍥炶皟閫氱煡 POST /api/WxPayNotify/WxRechargeNotify */
 export async function wxRechargeNotify(
   body: API.WxRechargeNotifyInput,
diff --git a/packages/services/api/index.ts b/packages/services/api/index.ts
index 8bc1a3d..002daba 100644
--- a/packages/services/api/index.ts
+++ b/packages/services/api/index.ts
@@ -14,6 +14,8 @@
 import * as IdentityUser from './IdentityUser';
 import * as IdentityUserLookup from './IdentityUserLookup';
 import * as LifePay from './LifePay';
+import * as LifePayAnnouncement from './LifePayAnnouncement';
+import * as LifePayRate from './LifePayRate';
 import * as Log from './Log';
 import * as OperateHistory from './OperateHistory';
 import * as Permissions from './Permissions';
@@ -38,6 +40,8 @@
   IdentityUser,
   IdentityUserLookup,
   LifePay,
+  LifePayAnnouncement,
+  LifePayRate,
   Log,
   OperateHistory,
   Permissions,
diff --git a/packages/services/api/typings.d.ts b/packages/services/api/typings.d.ts
index 6640eab..565bd1b 100644
--- a/packages/services/api/typings.d.ts
+++ b/packages/services/api/typings.d.ts
@@ -139,6 +139,10 @@
     column?: ModuleColumnDto[];
   }
 
+  type AnnouncementStatusEnum = 10 | 20 | 30;
+
+  type AnnouncementTypeEnum = 10 | 20;
+
   interface APIaddOrEditModuleStatusParams {
     id?: string;
     isMenu?: number;
@@ -169,6 +173,10 @@
     id?: string;
   }
 
+  interface APIdeleteLifePayAnnouncementParams {
+    id?: string;
+  }
+
   interface APIdeleteModuleButtonParams {
     id?: string;
   }
@@ -178,6 +186,10 @@
   }
 
   interface APIdeleteModuleParams {
+    id?: string;
+  }
+
+  interface APIdeleteRateChannelParams {
     id?: string;
   }
 
@@ -390,6 +402,11 @@
   interface APIsetLifePayChannelsStatusParams {
     id?: string;
     status?: LifePayChannelsStatsEnum;
+  }
+
+  interface APIsetRateChannelStatusParams {
+    id?: string;
+    status?: LifePayRateChannelStatus;
   }
 
   interface APIstatisticsByDateParams {
@@ -717,6 +734,36 @@
     customerResources?: string;
   }
 
+  interface CreateEditLifePayAnnouncementInput {
+    id?: string;
+    announcementType: AnnouncementTypeEnum;
+    /** 鐢熸晥鏃ユ湡 */
+    startTime: string;
+    /** 鎴鏃ユ湡 */
+    endTime: string;
+    /** 鍏憡鍐呭 */
+    announcementContent: string;
+  }
+
+  interface CreateEditLifePayAnnouncementOutput {
+    id?: string;
+    announcementType: AnnouncementTypeEnum;
+    /** 鐢熸晥鏃ユ湡 */
+    startTime: string;
+    /** 鎴鏃ユ湡 */
+    endTime: string;
+    /** 鍏憡鍐呭 */
+    announcementContent: string;
+    creationTime?: string;
+    status?: AnnouncementStatusEnum;
+  }
+
+  interface CreateEditLifePayAnnouncementOutputPageOutput {
+    pageModel?: Pagination;
+    objectData?: any;
+    data?: CreateEditLifePayAnnouncementOutput[];
+  }
+
   interface CreateEditPayChannelsInput {
     id?: string;
     channlesName?: string;
@@ -741,6 +788,45 @@
     pageModel?: Pagination;
     objectData?: any;
     data?: CreateEditPayChannelsInput[];
+  }
+
+  interface CreateEditRateChannelInput {
+    id?: string;
+    lifePayOrderType: LifePayOrderTypeEnum;
+    /** 閫氶亾 */
+    rateChannelName: string;
+    /** ID */
+    code: string;
+    /** 渚涘簲鍟嗘姌鎵� */
+    supplierRate: number;
+    /** 骞冲彴鎶樻墸 */
+    platformRate: number;
+    status: LifePayRateChannelStatus;
+    /** 閫氱煡鍐呭 */
+    remark: string;
+  }
+
+  interface CreateEditRateChannelOutput {
+    id?: string;
+    lifePayOrderType: LifePayOrderTypeEnum;
+    /** 閫氶亾 */
+    rateChannelName: string;
+    /** ID */
+    code: string;
+    /** 渚涘簲鍟嗘姌鎵� */
+    supplierRate: number;
+    /** 骞冲彴鎶樻墸 */
+    platformRate: number;
+    status: LifePayRateChannelStatus;
+    /** 閫氱煡鍐呭 */
+    remark: string;
+    creationTime?: string;
+  }
+
+  interface CreateEditRateChannelOutputPageOutput {
+    pageModel?: Pagination;
+    objectData?: any;
+    data?: CreateEditRateChannelOutput[];
   }
 
   interface CreateLifePayOrderOutput {
@@ -1050,6 +1136,15 @@
 
   interface GetFeatureListResultDto {
     groups?: FeatureGroupDto[];
+  }
+
+  interface GetLifePayAnnouncementPageInput {
+    pageModel?: Pagination;
+    creationTimeBegin?: string;
+    creationTimeEnd?: string;
+    startTime?: string;
+    endTime?: string;
+    status?: AnnouncementStatusEnum;
   }
 
   interface GetOperateHistoryInput {
@@ -1632,6 +1727,8 @@
     id?: string;
   }
 
+  type LifePayRateChannelStatus = 10 | -10;
+
   interface LifePayRateInput {
     rateType?: LifePayRateTypeEnum;
     rate?: number;
@@ -2202,6 +2299,10 @@
     phoneChargeOrder?: PhoneChargeOrderOutput;
   }
 
+  interface QueryRateChannelInput {
+    status?: LifePayRateChannelStatus;
+  }
+
   interface QueryUserAccountAllListInput {
     pageModel?: Pagination;
     checkChannelId?: string;
@@ -2245,6 +2346,13 @@
     receiveList?: ReceiptsDetail[];
     /** 30澶╂敹鍏� */
     incomeList?: ReceiptsDetail[];
+  }
+
+  interface RefundAmount {
+    total: number;
+    refund: number;
+    payerTotal: string;
+    payerRefund: string;
   }
 
   interface RefundLifePayOrderInput {
@@ -2781,6 +2889,15 @@
     unionId?: string;
   }
 
+  interface WxPayDomesticRefundsNotice {
+    mchid?: string;
+    outTradeNo?: string;
+    transactionId?: string;
+    outRefundNo?: string;
+    refundStatus?: string;
+    amount?: RefundAmount;
+  }
+
   interface WxPayDomesticRefundsQueryReponse {
     code?: string;
     message?: string;

--
Gitblit v1.9.1