From 1e264767dd2ac93e83b57b4e8e6626621fff4c6f Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期二, 20 五月 2025 22:41:03 +0800
Subject: [PATCH] 修改了bug

---
 ruoyi-ui/src/api/marry/index.js |   41 +++++++++++++++++++++--------------------
 1 files changed, 21 insertions(+), 20 deletions(-)

diff --git a/ruoyi-ui/src/api/marry/index.js b/ruoyi-ui/src/api/marry/index.js
index 681a961..f740c16 100644
--- a/ruoyi-ui/src/api/marry/index.js
+++ b/ruoyi-ui/src/api/marry/index.js
@@ -1,7 +1,7 @@
 import request from '@/utils/request'
 
 // 鏌ヨ鏁版嵁
-export function listMarry(query) {
+export function listMarry() {
   return request({
     url: '/marrySelf',
     method: 'get',
@@ -9,19 +9,29 @@
   })
 }
 
-//鏂板淇℃伅
-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
   })
 }
 //淇敼淇℃伅
@@ -50,15 +60,6 @@
   })
 }
 
-//鎷垮埌绫诲埆
-export function getCategory()
-{
-  return request({
-    url: '/zDict/byId',
-    method: 'get',
-    params: {'id':22}
-  })
-}
 
 
 //涓婁紶鏂囦欢

--
Gitblit v1.9.1