Newer
Older
KaiFengPC / src / api / document / dataClassify.js
@鲁yixuan 鲁yixuan on 19 Aug 1 KB updata
import request from '@/utils/request';

// 分页搜索资料类型
export function getDocumentTypePage(params) {
  return request({
    url: '/business/documentType/page',
    method: 'get',
    params,
  });
}

// 列表搜索资料类型
export function getDocumentTypeList(params) {
  return request({
    url: 'business/documentType/list',
    method: 'get',
    params,
  });
}

// 新增资料类型
export function documentTypeAdd(data) {
  return request({
    url: 'business/documentType/add',
    method: 'post',
    data,
  });
}

// 修改资料类型
export function documentTypeEdit(data) {
  return request({
    url: 'business/documentType/edit',
    method: 'put',
    data,
  });
}

// 资料类型树结构
export function documentTypeTree(params) {
  return request({
    url: 'business/documentType/tree',
    method: 'get',
    params,
  });
}

// 删除
export function documentTypeDel(ids) {
  return request({
    url: `business/documentType/${ids}`,
    method: 'delete',
  });
}

// 资料类型详情
export function documentTypeDetail(id) {
  return request({
    url: `business/documentType/${id}`,
    method: 'get',
  });
}