import { OpenPageInfoType } from "./clientData"; /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ /** * 模块配置 */ export interface ModuleConfig { /** * 模块名称 */ name: string; /** * 模块描述 */ description?: string; /** * 页面集合 */ pages?: { [k: string]: PageDefinitionType; }; /** * 控制器集合 */ controllers?: { [k: string]: ControllersType; }; } /** * 页面定义 */ export interface PageDefinitionType { /** * 页面配置名称 */ name: string; /** * 页面权限代码 */ code: string; /** * 页面默认标题 */ title: string; /** * 模块描述 */ description?: string; /** * 野蛮参数定义 */ params?: { /** * 是否允许不传 */ mayEmpty?: boolean; /** * 模块描述 */ description?: string; }; } /** * 控制器 */ export interface ControllersType { openWindow?: OpenWindowController; executeService?: ExecuteServiceController; executeScript?: ExecuteScriptController; exportFile?: ExportFileController; importFile?: ImportFileController; } /** * 打开窗口控制器 */ export interface OpenWindowController { /** * 权限点 */ code: string; /** * 描述 */ description?: string; pageInfo?: OpenPageInfoType; } /** * 执行服务控制器 */ export interface ExecuteServiceController { /** * 权限点 */ code: string; /** * 描述 */ description?: string; service?: ServiceType; } /** * 服务 */ export interface ServiceType { /** * 服务id */ id: string; /** * 所属模块id,默认为当前模块 */ moduleId?: string; /** * 所属系统id,通用服务为:common;默认为当前系统 */ systemId?: string; /** * 服务参数 */ params?: { [k: string]: any; }; } /** * 执行脚本控制器 */ export interface ExecuteScriptController { /** * 权限点 */ code: string; /** * 描述 */ description?: string; /** * 要执行的脚本 */ script?: string; } /** * 导出文件控制器 */ export interface ExportFileController { /** * 权限点 */ code: string; /** * 描述 */ description?: string; service?: ServiceType; } /** * 导入文件控制器 */ export interface ImportFileController { /** * 权限点 */ code: string; /** * 描述 */ description?: string; /** * 导入信息配置 */ importInfo?: { /** * 支持的文件类型,多个类型用“,”分割;默认不限制 */ limitType?: string; /** * 显示的标题 */ title?: string; /** * 显示的图标 */ icon?: string; }; service?: ServiceType; }