docs: 更新进度记录,添加代码审查修复信息

This commit is contained in:
tangweijie 2026-01-15 20:16:01 +08:00
parent 1e5186eed9
commit 25d7ff7371

View File

@ -199,6 +199,13 @@ MySQL Database
- ✅ Batch delete operations
- ✅ Menu permissions SQL scripts
**Recent Updates (2026-01-15)**:
- Code review completed for questionnaire modules (Question, Questionnaire, QuestionnaireRecord)
- Backend fixes: VO field synchronization, batch update optimization, empty validation
- Frontend fixes: TypeScript type definitions, date formatting standardization
- Added enum classes: QuestionnaireStatusEnum, QuestionnaireRecordStatusEnum, QuestionnaireRecordPassStatusEnum
- Added database migration scripts for new columns
## Database Configuration
**Development Database**:
@ -225,11 +232,33 @@ Password: (configured in application-local.yaml)
**Mock Settings** (application-local.yaml):
```yaml
yudao:
mock:
enable: true
secret: emsoft
security:
mock-enable: true # 是否开启 Token 的模拟机制(生产环境必须关闭)
mock-secret: emsoft # Token 模拟机制的 Token 前缀
```
**使用场景**:方便使用 Postman、Swagger 调试接口时模拟 Token 认证,无需真实登录。
**多租户调用方式**
```bash
# 格式Authorization: Bearer {mockSecret}{用户ID}
# 必须传递 tenant-id 请求头
curl -X GET "{{url}}" \
-H "Authorization: Bearer emsoft1" \
-H "tenant-id: 1"
```
**说明**
| 参数 | 说明 | 示例值 |
|------|------|--------|
| `Authorization` | mock token格式 `{mockSecret}{userId}` | `Bearer emsoft1` 表示用户 ID 为 1 |
| `tenant-id` | 租户 ID多租户场景必传 | `1` |
**示例**
- 模拟用户 ID=1租户 ID=1`Authorization: Bearer emsoft1` + `tenant-id: 1`
- 模拟用户 ID=2租户 ID=1`Authorization: Bearer emsoft2` + `tenant-id: 1`
### Frontend Configuration
**Location**: `frontend/`
@ -424,3 +453,4 @@ export const {Module}Api = {
**Debug Mode**:
- Backend: Add `--debug` to mvn command for remote debugging on port 5005
- Frontend: Browser dev tools + Vue DevTools browser extension