From 92544173d5fc7270427e1642b82b24314e68ecd9 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期五, 06 六月 2025 21:41:48 +0800 Subject: [PATCH] fix: v1.4 --- packages/services/api/typings.d.ts | 142 +++++++++++++++++++++++ apps/taro/tsconfig.json | 1 packages/services/api/index.ts | 4 apps/taro/inspect.config.js | 24 ++-- packages/services/api/Sync.ts | 11 + packages/services/api/Promoter.ts | 108 ++++++++++++++++++ packages/services/api/LifePay.ts | 15 ++ 7 files changed, 292 insertions(+), 13 deletions(-) diff --git a/apps/taro/inspect.config.js b/apps/taro/inspect.config.js index 025906c..b67ae9d 100644 --- a/apps/taro/inspect.config.js +++ b/apps/taro/inspect.config.js @@ -29,7 +29,7 @@ '@tarojs/runtime': 'F:\\bole\\LifePaymentFront\\node_modules\\.pnpm\\@tarojs+runtime@3.6.20\\node_modules\\@tarojs\\runtime\\dist\\runtime.esm.js', '@tarojs/shared': 'F:\\bole\\LifePaymentFront\\node_modules\\.pnpm\\@tarojs+shared@3.6.20\\node_modules\\@tarojs\\shared\\dist\\shared.esm.js', '@': 'F:\\bole\\LifePaymentFront\\apps\\taro\\src', - '@life-payment/components': 'F:\\bole\\LifePaymentFront\\apps\\taro\\node_modules\\@life-payment\\components', + '@life-payment/components': 'F:\\bole\\LifePaymentFront\\packages\\components', '@tarojs/components$': '@tarojs/plugin-platform-weapp/dist/components-react', '@tarojs/plugin-http/dist/runtime': 'F:\\bole\\LifePaymentFront\\node_modules\\.pnpm\\@tarojs+plugin-http@3.6.20_postcss@8.5.3_vue@3.5.12\\node_modules\\@tarojs\\plugin-http\\dist\\runtime.js' }, @@ -6034,7 +6034,7 @@ }, alias: { '@': 'F:\\bole\\LifePaymentFront\\apps\\taro\\src', - '@life-payment/components': 'F:\\bole\\LifePaymentFront\\apps\\taro\\node_modules\\@life-payment\\components' + '@life-payment/components': 'F:\\bole\\LifePaymentFront\\packages\\components' }, sourceRoot: 'src', outputRoot: 'dist/weapp', @@ -7092,7 +7092,7 @@ }, alias: { '@': 'F:\\bole\\LifePaymentFront\\apps\\taro\\src', - '@life-payment/components': 'F:\\bole\\LifePaymentFront\\apps\\taro\\node_modules\\@life-payment\\components' + '@life-payment/components': 'F:\\bole\\LifePaymentFront\\packages\\components' }, sourceRoot: 'src', outputRoot: 'dist/weapp', @@ -8237,7 +8237,7 @@ }, alias: { '@': 'F:\\bole\\LifePaymentFront\\apps\\taro\\src', - '@life-payment/components': 'F:\\bole\\LifePaymentFront\\apps\\taro\\node_modules\\@life-payment\\components' + '@life-payment/components': 'F:\\bole\\LifePaymentFront\\packages\\components' }, sourceRoot: 'src', outputRoot: 'dist/weapp', @@ -9295,7 +9295,7 @@ }, alias: { '@': 'F:\\bole\\LifePaymentFront\\apps\\taro\\src', - '@life-payment/components': 'F:\\bole\\LifePaymentFront\\apps\\taro\\node_modules\\@life-payment\\components' + '@life-payment/components': 'F:\\bole\\LifePaymentFront\\packages\\components' }, sourceRoot: 'src', outputRoot: 'dist/weapp', @@ -10518,7 +10518,7 @@ ], [ '@life-payment/components', - 'F:\\bole\\LifePaymentFront\\apps\\taro\\node_modules\\@life-payment\\components' + 'F:\\bole\\LifePaymentFront\\packages\\components' ], [ '@tarojs/components$', @@ -12559,7 +12559,7 @@ }, alias: { '@': 'F:\\bole\\LifePaymentFront\\apps\\taro\\src', - '@life-payment/components': 'F:\\bole\\LifePaymentFront\\apps\\taro\\node_modules\\@life-payment\\components' + '@life-payment/components': 'F:\\bole\\LifePaymentFront\\packages\\components' }, sourceRoot: 'src', outputRoot: 'dist/weapp', @@ -13617,7 +13617,7 @@ }, alias: { '@': 'F:\\bole\\LifePaymentFront\\apps\\taro\\src', - '@life-payment/components': 'F:\\bole\\LifePaymentFront\\apps\\taro\\node_modules\\@life-payment\\components' + '@life-payment/components': 'F:\\bole\\LifePaymentFront\\packages\\components' }, sourceRoot: 'src', outputRoot: 'dist/weapp', @@ -20861,7 +20861,7 @@ ], [ '@life-payment/components', - 'F:\\bole\\LifePaymentFront\\apps\\taro\\node_modules\\@life-payment\\components' + 'F:\\bole\\LifePaymentFront\\packages\\components' ], [ '@tarojs/components$', @@ -21119,7 +21119,7 @@ }, alias: { '@': 'F:\\bole\\LifePaymentFront\\apps\\taro\\src', - '@life-payment/components': 'F:\\bole\\LifePaymentFront\\apps\\taro\\node_modules\\@life-payment\\components' + '@life-payment/components': 'F:\\bole\\LifePaymentFront\\packages\\components' }, sourceRoot: 'src', outputRoot: 'dist/weapp', @@ -22177,7 +22177,7 @@ }, alias: { '@': 'F:\\bole\\LifePaymentFront\\apps\\taro\\src', - '@life-payment/components': 'F:\\bole\\LifePaymentFront\\apps\\taro\\node_modules\\@life-payment\\components' + '@life-payment/components': 'F:\\bole\\LifePaymentFront\\packages\\components' }, sourceRoot: 'src', outputRoot: 'dist/weapp', @@ -29372,7 +29372,7 @@ ], [ '@life-payment/components', - 'F:\\bole\\LifePaymentFront\\apps\\taro\\node_modules\\@life-payment\\components' + 'F:\\bole\\LifePaymentFront\\packages\\components' ], [ '@tarojs/components$', diff --git a/apps/taro/tsconfig.json b/apps/taro/tsconfig.json index 586ee37..36b82a1 100644 --- a/apps/taro/tsconfig.json +++ b/apps/taro/tsconfig.json @@ -4,7 +4,6 @@ "baseUrl": ".", "ignoreDeprecations": "5.0", "paths": { - "@life-payment/*": ["../../packages/*"], "@/*": ["src/*"] }, "composite": true, diff --git a/packages/services/api/LifePay.ts b/packages/services/api/LifePay.ts index 9961f02..f314ca5 100644 --- a/packages/services/api/LifePay.ts +++ b/packages/services/api/LifePay.ts @@ -839,6 +839,21 @@ }); } +/** 鑾峰彇鎸囧畾澶╂暟鐨勭粺璁℃暟鎹� POST /api/LifePay/StatisticsByDate */ +export async function statisticsByDate( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIstatisticsByDateParams, + options?: API.RequestConfig +) { + return request<number>('/api/LifePay/StatisticsByDate', { + method: 'POST', + params: { + ...params, + }, + ...(options || {}), + }); +} + /** 淇敼瀹為檯鍒拌处閲戦 POST /api/LifePay/UpdateLifePayOrderActualReceivedAmount */ export async function updateLifePayOrderActualReceivedAmount( body: API.UpdateLifePayOrderInput, diff --git a/packages/services/api/Promoter.ts b/packages/services/api/Promoter.ts new file mode 100644 index 0000000..4b533ed --- /dev/null +++ b/packages/services/api/Promoter.ts @@ -0,0 +1,108 @@ +/* eslint-disable */ +// @ts-ignore +import { request } from '@/utils/request'; + +/** 鐢宠娓犻亾鍜ㄨ POST /api/Promoter/CreateChannelConsultation */ +export async function createChannelConsultation( + body: API.CreateChannelConsultationInput, + options?: API.RequestConfig +) { + return request<string>('/api/Promoter/CreateChannelConsultation', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 鏂板鍥炶 POST /api/Promoter/CreateChannelConsultationFollowup */ +export async function createChannelConsultationFollowup( + body: API.CreateChannelConsultationFollowupInput, + options?: API.RequestConfig +) { + return request<string>('/api/Promoter/CreateChannelConsultationFollowup', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 鍒涘缓鎴栨洿鏂版帹骞垮憳 POST /api/Promoter/CreateOrUpdatePromoter */ +export async function createOrUpdatePromoter( + body: API.CreateOrUpdatePromoterInput, + options?: API.RequestConfig +) { + return request<string>('/api/Promoter/CreateOrUpdatePromoter', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 鑾峰彇娓犻亾鍜ㄨ鍒楄〃 POST /api/Promoter/GetChannelConsultation */ +export async function getChannelConsultation( + body: API.GetChannelConsultationsInput, + options?: API.RequestConfig +) { + return request<API.ChannelConsultationDtoPageOutput>('/api/Promoter/GetChannelConsultation', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 鑾峰彇娓犻亾鍜ㄨ鍥炶璁板綍 GET /api/Promoter/GetChannelConsultationFollowupList */ +export async function getChannelConsultationFollowupList( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetChannelConsultationFollowupListParams, + options?: API.RequestConfig +) { + return request<API.ChannelConsultationFollowupDto[]>( + '/api/Promoter/GetChannelConsultationFollowupList', + { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + } + ); +} + +/** 鑾峰彇鎺ㄥ箍鍛樺垪琛� POST /api/Promoter/GetPromoters */ +export async function getPromoters(body: API.GetPromotersInput, options?: API.RequestConfig) { + return request<API.PromoterDtoPageOutput>('/api/Promoter/GetPromoters', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 鐐瑰嚮鏁�+1 POST /api/Promoter/SetClickCount */ +export async function setClickCount( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIsetClickCountParams, + options?: API.RequestConfig +) { + return request<any>('/api/Promoter/SetClickCount', { + method: 'POST', + params: { + ...params, + }, + ...(options || {}), + }); +} diff --git a/packages/services/api/Sync.ts b/packages/services/api/Sync.ts new file mode 100644 index 0000000..9a78311 --- /dev/null +++ b/packages/services/api/Sync.ts @@ -0,0 +1,11 @@ +/* eslint-disable */ +// @ts-ignore +import { request } from '@/utils/request'; + +/** 鍚屾娴嬭瘯璁㈠崟鏁版嵁 POST /api/Sync/SyncFromTest */ +export async function syncFromTest(options?: API.RequestConfig) { + return request<string[]>('/api/Sync/SyncFromTest', { + method: 'POST', + ...(options || {}), + }); +} diff --git a/packages/services/api/index.ts b/packages/services/api/index.ts index 1c47d7b..3f1adbc 100644 --- a/packages/services/api/index.ts +++ b/packages/services/api/index.ts @@ -18,6 +18,8 @@ import * as Permissions from './Permissions'; import * as PhoneMessage from './PhoneMessage'; import * as Profile from './Profile'; +import * as Promoter from './Promoter'; +import * as Sync from './Sync'; import * as Tenant from './Tenant'; import * as UserRole from './UserRole'; import * as Version from './Version'; @@ -39,6 +41,8 @@ Permissions, PhoneMessage, Profile, + Promoter, + Sync, Tenant, UserRole, Version, diff --git a/packages/services/api/typings.d.ts b/packages/services/api/typings.d.ts index 17297cc..e399924 100644 --- a/packages/services/api/typings.d.ts +++ b/packages/services/api/typings.d.ts @@ -240,6 +240,11 @@ orderNo?: string; } + interface APIgetChannelConsultationFollowupListParams { + /** 娓犻亾鍜ㄨId */ + id?: string; + } + interface APIgetCountParams { filter?: string; } @@ -360,6 +365,10 @@ maxResultCount?: number; } + interface APIsetClickCountParams { + idnumber?: string; + } + interface APIsetForRoleParams { roleName?: string; permissionName?: string; @@ -373,6 +382,10 @@ interface APIsetLifePayChannelsStatusParams { id?: string; status?: LifePayChannelsStatsEnum; + } + + interface APIstatisticsByDateParams { + days?: number; } interface APItestAliRechargeNotifyParams { @@ -524,6 +537,51 @@ type?: number; } + interface ChannelConsultationDto { + /** Id */ + id?: string; + /** 鍜ㄨ鏃堕棿 */ + creationTime?: string; + /** 鍜ㄨ浜� */ + name?: string; + agentType?: LifePayChannelAgentType; + /** 鑱旂郴鏂瑰紡 */ + phoneNumber?: string; + /** 鍏徃鍚嶇О */ + companyName?: string; + /** 瀹㈡埛璧勬簮 */ + customerResources?: string; + /** ID */ + promoterIdNumber?: string; + /** 鎺ㄥ箍鍛� */ + promoterName?: string; + /** 鑱旂郴鏂瑰紡 */ + promoterPhoneNumber?: string; + followupStatus?: LifePayChannelConsultationFollowupStatus; + /** 鏈�杩戝洖璁� */ + lastFollowupTime?: string; + /** 鍥炶璁板綍 */ + followupRemark?: string; + } + + interface ChannelConsultationDtoPageOutput { + pageModel?: Pagination; + objectData?: any; + data?: ChannelConsultationDto[]; + } + + interface ChannelConsultationFollowupDto { + /** 鍥炶浜篒d */ + creatorId?: string; + /** 鍥炶浜� */ + creator?: string; + followupStatus?: LifePayChannelConsultationFollowupStatus; + /** 鍥炶璁板綍 */ + followupRemark?: string; + /** 鍜ㄨ鏃堕棿 */ + creationTime?: string; + } + interface ChannelDataListOutPut { /** Top5娓犻亾鏀舵 */ receiveList?: ChannelDataReceive[]; @@ -627,6 +685,30 @@ remark?: string; } + interface CreateChannelConsultationFollowupInput { + /** 娓犻亾鍜ㄨId */ + channelConsultationId?: string; + followupStatus?: LifePayChannelConsultationFollowupStatus; + /** 鍥炶璁板綍 */ + followupRemark?: string; + } + + interface CreateChannelConsultationInput { + /** 瀹㈡埛绔敤鎴稩d 濡傛湁 */ + userId?: string; + /** 鎺ㄥ箍浜篒d */ + idNumber?: string; + /** 鍜ㄨ浜� */ + name?: string; + agentType?: LifePayChannelAgentType; + /** 鑱旂郴鏂瑰紡 */ + phoneNumber?: string; + /** 鍏徃鍚嶇О */ + companyName?: string; + /** 瀹㈡埛璧勬簮 */ + customerResources?: string; + } + interface CreateEditPayChannelsInput { id?: string; channlesName?: string; @@ -646,6 +728,21 @@ interface CreateLifePayOrderOutput { orderNo?: string; + } + + interface CreateOrUpdatePromoterInput { + /** Id */ + id?: string; + /** 瀹㈡埛绔敤鎴稩d 濡傛湁 */ + userId?: string; + /** ID */ + idNumber?: string; + /** 鎺ㄥ箍鍛� */ + name?: string; + /** 鑱旂郴鏂瑰紡 */ + phoneNumber?: string; + /** 澶囨敞 */ + remark?: string; } interface CreateOrUpdateRoleInput { @@ -917,6 +1014,16 @@ queryCondition?: string; } + interface GetChannelConsultationsInput { + pageModel?: Pagination; + /** 鍒涘缓鐨勫紑濮嬫椂闂� */ + startDate?: string; + /** 鍒涘缓鐨勭粨鏉熸椂闂� */ + endDate?: string; + /** 鎼滅储鍏抽敭璇� */ + searchKey?: string; + } + interface GetFeatureListResultDto { groups?: FeatureGroupDto[]; } @@ -946,6 +1053,10 @@ interface GetPermissionListResultDto { entityDisplayName?: string; groups?: PermissionGroupDto[]; + } + + interface GetPromotersInput { + pageModel?: Pagination; } interface GetRolesInput { @@ -1168,6 +1279,10 @@ channelId?: string; productData?: LifeGasData; } + + type LifePayChannelAgentType = 1 | 2 | 3; + + type LifePayChannelConsultationFollowupStatus = 0 | 1; type LifePayChannelsStatsEnum = 10 | 20; @@ -1909,6 +2024,31 @@ hasPassword?: boolean; } + interface PromoterDto { + /** Id */ + id?: string; + /** 鍜ㄨ鏃堕棿 */ + creationTime?: string; + /** ID */ + idNumber?: string; + /** 鎺ㄥ箍鍛� */ + name?: string; + /** 鑱旂郴鏂瑰紡 */ + phoneNumber?: string; + /** 鐐瑰嚮鏁� */ + clickCount?: number; + /** 鐢宠鏁� */ + applyCount?: number; + /** 澶囨敞 */ + remark?: string; + } + + interface PromoterDtoPageOutput { + pageModel?: Pagination; + objectData?: any; + data?: PromoterDto[]; + } + interface PropertyApiDescriptionModel { name?: string; jsonName?: string; @@ -2248,6 +2388,8 @@ accumulatedUsers?: number; /** 鏄ㄦ棩娲昏穬鐢ㄦ埛 */ yesterdayActiveUsers?: number; + /** 绱浣i噾 */ + accumulatedChannlesRakePrice?: number; } interface TradeFundBill { -- Gitblit v1.9.1