Skip to main content
Version: 3.10

Interface 接口

1. 结构声明

class Interface extends ImportedInterface {
name: string = '';
title: string;
originLogicName?: string;
path: string;
method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
description?: string;
params: Array<InterfaceParam>;
returns: Array<Return>;
validation?: BindAttribute;
protocol?: 'HTTP' | 'HTTPS' | 'DUBBO';
protocolParams: Array<Param>;
}