Преглед изворни кода

fix: 修复测试编译错误——适配 controller 方法签名变更(增加 @RequestAttribute 参数)

iwt пре 1 месец
родитељ
комит
5612b23e62

+ 2 - 2
cfc-backend/src/test/java/com/etotem/cfc/integration/DailyCheckinStreakFlowTest.java

@@ -98,7 +98,7 @@ public class DailyCheckinStreakFlowTest {
                 .thenReturn(savedCheckin);
 
         // === When:提交打卡 ===
-        Result<DailyHealthCheckin> result = checkinController.create(checkin);
+        Result<DailyHealthCheckin> result = checkinController.create(checkin, 1L);
 
         // === Then:Milestone-1 - 打卡成功 ===
         assertEquals(200, result.getCode());
@@ -130,7 +130,7 @@ public class DailyCheckinStreakFlowTest {
         when(dailyCheckinService.getCheckinsByMember(CHILD_ID)).thenReturn(mockList);
 
         // === When:请求打卡列表 ===
-        Result<List<DailyHealthCheckin>> result = checkinController.list(listRequest);
+        Result<List<DailyHealthCheckin>> result = checkinController.list(listRequest, 1L);
 
         // === Then:返回历史记录 ===
         assertEquals(200, result.getCode());

+ 1 - 1
cfc-web/.last_build_commit

@@ -1 +1 @@
-6bc1f46ae8f91308e6912f271002a6c86affb744
+0e2dbacb9248eb12e49bf873432cbb39ce6f6666

+ 2 - 2
cfc-web/package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "cfc-web",
-  "version": "1.0.949",
+  "version": "1.0.950",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "cfc-web",
-      "version": "1.0.949",
+      "version": "1.0.950",
       "dependencies": {
         "@wangeditor/editor": "^5.1.23",
         "@wangeditor/editor-for-vue": "^1.0.2",

+ 1 - 1
cfc-web/package.json

@@ -1,6 +1,6 @@
 {
   "name": "cfc-web",
-  "version": "1.0.949",
+  "version": "1.0.950",
   "private": true,
   "scripts": {
     "dev": "vue-cli-service serve",

+ 6 - 0
cfc-web/public/CHANGELOG-v1.0.md

@@ -4,6 +4,12 @@
 
 ---
 
+## v1.0.950 (2026-08-10)
+
+### Bug 修复
+- HealthDimensionControllerTest 适配 history 方法签名变更
+
+
 ## v1.0.949 (2026-08-10)
 
 ### Bug 修复

+ 7 - 1
cfc-web/public/CHANGELOG.md

@@ -1,6 +1,6 @@
 # 更新日志
 
-> 当前版本: v1.0.949
+> 当前版本: v1.0.950
 
 ## 历史版本
 
@@ -8,6 +8,12 @@
 
 ---
 
+## v1.0.950 (2026-08-10)
+
+### Bug 修复
+- HealthDimensionControllerTest 适配 history 方法签名变更
+
+
 ## v1.0.949 (2026-08-10)
 
 ### Bug 修复