feat: 管理端板块管理与旧版数据导入,补充部署运营文档

- 新增管理端板块管理页面与后端接口(admin_board)
- 新增旧版数据导入:legacyimport 服务、导入面板、importusers 命令行工具
- 聊天用户卡片、板块图标等 UI 组件与界面优化
- 补充 about/公告/1Panel 部署等文档
- gitignore 排除 dist/ 构建产物与 .agents/ 本地工具目录
This commit is contained in:
2026-09-24 03:37:44 +08:00
parent c1f6a6636b
commit 3e55b5d230
53 changed files with 5078 additions and 409 deletions

View File

@@ -577,3 +577,16 @@ func randomID() string {
}
return base64.RawURLEncoding.EncodeToString(b)
}
// randomCode 生成 6 位数字邮箱验证码,供用户阅读输入。
func randomCode() string {
const n = 6
b := make([]byte, n)
if _, e := io.ReadFull(rand.Reader, b); e != nil {
panic(e)
}
for i := range b {
b[i] = '0' + b[i]%10
}
return string(b)
}