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" }); }