Skip to content

zentao-api / GlobalOptions

Interface: GlobalOptions

SDK 进程级全局默认选项,供高阶 request 调用复用。

Properties

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

Released under the MIT License.