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