From cd2b7d36f3610417c268d062454b7ec43e9ca937 Mon Sep 17 00:00:00 2001
From: wsj <593216709@qq.com>
Date: Wed, 28 Oct 2026 22:51:24 +0800
Subject: [PATCH] feat: 日志页面
---
src/pages/customers/list/server.ts | 26 +++++++++++++++++++++++++-
1 files changed, 25 insertions(+), 1 deletions(-)
diff --git a/src/pages/customers/list/server.ts b/src/pages/customers/list/server.ts
index fe6a086..78a208e 100644
--- a/src/pages/customers/list/server.ts
+++ b/src/pages/customers/list/server.ts
@@ -1,6 +1,13 @@
import { getAuthHeaders } from '@/api/authHeaders';
import { request } from '@/api/request';
-import type { TenantCustomerPageQuery, TenantCustomerPageResult } from './types';
+import type {
+ TenantCustomerDetailRequest,
+ TenantCustomerDetailResponse,
+ TenantCustomerFollowUpListRequest,
+ TenantCustomerFollowUpListResponse,
+ TenantCustomerPageQuery,
+ TenantCustomerPageResult,
+} from './types';
/** 查询本租户客户列表(只读)。 */
export const getCustomerList = (params: TenantCustomerPageQuery) =>
@@ -10,3 +17,20 @@
params,
headers: getAuthHeaders(),
});
+
+/** 查询客户详情(只读)。 */
+export const getCustomerDetail = ({ id }: TenantCustomerDetailRequest) =>
+ request<TenantCustomerDetailRequest, TenantCustomerDetailResponse>({
+ url: `/tenant/customers/${id}`,
+ method: 'GET',
+ headers: getAuthHeaders(),
+ });
+
+/** 查询客户跟进历史(只读,按 followAt 倒序)。 */
+export const getCustomerFollowUps = ({ id, ...params }: TenantCustomerFollowUpListRequest) =>
+ request<TenantCustomerFollowUpListRequest, TenantCustomerFollowUpListResponse>({
+ url: `/tenant/customers/${id}/follow-ups`,
+ method: 'GET',
+ params,
+ headers: getAuthHeaders(),
+ });
--
Gitblit v1.9.3