123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308 |
- import { request } from "umi";
- import { commonParams } from "./index";
- /**
- * 系统设计图列表
- * @param
- */
- export const FlowchartMindMapList = (data: commonParams) => {
- return request("/api/flowchartMindMap/list", {
- method: "POST",
- data,
- });
- };
- /**
- * 系统设计图详情
- * @param
- */
- export const FlowchartMindMapInfo = (data: { id: string }) => {
- return request("/api/flowchartMindMap/info", {
- method: "POST",
- data,
- });
- };
- /**
- * 添加系统设计图
- * @param 1思维导图 其他自定义
- */
- export const AddGraph = (data: { type: string, folderId: string }) => {
- return request("/api/flowchartMindMap/addGraph", {
- method: "POST",
- data,
- });
- };
- /**
- * 修改系统设计图信息
- * @param
- */
- export const EditGraph = (data) => {
- return request("/api/flowchartMindMap/editGraph", {
- method: "POST",
- data,
- });
- };
- /**
- * 删除系统设计图信息
- * @param
- */
- export const DeleteGraph = (data: { id: string }) => {
- return request("/api/flowchartMindMap/deleteGraph", {
- method: "POST",
- data,
- });
- };
- /**
- * 添加流程图元素
- * @param
- */
- export const AddFlowchartElement = (data) => {
- return request("/api/flowchartMindMap/addFlowchartElement", {
- method: "POST",
- data,
- });
- };
- /**
- * 编辑流程图元素
- * @param
- */
- export const EditFlowchartElement = (data) => {
- return request("/api/flowchartMindMap/editFlowchartElement", {
- method: "POST",
- data,
- });
- };
- /**
- * 删除流程图元素
- * @param
- */
- export const DeleteFlowchartElement = (data: { id: string }) => {
- return request("/api/flowchartMindMap/deleteFlowchartElement", {
- method: "POST",
- data,
- });
- };
- /**
- * 批量新增思维导图元素
- * @param
- */
- export const BatchAddFlowchartElement = (data: any[]) => {
- return request("/api/flowchartMindMap/batchAddFlowchartElement", {
- method: "POST",
- data,
- });
- };
- /**
- * 批量删除流程图元素
- * @param
- */
- export const BatchDeleteFlowchartElement = (data: { ids: string[] }) => {
- return request("/api/flowchartMindMap/batchDeleteFlowchartElement", {
- method: "POST",
- data,
- });
- };
- /**
- * 批量编辑思维导图元素
- * @param
- */
- export const BatchEditFlowchartElement = (data: any[]) => {
- return request("/api/flowchartMindMap/batchEditFlowchartElement", {
- method: "POST",
- data,
- });
- };
- /**
- * 添加思维导图元素
- * @param
- */
- export const AddMindMapElement = (data) => {
- return request("/api/flowchartMindMap/addMindMapElement", {
- method: "POST",
- data,
- });
- };
- /**
- * 编辑思维导图元素
- * @param
- */
- export const EditMindMapElement = (data) => {
- return request("/api/flowchartMindMap/editMindMapElement", {
- method: "POST",
- data,
- });
- };
- /**
- * 删除思维导图元素
- * @param
- */
- export const DeleteMindMapElement = (data: { id: string }) => {
- return request("/api/flowchartMindMap/deleteMindMapElement", {
- method: "POST",
- data,
- });
- };
- /**
- * 批量新增思维导图元素
- * @param
- */
- export const BatchAddMindMapElement = (data: any[]) => {
- return request("/api/flowchartMindMap/batchAddMindMapElement", {
- method: "POST",
- data,
- });
- };
- /**
- * 批量删除思维导图元素
- * @param
- */
- export const BatchDeleteMindMapElement = (data: { ids: string[] }) => {
- return request("/api/flowchartMindMap/batchDeleteMindMapElement", {
- method: "POST",
- data,
- });
- };
- /**
- * 批量编辑思维导图元素
- * @param
- */
- export const BatchEditMindMapElement = (data: any[]) => {
- return request("/api/flowchartMindMap/batchEditMindMapElement", {
- method: "POST",
- data,
- });
- };
- /**
- * 新增文件夹
- * @param
- */
- export const AddFolder = (data: { name: string, parentId: string }) => {
- return request("/api/flowchartMindMap/addFolder", {
- method: "POST",
- data,
- });
- };
- /**
- * 编辑文件夹
- * @param
- */
- export const EditFolder = (data: { id: string, name: string }) => {
- return request("/api/flowchartMindMap/editFolder", {
- method: "POST",
- data,
- });
- };
- /**
- * 删除文件夹
- * @param
- */
- export const DeleteFolder = (data: { id: string }) => {
- return request("/api/flowchartMindMap/deleteFolder", {
- method: "POST",
- data,
- });
- };
- /**
- * 移动文件/文件夹
- * @param
- */
- export const Move = (data: { fileType: "folder" | "chart", fileId: string, targetFolderId: string }) => {
- return request("/api/flowchartMindMap/move", {
- method: "POST",
- data,
- });
- };
- /**
- * 移动文件/文件夹
- * @param
- */
- export const Copy = (data: { fileType: "folder" | "chart", fileId: string, targetFolderId: string }) => {
- return request("/api/flowchartMindMap/copy", {
- method: "POST",
- data,
- });
- };
- /**
- * 全部文件夹
- * @param
- */
- export const GetAllFolders = () => {
- return request("/api/flowchartMindMap/getAllFolders", {
- method: "POST",
- });
- };
- /**
- * 保存全部
- * @param
- */
- export const SaveAll = (data: any) => {
- return request("/api/flowchartMindMap/saveAll", {
- method: "POST",
- data
- });
- };
- /**
- * 最近文件
- * @param
- */
- export const RecentFile = () => {
- return request("/api/flowchartMindMap/recentFile", {
- method: "POST",
- });
- };
- /**
- * 历史记录列表
- * @param
- */
- export const HistoryList = (data: {id: string}) => {
- return request("/api/flowchartMindMap/history/list", {
- method: "POST",
- data
- });
- };
- /**
- * 删除历史记录
- * @param
- */
- export const DeleteHistory = (data: {id: string}) => {
- return request("/api/flowchartMindMap/history/delete", {
- method: "POST",
- data
- });
- };
- /**
- * 恢复历史记录
- * @param
- */
- export const RevertHistory = (data: {id: string}) => {
- return request("/api/flowchartMindMap/history/revert", {
- method: "POST",
- data
- });
- };
|