import { request } from "umi"; type commonParams = { currentPage: number; pageSize: number; orderByProperty: string; Ascending: boolean; totalPage: number; totalCount: number; filters: any[]; }; /** * 查询多语言 * @param data {maxCount: number, searchKey: string, searchLan: "zh-CN" | "en"} * @returns */ export const ListLangBySearchKey = (data: { maxCount: number; searchKey: string; searchLan: "zh-CN" | "en"; }) => { return request("/api/system/ListLangBySearchKey", { method: "POST", data, }); }; /** * 场景查询 * @param data * @returns * { "currentPage": 1, "pageSize": 10, "orderByProperty": "Id", "Ascending": false, "totalPage": 1, "totalCount": 1, "filters": [ { "name": "EnterpriseId" } ] } */ export const GetAllWfScene = (data: commonParams) => { return request("/api/wfScene/GetAllWfScene", { method: "POST", data, }); }; /** * 流程查询 * @param data * @returns * { "currentPage": 1, "pageSize": 10, "orderByProperty": "Id", "Ascending": false, "totalPage": 1, "totalCount": 1, "filters": [ { "name": "EnterpriseId" } ] } */ export const GetAllWorkflows = (data: commonParams) => { return request("/api/workflow/GetAllWorkflows", { method: "POST", data, }); }; /** * 获取全部页面 * @param data * @returns */ export const GetAllPage = () => { return request<{ codeItemCount: number; description: string; directory: string; fileName: string; id: string; isFavourite: boolean; is_page_load_from_localhost: boolean; langDescription: string; langName: string; menuLinkUrl: string; name: string; processStatus: string; randerType: number; reportType: number; type: number; }>("/api/bpm/GetAllPage", { method: "POST", }); }; /** * 获取全部视图和表 * @param data * @returns */ export const GetAllTablesAndViews = () => { return request<{ appBusinessTables: { aliasName: string; description: string; id: string; isLatest: boolean; latest: boolean; name: string; schemaName: string; type: number; }[]; bpmViewTables: { description: string; directory: string; id: string; name: string; schemaName: string; type: number; }[]; }>("/api/table/GetAllTablesAndViews", { method: "POST", }); };