searchRecord.js 893 Bytes
/*
 * @Description: 干部查询
 * @Autor:
 * @LastEditTime: 2023-05-12 16:20:40
 */
/* 引入axios请求文件 */
import request from '@/utils/request'
/* 引入配置 */
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
const urlHeader = SERVER.SERVERAPI + '/rest/searchRecord'

/**
 * @description: 获取列表
 * @param {*} data
 * @author:
 */
export function getSearchRecordList (data) {
  return request({
    url: urlHeader + '/getList',
    method: 'post',
    data
  })
}

/**
 * @description: 新增
 * @param {*} data
 * @author:
 */
export function saveSearchRecord (data) {
  return request({
    url: urlHeader + '/search',
    method: 'post',
    data
  })
}


/**
 * @description: 编辑
 * @param {*} id
 * @author:
 */
export function editSearchRecord (id) {
  return request({
    url: urlHeader + '/' + id,
    method: 'get'
  })
}