From 089bf5d2378b3c4a61d795b2a92bede2c193b771 Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Tue, 06 Jan 2026 11:22:58 +0800
Subject: [PATCH] 1
---
src/api/contacts.js | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 50 insertions(+), 0 deletions(-)
diff --git a/src/api/contacts.js b/src/api/contacts.js
new file mode 100644
index 0000000..e3abd2c
--- /dev/null
+++ b/src/api/contacts.js
@@ -0,0 +1,50 @@
+import { post, get } from '@/utils/request'
+
+// 获取好友列表服务接口
+export const ServeGetContacts = data => {
+ return get('/api/v1/contact/list', data)
+}
+
+// 解除好友关系服务接口
+export const ServeDeleteContact = data => {
+ return post('/api/v1/contact/delete', data)
+}
+
+// 修改好友备注服务接口
+export const ServeEditContactRemark = data => {
+ return post('/api/v1/contact/edit-remark', data)
+}
+
+// 搜索联系人
+export const ServeSearchContact = data => {
+ return get('/api/v1/contact/search', data)
+}
+
+// 好友申请服务接口
+export const ServeCreateContact = data => {
+ return post('/api/v1/contact/apply/create', data)
+}
+
+// 查询好友申请服务接口
+export const ServeGetContactApplyRecords = data => {
+ return get('/api/v1/contact/apply/records', data)
+}
+
+// 处理好友申请服务接口
+export const ServeApplyAccept = data => {
+ return post('/api/v1/contact/apply/accept', data)
+}
+
+export const ServeApplyDecline = data => {
+ return post('/api/v1/contact/apply/decline', data)
+}
+
+// 查询好友申请未读数量服务接口
+export const ServeFindFriendApplyNum = () => {
+ return get('/api/v1/contact/apply/unread-num')
+}
+
+// 搜索用户信息服务接口
+export const ServeSearchUser = data => {
+ return get('/api/v1/contact/detail', data)
+}
\ No newline at end of file
--
Gitblit v1.9.3