Skip to main content
Version: 3.7

CallInterface 调用接口

1. 结构声明

class CallInterface extends LogicItem {
calleeNamespace: string;
calleeName: string;
shortcut?: boolean;
arguments: Array<Argument>;
}

2. 节点示例

(1) 示例

AST 如下:

{
"concept": "CallInterface",
"calleeNamespace": "apis.getPhoneFrom.interfaces",
"calleeName": "phone",
"arguments": [
{
"concept": "Argument",
"keyword": "phone",
"expression": {
"concept": "Identifier",
"namespace": "",
"name": "phone"
}
},
{
"concept": "Argument",
"keyword": "key"
},
{
"concept": "Argument",
"keyword": "type"
}
]
}

对应的代码如下:

apis::getPhoneFrom::interfaces::phone(
phone = phone,
key = __IDENTIFIER__,
type = __IDENTIFIER__,
)