feige
2025-05-06 be016d292a1eb3af5088e17f076e7cc6cab90576
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}
  })
}
//上传文件