zentao-api / ZentaoProfile
Interface: ZentaoProfile
本地持久化的禅道账号 profile。
Extended by
Indexable
[
key:string]:unknown
允许上层应用保存 JSON 格式的额外字段,不保留 Date、Map 等类型信息,不支持 BigInt 或循环对象。
Properties
| Property | Type | Description |
|---|---|---|
account | string | 用户账号。 |
config? | ZentaoProfileConfig | 客户端自定义配置。 |
lastUsedTime? | string | 最后使用时间。 |
loginTime? | string | 登录时间。 |
server | string | 禅道站点根地址,不包含 /api.php/v2。 |
serverConfig? | ServerConfig | 禅道服务端配置。 |
serverConfigFetchedAt? | string | 成功从 ?mode=getconfig 获取配置的本地 ISO 时间;缺失时缓存需要刷新。 |
token | string | 禅道 API Token。 |
user? | Record<string, unknown> | 登录验证通过后得到的用户信息。 |