From a1d7e81859f554f3a53680cc35f0f49bf1f77098 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 14 五月 2026 14:37:02 +0800
Subject: [PATCH] 导入项目

---
 src/api/mall/promotion/kefu/conversation/index.ts |   39 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/src/api/mall/promotion/kefu/conversation/index.ts b/src/api/mall/promotion/kefu/conversation/index.ts
new file mode 100644
index 0000000..eb6eb9c
--- /dev/null
+++ b/src/api/mall/promotion/kefu/conversation/index.ts
@@ -0,0 +1,39 @@
+import request from '@/config/axios'
+
+export interface KeFuConversationRespVO {
+  id: number // 缂栧彿
+  userId: number // 浼氳瘽鎵�灞炵敤鎴�
+  userAvatar: string // 浼氳瘽鎵�灞炵敤鎴峰ご鍍�
+  userNickname: string // 浼氳瘽鎵�灞炵敤鎴锋樀绉�
+  lastMessageTime: Date // 鏈�鍚庤亰澶╂椂闂�
+  lastMessageContent: string // 鏈�鍚庤亰澶╁唴瀹�
+  lastMessageContentType: number // 鏈�鍚庡彂閫佺殑娑堟伅绫诲瀷
+  adminPinned: boolean // 绠$悊绔疆椤�
+  userDeleted: boolean // 鐢ㄦ埛鏄惁鍙
+  adminDeleted: boolean // 绠$悊鍛樻槸鍚﹀彲瑙�
+  adminUnreadMessageCount: number // 绠$悊鍛樻湭璇绘秷鎭暟
+  createTime?: string // 鍒涘缓鏃堕棿
+}
+
+// 瀹㈡湇浼氳瘽 API
+export const KeFuConversationApi = {
+  // 鑾峰緱瀹㈡湇浼氳瘽鍒楄〃
+  getConversationList: async () => {
+    return await request.get({ url: '/promotion/kefu-conversation/list' })
+  },
+  // 鑾峰緱瀹㈡湇浼氳瘽
+  getConversation: async (id: number) => {
+    return await request.get({ url: `/promotion/kefu-conversation/get?id=` + id })
+  },
+  // 瀹㈡湇浼氳瘽缃《
+  updateConversationPinned: async (data: any) => {
+    return await request.put({
+      url: '/promotion/kefu-conversation/update-conversation-pinned',
+      data
+    })
+  },
+  // 鍒犻櫎瀹㈡湇浼氳瘽
+  deleteConversation: async (id: number) => {
+    return await request.delete({ url: `/promotion/kefu-conversation/delete?id=${id}` })
+  }
+}

--
Gitblit v1.8.0