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