Class Info |
|---|
export class CloudFunction Cloud Functions SDK的入口类,包含调用云函数的方法。 |
Qualifier and Type | Method Name and Description |
|---|---|
Promise<any> | call(params: FunctionParams) 调用云函数,可以不传入data参数,也可以传入对象类型的参数。 |
Method |
|---|
constructor(name: string) 初始化CloudFunction实例。 |
Parameters
Name | Description |
|---|---|
name | CloudFunction实例名称。 |
Method |
|---|
call(params: FunctionParams):Promise<any> 调用云函数。 |
Parameters
Name | Description |
|---|---|
params | 函数调用参数,包含函数名(必填)、函数版本、超时时长、函数请求消息体。 |
Return
Type | Description |
|---|---|
Promise<any> | Promise对象,返回函数调用结果。 |