zentao-api / GlobalOptions
Interface: GlobalOptions
SDK 进程级全局默认选项,供高阶 request 调用复用。
Properties
| Property | Type | Description |
|---|---|---|
client? | ZentaoClient | 默认客户端;通常由 ZentaoClient.init() 设置。 |
insecure? | boolean | 默认 TLS 跳过证书验证选项;仅 Node.js 运行时支持。 |
limit? | string | 默认限制返回列表数量,只影响 SDK 归一化后的 data。 |
persistProfiles? | boolean | 是否在登录成功后把账号、Token 和配置持久化为本地 profile。 |
recPerPage? | string | 默认每页记录数,会映射到模块动作的 recPerPage 参数。 |
timeout? | number | 默认请求超时时间,优先级低于单次请求选项。 |