From 46723f74c8152fae880917d273b960900bd8508a Mon Sep 17 00:00:00 2001 From: linwenling <3256558519@qq.com> Date: 星期六, 27 五月 2023 10:09:47 +0800 Subject: [PATCH] 新增婚姻、隐私模块api --- ruoyi-ui/src/api/self/index.js | 37 ++++++++++++++++++++++++++++++++----- 1 files changed, 32 insertions(+), 5 deletions(-) diff --git a/ruoyi-ui/src/api/self/index.js b/ruoyi-ui/src/api/self/index.js index 7c2c640..58824f2 100644 --- a/ruoyi-ui/src/api/self/index.js +++ b/ruoyi-ui/src/api/self/index.js @@ -19,9 +19,9 @@ } // 鍒犻櫎涓汉淇℃伅 -export function delIndividual(Ids) { +export function delIndividual(ids) { return request({ - url: '/self/user' , + url: '/self/user/' +ids, method: 'delete' }) } @@ -49,7 +49,6 @@ //鏌ヨ鎵�鏈変釜浜虹粡鍘� export function listExperience(query) { - return request({ url: '/zExperience/all', method: 'get', @@ -80,7 +79,7 @@ export function delExperience(ids) { return request({ - url: '/zExperience' +ids, + url: '/zExperience/' +ids, method: 'delete', }) } @@ -116,7 +115,7 @@ export function delCertificate(ids) { return request({ - url: '/zCertificate' +ids, + url: '/zCertificate/' +ids, method: 'delete', }) } @@ -191,3 +190,31 @@ data: data }) } + +//鎷垮埌涓汉鑷紶 +export function getCategory() +{ + return request({ + url: '/zDict/byId', + method: 'get', + params: {'id':23} + }) +} + +//涓婁紶鏂囦欢 +export function uploadPic(data) { + return request({ + url: '/common/upload', + method: 'post', + data: data + }) +} +//涓嬭浇鏂囦欢 +export function download(data) { + return request({ + url: '/common/downLoadFile', + method: 'get', + params: data, + responseType: 'blob' + }) +} -- Gitblit v1.9.1