Skip to content

zentao-api / ZentaoProfile

Interface: ZentaoProfile ​

本地持久化的禅道账号 profile。

Extended by ​

Indexable ​

[key: string]: unknown

允许上层应用保存 JSON 格式的额外字段,不保留 Date、Map 等类型信息,不支持 BigInt 或循环对象。

Properties ​

PropertyTypeDescription
accountstring用户账号。
config?ZentaoProfileConfig客户端自定义配置。
lastUsedTime?string最后使用时间。
loginTime?string登录时间。
serverstring禅道站点根地址,不包含 /api.php/v2。
serverConfig?ServerConfig禅道服务端配置。
serverConfigFetchedAt?string成功从 ?mode=getconfig 获取配置的本地 ISO 时间;缺失时缓存需要刷新。
tokenstring禅道 API Token。
user?Record<string, unknown>登录验证通过后得到的用户信息。

Released under the MIT License.