From d428cdd48ff4c4dfdeb8c996b94ffc20803ca3a9 Mon Sep 17 00:00:00 2001 From: linwenling <3256558519@qq.com> Date: 星期二, 26 九月 2023 20:40:35 +0800 Subject: [PATCH] 备忘本 --- ruoyi-ui/src/api/marry/index.js | 41 ++++++++++++++++++++--------------------- 1 files changed, 20 insertions(+), 21 deletions(-) diff --git a/ruoyi-ui/src/api/marry/index.js b/ruoyi-ui/src/api/marry/index.js index 153f8fc..d894bc6 100644 --- a/ruoyi-ui/src/api/marry/index.js +++ b/ruoyi-ui/src/api/marry/index.js @@ -3,32 +3,40 @@ // 鏌ヨ鏁版嵁 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' + }) +} // 鍒犻櫎璧勪骇淇℃伅 -export function delMarry(id) { +export function delMarryOld(id) { return request({ - url: '/zMarry/' + id, + url: '/marryUser/' + id, method: 'delete' + }) +} +//淇敼鍓嶄换淇℃伅 +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 +58,6 @@ }) } -//鎷垮埌绫诲埆 -export function getCategory() -{ - return request({ - url: '/zDict/byId', - method: 'get', - params: {'id':22} - }) -} //涓婁紶鏂囦欢 -- Gitblit v1.9.1