Skip to main content
Version: 2.22

Interface 接口

结构声明

interface Interface {
"concept": "Interface", // 产品概念
"name": string, // 接口名称
"originLogicName": string, // originLogicName
"path": string, // path
"method": "GET" | "POST" | "PUT" | "DELETE", // method
"description": string, // 接口描述
"params": Array<InterfaceParam>, // 接口参数列表
"returns": Array<Return>, // 输出参数列表
}

示例

简单示例

{
"concept": "Interface",
"name": "GetUserList",
"originLogicName": "logic1",
"path": "GetUserList",
"method": "GET",
"description": "这是一个接口",
"params": [],
"returns": []
}

ScopeOf

{}