Compare commits

..

No commits in common. "3af7812a3f69b0b3849fcf0674114386be0950ae" and "1e5186eed9599c0377c9e5d7e26f125d72ba7ad9" have entirely different histories.

2 changed files with 4 additions and 34 deletions

View File

@ -199,13 +199,6 @@ 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**:
@ -232,33 +225,11 @@ Password: (configured in application-local.yaml)
**Mock Settings** (application-local.yaml):
```yaml
yudao:
security:
mock-enable: true # 是否开启 Token 的模拟机制(生产环境必须关闭)
mock-secret: emsoft # Token 模拟机制的 Token 前缀
mock:
enable: true
secret: emsoft
```
**使用场景**:方便使用 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/`
@ -453,4 +424,3 @@ 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

@ -1 +1 @@
Subproject commit fdc6bf58e0e45d1f4673b9a2fc40d1dca24bfef4
Subproject commit 1ebf700cf2f689ee629596439b3477cf37120514