Tcsm
2023-04-07 d173892fe80f02f2779ab0f0fe26ef450bfd79c5
ruoyi-ui/src/api/self/index.js
@@ -1,7 +1,7 @@
import request from '@/utils/request'
// 查询个人信息
export function getIndividualInfo(id) {
export function getIndividualList() {
  return request({
    url: '/self/user' ,
    method: 'get',
@@ -80,6 +80,113 @@
{
  return request({
    url: '/zExperience' +ids,
    method: 'del',
    method: 'delete',
  })
}
// 查询持有出入境证件情况
export function getCertificateList() {
  return request({
    url: '/zCertificate/all' ,
    method: 'get',
  })
}
//增加持有出入境证件情况
export function addCertificate(data)
{
  return request({
    url: '/zCertificate',
    method: 'post',
    data: data
  })
}
//修改持有出入境证件情况
export function updateCertificate(data) {
  return request({
    url: '/zCertificate',
    method: 'put',
    data: data
  })
}
//删除持有出入境证件情况
export function delCertificate(ids)
{
  return request({
    url: '/zCertificate' +ids,
    method: 'delete',
  })
}
// 查询出国情况
export function getAbroadList() {
  return request({
    url: '/zAbroad/all' ,
    method: 'get',
  })
}
//增加出国情况
export function addAbroad(data)
{
  return request({
    url: '/zAbroad',
    method: 'post',
    data: data
  })
}
//修改出国情况
export function updateAbroad(data) {
  return request({
    url: '/zAbroad',
    method: 'put',
    data: data
  })
}
//删除出国情况
export function delAbroad()
{
  return request({
    url: '/zAbroad/1' ,
    method: 'delete',
  })
}
//查询个人所有自传
export function getAutobiographyList() {
  return request({
    url: '/zAutobiography/all' ,
    method: 'get',
  })
}
//根据不同时期查询个人所有自传
export function getAutobiographyTermList() {
  return request({
    url: '/zAutobiography/byTerm' ,
    method: 'get',
  })
}
//修改个人自传
export function updateAutobiography(data) {
  return request({
    url: '/zAutobiography/',
    method: 'put',
    data: data
  })
}
//新增个人自传
export function addAutobiography(data)
{
  return request({
    url: '/zAutobiography/',
    method: 'post',
    data: data
  })
}