@lcap/asl
Version:
NetEase Application Specific Language
113 lines (112 loc) • 2.1 kB
TypeScript
import { LEVEL_ENUM, Vertex, Logic, Process, ProcessComponent } from '..';
/**
* 接口类
*/
export declare class ProcessInterface extends Vertex {
/**
* 概念类型
*/
readonly level: LEVEL_ENUM;
/**
* Id
*/
readonly id: string;
/**
* InterfaceKey
*/
readonly key: string;
/**
* 名称
*/
readonly name: string;
/**
* 协议
*/
readonly protocol: string;
/**
* 地址
*/
readonly host: string;
/**
* 端口
*/
readonly port: string;
/**
* 路径
*/
readonly path: string;
/**
* 方法
*/
readonly method: string;
/**
* 描述
*/
readonly description: string;
/**
* 逻辑 Id
*/
readonly logicId: string;
/**
* 逻辑
*/
readonly logic: Logic;
/**
* Service 类型
*/
readonly serviceType: 'micro' | 'entity' | 'process';
/**
* Service Id
*/
readonly serviceId: string;
/**
* Service 名称
*/
readonly serviceName: string;
/**
* Process
*/
readonly process: Process;
/**
* ProcessComponent
*/
readonly processComponent: ProcessComponent;
/**
* 参数
*/
readonly parameters: string;
/**
* 返回值
*/
readonly responses: string;
/**
* 请求数据
*/
readonly requestBody: string;
/**
* 树组件的子节点字段
*/
readonly moreChildrenFields: Array<string>;
/**
* 周边存在的名称
*/
existingNames: Array<string>;
/**
* @param source 需要合并的部分参数
*/
constructor(source?: Partial<ProcessInterface>);
/**
* 按当前 id 加载接口数据
* @requires this.id
*/
load(): this;
/**
* 从后端 JSON 生成规范的 ProcessInterface 对象
*/
static from(source: any, parent: Process | ProcessComponent): ProcessInterface;
/**
* 查找引用
*/
findUsage(): Promise<any>;
}
export default ProcessInterface;