From 2f83b115973e12107266c920e42cfba31652e62d Mon Sep 17 00:00:00 2001
From: feige <feige@qq.com>
Date: 星期六, 26 十月 2024 21:03:58 +0800
Subject: [PATCH] 修改了bug

---
 ruoyi-ui/src/api/marry/index.js |   45 +++++++++++++++++++++++----------------------
 1 files changed, 23 insertions(+), 22 deletions(-)

diff --git a/ruoyi-ui/src/api/marry/index.js b/ruoyi-ui/src/api/marry/index.js
index 153f8fc..574fa57 100644
--- a/ruoyi-ui/src/api/marry/index.js
+++ b/ruoyi-ui/src/api/marry/index.js
@@ -3,32 +3,42 @@
 // 鏌ヨ鏁版嵁
 export function listMarry(query) {
   return request({
-    url: '/zMarry/list',
+    url: '/marrySelf',
     method: 'get',
     params: query
   })
 }
 
-//鏂板淇℃伅
-export function addMarry(data) {
-    return request({
-      url: '/zMarry',
-      method: 'post'
-    })
-  }
+//鏂板鍓嶄换
+export function addMarryOld(data) {
+  return request({
+    url: '/marryUser',
+    method: 'post',
+    data: data
+  })
+}
 
 // 鍒犻櫎璧勪骇淇℃伅
-export function delMarry(id) {
+export function delMarryOld(query) {
   return request({
-    url: '/zMarry/' + id,
-    method: 'delete'
+    url: '/marryUser',
+    method: 'delete',
+    params: query
+  })
+}
+//淇敼鍓嶄换淇℃伅
+export function updateMarryOld(data) {
+  return request({
+    url: '/marryUser',
+    method: 'put',
+    data: data
   })
 }
 //淇敼淇℃伅
 export function updateMarry(data) {
   return request({
-    url: '/zMarry',
-    method: 'put',
+    url: '/marrySelf',
+    method: 'post',
     data: data
   })
 }
@@ -50,15 +60,6 @@
   })
 }
 
-//鎷垮埌绫诲埆
-export function getCategory()
-{
-  return request({
-    url: '/zDict/byId',
-    method: 'get',
-    params: {'id':22}
-  })
-}
 
 
 //涓婁紶鏂囦欢

--
Gitblit v1.9.1