From e2f129ee192ae3469848beeceac262b13ba8eacb Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期三, 14 六月 2023 15:52:11 +0800
Subject: [PATCH] 新增页面和配置,对接口

---
 src/api/user.js |   55 ++++++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 46 insertions(+), 9 deletions(-)

diff --git a/src/api/user.js b/src/api/user.js
index 15e2ee5..3ed0cc0 100644
--- a/src/api/user.js
+++ b/src/api/user.js
@@ -18,6 +18,14 @@
     })
 }
 
+export function updateUser(data){
+    return request({
+        url: '/account/user/update/info',
+        method: 'post',
+        data: data,
+    })
+}
+
 export function delUser(id){
     return request({
         url: '/account/user/deleteUser?userId=' + id,
@@ -42,28 +50,57 @@
     })
 }
 
-export function getRecipientById(data){
+export function getRecipientById(id){
     return request({
-        url:'/mesmanager/recipient/findById',
-        method:'post',
-        data:data,
+        url:'/mesmanager/recipient/findById?id=' + id,
+        method:'get'
+    })
+}
+
+export function getPeerRecipient(){
+    return request({
+        url:'/mesmanager/recipient/listPeerRecipient',
+        method:'get'
+    })
+}
+
+export function getAreaWithUserIfo(){
+    return request({
+        url:'/sys/districtInfo/allWithUserIfo',
+        method:'get'
     })
 }
 
 export function addRecipient(data){
     return request({
-        url:'/mesmanager/recipient/page',
+        url:'/mesmanager/recipient/add',
         method:'post',
         data:data,
     })
 }
 
+export function updateRecipient(data){
+    return request({
+        url:'/mesmanager/recipient/update',
+        method:'post',
+        data:data,
+    })
+}
 
+export function delRecipient(id){
+    return request({
+        url:'/mesmanager/recipient/delete?id=' + id,
+        method: 'get'
+    })
+}
 
-
-
-
-
+// 获取同级领导
+export function getLeaders(){
+    return request({
+        url: '/account/user/list/auditors',
+        method: 'get'
+    })
+}
 
 
 

--
Gitblit v1.9.2