From e15df9a20c29044b10772e3587a00d0be03b281d Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期日, 08 十二月 2024 20:57:41 +0800
Subject: [PATCH] 增加了内容
---
ruoyi-ui/src/api/contacts/index.js | 122 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 122 insertions(+), 0 deletions(-)
diff --git a/ruoyi-ui/src/api/contacts/index.js b/ruoyi-ui/src/api/contacts/index.js
index 543ea86..ad2b935 100644
--- a/ruoyi-ui/src/api/contacts/index.js
+++ b/ruoyi-ui/src/api/contacts/index.js
@@ -1 +1,123 @@
import request from '@/utils/request'
+// 鏌ヨ鎵�鏈夐�氳褰�
+export function getContactList(query) {
+ return request({
+ url: '/zfContact/all' ,
+ method: 'get',
+ params: query
+
+ })
+}
+
+// 鏍规嵁id鏌ヨ閫氳褰曡缁嗕俊鎭�
+export function getContactIdList(id) {
+ return request({
+ url: '/zfContact/' + id,
+ method: 'get',
+
+ })
+}
+
+//鏂板閫氳褰�
+export function addContact(data)
+{
+ return request({
+ url: '/zfContact',
+ method: 'post',
+ data: data
+ })
+}
+
+//淇敼閫氳褰�
+export function updateContact(data) {
+ return request({
+ url: '/zfContact',
+ method: 'put',
+ data: data
+ })
+}
+
+// 鍒犻櫎閫氳褰�
+export function delContact(ids) {
+ return request({
+ url: '/zfContact/' +ids,
+ method: 'delete'
+ })
+}
+
+//涓婁紶鏂囦欢
+export function uploadPic(data) {
+ return request({
+ url: '/common/uploads',
+ method: 'post',
+ data: data
+ })
+}
+//涓嬭浇鏂囦欢
+export function download(data) {
+ return request({
+ url: '/common/downLoadFile',
+ method: 'get',
+ params: data,
+ responseType: 'blob'
+ })
+}
+//涓婁紶鏂囦欢
+export function enload(data) {
+ return request({
+ url: '/zfContact/importData',
+ method: 'post',
+ data: data
+ })
+}
+
+// -------------------------------
+// 鍒嗕韩
+export function share(data) {
+ return request({
+ url: '/zfContactShare/share',
+ method: 'post',
+ data: data
+ })
+}
+// 鏌ョ湅鍒嗕韩缁欒皝浜嗕粈涔堟暟鎹�
+export function shareToWho(data,query) {
+ return request({
+ url: '/zfContactShare/getInfoByUserId',
+ method: 'post',
+ data: data,
+ params: query
+ })
+}
+// 鏌ョ湅璋佸垎浜簡鏁版嵁
+export function getWhoShare(query) {
+ return request({
+ url: '/zfContactShare/getInfoByShareId',
+ method: 'get',
+ params: query
+ })
+}
+// 涓嬭浇鍒嗕韩鐨勬暟鎹�
+export function downShareData(data) {
+ return request({
+ url: '/zfContactShare/downloadDate',
+ method: 'post',
+ data: data
+ })
+}
+// 鏀跺洖鍒嗕韩鏁版嵁
+export function deleteShareData(data) {
+ return request({
+ url: '/zfContactShare/deleteInfoByUserId',
+ method: 'post',
+ data: data
+ })
+}
+// 灞曠ず涓嬭浇鐨勬暟鎹�
+export function showShareData(query) {
+ return request({
+ url: '/zfContactShare/all',
+ method: 'get',
+ params: query
+ })
+}
--
Gitblit v1.9.1