hi-server/说明文档.md
shanshanzhong 9b6efe2901
All checks were successful
Build docker and publish / build (20.15.1) (push) Successful in 7m32s
DefaultFamilyMaxSize
2026-03-12 01:41:39 -07:00

25 lines
1.2 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.

# 说明文档.md
## 项目规划
1. **云端日志查找**:帮助用户在云端 Docker 日志中查找 "database insert error" 错误。
2. **家庭组限制查找**:帮助用户查找家庭组加入限制数量的定义位置。
## 实施方案
### 云端日志查找
1. **环境确认**确认如何访问云端容器SSH 或远程 Docker 上下文)。
2. **日志检索**:使用 `docker logs` 结合 `grep` 进行过滤。
3. **结果分析**:提取具体的报错信息,分析可能的原因。
4. **反馈**:将查找到的错误信息整理反馈给用户。
### 家庭组限制查找
1. **代码搜索**:通过 `grep` 搜索 "family"、"limit" 等关键字。
2. **代码定位**:定位模型层和业务逻辑层中关于限制的定义。
3. **结果说明**:向用户详细说明限制的具体数值和修改位置。
## 进度记录
| 时间节点 | 任务说明 | 进度 | 结果说明 |
| :--- | :--- | :--- | :--- |
| 2026-03-11 | 初始化日志查找任务 | [x] 已完成 | 已提供查找日志的命令并记录在文档中 |
| 2026-03-12 | 查找家庭组加入限制数量 | [x] 已完成 | 确认在 `internal/model/user/family.go` 中定义,默认为 2 且数据库默认为 2 |