Files
platforms/docs/操作日志_平台账户创建时间与联系电话空值修复_20260817.md

44 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 平台账户创建时间与联系电话空值修复操作日志
操作时间2026-08-17
操作类型:修改
影响模块:平台总后台 / 平台管理 / 平台账户详情
## 操作前状态
- 平台账户专用响应没有返回实体已有的创建时间和更新时间,账户摘要错误显示 `-`
- root 初始化账户未填写联系电话,详情使用通用 `-`,业务含义不明确。
## 具体操作
- `platformAccountView` 补充返回数据库中的 `created_at``updated_at`
- 平台账户联系电话为空时显示“未填写”。
- 保持 root 初始化联系电话为空,不写入虚假示例号码。
- 增加后端单元测试和前端静态展示契约。
## 操作后状态
- 创建时间显示账户的真实数据库时间。
- 未维护联系电话时显示“未填写”,管理员可通过编辑补充。
## 代码变更
- `backend/api/internal/logic/platform/platform/account.go`:补充账户审计时间响应字段。
- `backend/api/internal/logic/platform/platform/account_test.go`:验证审计时间与空联系电话响应。
- `frontend/platform_admin/src/api/resources.ts`:增加联系电话空值文案。
- `frontend/platform_admin/scripts/check-resource-display-contracts.mjs`:增加平台账户空值契约。
- `docs/项目文档_平台资源中文展示统一_v1.0.md`:增加 v1.20 记录。
## 验证结果
- 后端平台账户测试通过:`go test ./internal/logic/platform/platform`
- 资源展示契约检查通过:`pnpm resource-display-contracts:check`
- 后端接口契约检查通过:`pnpm contract:check`
- Biome 代码检查通过。
- TypeScript 类型检查通过:`pnpm type:check`
- 前端生产构建通过:`pnpm build`
## 风险评估
- 仅扩展响应字段并调整空值文案,不改变数据库结构、写入协议或 root 初始化凭据。