diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 30cf57ed..00000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,10 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Ignored default folder with query files -/queries/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml deleted file mode 100644 index c28dd1f7..00000000 --- a/.idea/compiler.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml deleted file mode 100644 index 33cdec17..00000000 --- a/.idea/encodings.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml deleted file mode 100644 index 74a0f3c6..00000000 --- a/.idea/jarRepositories.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 51e3dad8..00000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 4619eccd..00000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1ddf..00000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/xiaowang.iml b/.idea/xiaowang.iml deleted file mode 100644 index d6ebd480..00000000 --- a/.idea/xiaowang.iml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/artifacts/appointment-business-hours.png b/artifacts/appointment-business-hours.png deleted file mode 100644 index c1209dbd..00000000 Binary files a/artifacts/appointment-business-hours.png and /dev/null differ diff --git a/artifacts/appointment-conflict.png b/artifacts/appointment-conflict.png deleted file mode 100644 index 8ec2c13d..00000000 Binary files a/artifacts/appointment-conflict.png and /dev/null differ diff --git a/artifacts/color-setting.png b/artifacts/color-setting.png deleted file mode 100644 index b97306c5..00000000 Binary files a/artifacts/color-setting.png and /dev/null differ diff --git a/artifacts/color-wheel.png b/artifacts/color-wheel.png deleted file mode 100644 index c5808d16..00000000 Binary files a/artifacts/color-wheel.png and /dev/null differ diff --git a/artifacts/fingertip-appointment-detail-ui-fixed.png b/artifacts/fingertip-appointment-detail-ui-fixed.png deleted file mode 100644 index 9f07dbb7..00000000 Binary files a/artifacts/fingertip-appointment-detail-ui-fixed.png and /dev/null differ diff --git a/artifacts/fingertip-appointment-detail-ui.png b/artifacts/fingertip-appointment-detail-ui.png deleted file mode 100644 index 8e2c0e92..00000000 Binary files a/artifacts/fingertip-appointment-detail-ui.png and /dev/null differ diff --git a/artifacts/fingertip-appointment-form-ui-final.png b/artifacts/fingertip-appointment-form-ui-final.png deleted file mode 100644 index 951d5706..00000000 Binary files a/artifacts/fingertip-appointment-form-ui-final.png and /dev/null differ diff --git a/artifacts/fingertip-appointment-form-ui-fixed.png b/artifacts/fingertip-appointment-form-ui-fixed.png deleted file mode 100644 index 5787bdf5..00000000 Binary files a/artifacts/fingertip-appointment-form-ui-fixed.png and /dev/null differ diff --git a/artifacts/fingertip-appointment-form-ui.png b/artifacts/fingertip-appointment-form-ui.png deleted file mode 100644 index 5787bdf5..00000000 Binary files a/artifacts/fingertip-appointment-form-ui.png and /dev/null differ diff --git a/artifacts/fingertip-customers-ui.png b/artifacts/fingertip-customers-ui.png deleted file mode 100644 index 83f9387e..00000000 Binary files a/artifacts/fingertip-customers-ui.png and /dev/null differ diff --git a/artifacts/fingertip-employees-ui-fixed.png b/artifacts/fingertip-employees-ui-fixed.png deleted file mode 100644 index 495a52a5..00000000 Binary files a/artifacts/fingertip-employees-ui-fixed.png and /dev/null differ diff --git a/artifacts/fingertip-employees-ui.png b/artifacts/fingertip-employees-ui.png deleted file mode 100644 index 1f40984c..00000000 Binary files a/artifacts/fingertip-employees-ui.png and /dev/null differ diff --git a/artifacts/fingertip-planning-ui-after.png b/artifacts/fingertip-planning-ui-after.png deleted file mode 100644 index d320164d..00000000 Binary files a/artifacts/fingertip-planning-ui-after.png and /dev/null differ diff --git a/artifacts/fingertip-planning-ui-fab-fixed.png b/artifacts/fingertip-planning-ui-fab-fixed.png deleted file mode 100644 index ba349a73..00000000 Binary files a/artifacts/fingertip-planning-ui-fab-fixed.png and /dev/null differ diff --git a/artifacts/fingertip-planning-ui.png b/artifacts/fingertip-planning-ui.png deleted file mode 100644 index d320164d..00000000 Binary files a/artifacts/fingertip-planning-ui.png and /dev/null differ diff --git a/artifacts/fingertip-profile-ui.png b/artifacts/fingertip-profile-ui.png deleted file mode 100644 index d9dbf8e1..00000000 Binary files a/artifacts/fingertip-profile-ui.png and /dev/null differ diff --git a/artifacts/fingertip-register-ui.png b/artifacts/fingertip-register-ui.png deleted file mode 100644 index 635b0504..00000000 Binary files a/artifacts/fingertip-register-ui.png and /dev/null differ diff --git a/artifacts/full-regression/acceptance_fd0608205715.json b/artifacts/full-regression/acceptance_fd0608205715.json deleted file mode 100644 index d5c222a3..00000000 --- a/artifacts/full-regression/acceptance_fd0608205715.json +++ /dev/null @@ -1,275 +0,0 @@ -{ - "runId": "fd0608205715", - "base": "http://127.0.0.1:18081", - "generatedAt": "2026-06-08T20:57:16", - "counts": { - "t_user": 2, - "t_shop": 3, - "t_product": 0, - "t_order": 0, - "t_order_item": 0, - "t_appointment_reservation": 0, - "t_artist_schedule": 0, - "t_nail_artist_info": 0 - }, - "cases": [ - { - "id": "ENV-001", - "role": "??", - "module": "Core ????", - "steps": "GET /shop/list/simple", - "expected": "?? 200 ? data ??", - "status": "PASS", - "actual": "HTTP 200, {\"code\":200,\"message\":\"操作成功\",\"data\":[]}", - "priority": "P0", - "evidence": "Core 18081" - }, - { - "id": "ENV-002", - "role": "??", - "module": "Nacos Dev ????", - "steps": "?? YumiNail-Dev ??", - "expected": "???????", - "status": "BLOCKED", - "actual": "Nacos ???? 403????????????", - "priority": "P3", - "evidence": "192.168.5.101 reachable" - }, - { - "id": "ADMIN-001", - "role": "?????", - "module": "??", - "steps": "xiaowang ??", - "expected": "?? type=4", - "status": "PASS", - "actual": "userId=1, type=4", - "priority": "-", - "evidence": "POST /admin/auth/login" - }, - { - "id": "ADMIN-002-normal", - "role": "?????", - "module": "????", - "steps": "?? normal ??", - "expected": "??????", - "status": "PASS", - "actual": "{\"code\":200,\"message\":\"操作成功\",\"data\":\"322358415408410624\"}", - "priority": "P1", - "evidence": "POST /admin/shops/create" - }, - { - "id": "ADMIN-002-expired", - "role": "?????", - "module": "????", - "steps": "?? expired ??", - "expected": "??????", - "status": "PASS", - "actual": "{\"code\":200,\"message\":\"操作成功\",\"data\":\"322358415660068864\"}", - "priority": "P1", - "evidence": "POST /admin/shops/create" - }, - { - "id": "ADMIN-002-disabled", - "role": "?????", - "module": "????", - "steps": "?? disabled ??", - "expected": "??????", - "status": "PASS", - "actual": "{\"code\":200,\"message\":\"操作成功\",\"data\":\"322358415915921408\"}", - "priority": "P1", - "evidence": "POST /admin/shops/create" - }, - { - "id": "ADMIN-003", - "role": "?????", - "module": "????", - "steps": "??????/???????", - "expected": "????", - "status": "PASS", - "actual": "update={\"code\":200,\"message\":\"操作成功\",\"data\":true}, get={\"code\":200,\"message\":\"操作成功\",\"data\":{\"id\":\"322358415408410624\",\"shopName\":\"fd0608205715 normal shop edited\",\"description\":\"normal edited\",\"address\":\"Dev 1\",\"map", - "priority": "P1", - "evidence": "PUT/GET shop" - }, - { - "id": "ADMIN-004", - "role": "?????", - "module": "????", - "steps": "???????", - "expected": "???", - "status": "FAIL", - "actual": "{\"code\":401,\"message\":\"请求签名无效\"} / {\"code\":401,\"message\":\"请求签名无效\"}", - "priority": "P1", - "evidence": "PUT /admin/shops/status" - }, - { - "id": "ADMIN-007-manager", - "role": "?????", - "module": "????", - "steps": "?? manager type=2", - "expected": "???????", - "status": "FAIL", - "actual": "{\"code\":500,\"message\":\"店长和美甲师的微信号不能为空\",\"data\":null}", - "priority": "P1", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-artist1", - "role": "?????", - "module": "????", - "steps": "?? artist1 type=3", - "expected": "???????", - "status": "FAIL", - "actual": "{\"code\":500,\"message\":\"店长和美甲师的微信号不能为空\",\"data\":null}", - "priority": "P1", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-artist2", - "role": "?????", - "module": "????", - "steps": "?? artist2 type=3", - "expected": "???????", - "status": "FAIL", - "actual": "{\"code\":500,\"message\":\"店长和美甲师的微信号不能为空\",\"data\":null}", - "priority": "P1", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-customer", - "role": "?????", - "module": "????", - "steps": "?? customer type=0", - "expected": "???????", - "status": "PASS", - "actual": "{\"code\":200,\"message\":\"操作成功\",\"data\":\"322358417836912640\"}", - "priority": "P1", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-expiredmgr", - "role": "?????", - "module": "????", - "steps": "?? expiredmgr type=2", - "expected": "???????", - "status": "FAIL", - "actual": "{\"code\":500,\"message\":\"店铺已被冻结\",\"data\":null}", - "priority": "P1", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-009", - "role": "?????", - "module": "????", - "steps": "??????", - "expected": "??????", - "status": "PASS", - "actual": "{\"code\":200,\"message\":\"操作成功\",\"data\":{\"list\":[{\"id\":\"322358415915921408\",\"shopName\":\"fd0608205715 disabled shop\",\"description\":\"disabled\",\"address\":\"Dev 3\",\"mapProvider\":\"TENCENT\",\"longitude\":null,\"latitude\":null,\"navigat", - "priority": "P1", - "evidence": "GET /admin/shops/list" - }, - { - "id": "ADMIN-010", - "role": "?????", - "module": "????", - "steps": "????", - "expected": "??????", - "status": "PASS", - "actual": "{\"code\":200,\"message\":\"操作成功\",\"data\":{\"totalUsers\":\"2\",\"totalProducts\":\"0\",\"totalShops\":\"3\",\"todayOrders\":\"0\",\"totalOrderAmount\":0,\"todayOrderAmount\":0,\"weekOrderAmount\":0,\"totalCustomers\":\"1\",\"totalArtists\":\"0\",\"newCusto", - "priority": "P2", - "evidence": "GET /admin/dashboard/stats" - }, - { - "id": "USER-003", - "role": "????", - "module": "????", - "steps": "??????", - "expected": "???? token", - "status": "FAIL", - "actual": "{\"code\":500,\"message\":\"协议版本已更新,请重新阅读并同意\",\"data\":null}", - "priority": "P0", - "evidence": "POST /user/login" - }, - { - "id": "USER-004", - "role": "????", - "module": "????", - "steps": "?????/??", - "expected": "???????", - "status": "PASS", - "actual": "shops={\"code\":200,\"message\":\"操作成功\",\"data\":[{\"id\":\"322358415408410624\",\"shopName\":\"fd0608205715 normal shop, products={\"code\":200,\"message\":\"操作成功\",\"data\":[]}", - "priority": "P1", - "evidence": "GET public lists" - }, - { - "id": "UI-001", - "role": "????", - "module": "?????", - "steps": "?? edgedev ???? Web ??", - "expected": "???????", - "status": "BLOCKED", - "actual": "??????? edgedev/browser ?????? API+DB ??", - "priority": "P3", - "evidence": "tool unavailable" - }, - { - "id": "UI-002", - "role": "?????", - "module": "???????", - "steps": "?????????", - "expected": "?????", - "status": "BLOCKED", - "actual": "?????????????? MCP?? API ??????", - "priority": "P3", - "evidence": "tool unavailable" - }, - { - "id": "PASS-010", - "role": "?????", - "module": "?????", - "steps": "?????/??????", - "expected": "?? 0", - "status": "PASS", - "actual": "counts={'t_user': 2, 't_shop': 3, 't_product': 0, 't_order': 0, 't_order_item': 0, 't_appointment_reservation': 0, 't_artist_schedule': 0, 't_nail_artist_info': 0}, orphan=0, duplicate=0", - "priority": "P0", - "evidence": "DB consistency" - } - ], - "defects": [ - { - "id": "ADMIN-004", - "priority": "P1", - "actual": "{\"code\":401,\"message\":\"请求签名无效\"} / {\"code\":401,\"message\":\"请求签名无效\"}", - "evidence": "PUT /admin/shops/status" - }, - { - "id": "ADMIN-007-manager", - "priority": "P1", - "actual": "{\"code\":500,\"message\":\"店长和美甲师的微信号不能为空\",\"data\":null}", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-artist1", - "priority": "P1", - "actual": "{\"code\":500,\"message\":\"店长和美甲师的微信号不能为空\",\"data\":null}", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-artist2", - "priority": "P1", - "actual": "{\"code\":500,\"message\":\"店长和美甲师的微信号不能为空\",\"data\":null}", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-expiredmgr", - "priority": "P1", - "actual": "{\"code\":500,\"message\":\"店铺已被冻结\",\"data\":null}", - "evidence": "POST /admin/user/create" - }, - { - "id": "USER-003", - "priority": "P0", - "actual": "{\"code\":500,\"message\":\"协议版本已更新,请重新阅读并同意\",\"data\":null}", - "evidence": "POST /user/login" - } - ] -} \ No newline at end of file diff --git a/artifacts/full-regression/acceptance_fd0608205715.md b/artifacts/full-regression/acceptance_fd0608205715.md deleted file mode 100644 index cc3ffc6c..00000000 --- a/artifacts/full-regression/acceptance_fd0608205715.md +++ /dev/null @@ -1,48 +0,0 @@ -# Fingertip Designer ??????? - fd0608205715 - -- ?????2026-06-08T20:57:16 -- ????? MySQL 192.168.5.15 / ?? Core http://127.0.0.1:18081 -- ??????????? nailart????? runId=fd0608205715 - -## ?? - -- PASS: 11 -- FAIL: 6 -- BLOCKED: 3 -- ???: 6 - -## ???? - -| ???? | ?? | ?? | ?? | ?? | ?? | ?? | ??? | ?? | -|---|---|---|---|---|---|---|---|---| -| ENV-001 | ?? | Core ???? | GET /shop/list/simple | ?? 200 ? data ?? | HTTP 200, {"code":200,"message":"操作成功","data":[]} | PASS | P0 | Core 18081 | -| ENV-002 | ?? | Nacos Dev ???? | ?? YumiNail-Dev ?? | ??????? | Nacos ???? 403???????????? | BLOCKED | P3 | 192.168.5.101 reachable | -| ADMIN-001 | ????? | ?? | xiaowang ?? | ?? type=4 | userId=1, type=4 | PASS | - | POST /admin/auth/login | -| ADMIN-002-normal | ????? | ???? | ?? normal ?? | ?????? | {"code":200,"message":"操作成功","data":"322358415408410624"} | PASS | P1 | POST /admin/shops/create | -| ADMIN-002-expired | ????? | ???? | ?? expired ?? | ?????? | {"code":200,"message":"操作成功","data":"322358415660068864"} | PASS | P1 | POST /admin/shops/create | -| ADMIN-002-disabled | ????? | ???? | ?? disabled ?? | ?????? | {"code":200,"message":"操作成功","data":"322358415915921408"} | PASS | P1 | POST /admin/shops/create | -| ADMIN-003 | ????? | ???? | ??????/??????? | ???? | update={"code":200,"message":"操作成功","data":true}, get={"code":200,"message":"操作成功","data":{"id":"322358415408410624","shopName":"fd0608205715 normal shop edited","description":"normal edited","address":"Dev 1","map | PASS | P1 | PUT/GET shop | -| ADMIN-004 | ????? | ???? | ??????? | ??? | {"code":401,"message":"请求签名无效"} / {"code":401,"message":"请求签名无效"} | FAIL | P1 | PUT /admin/shops/status | -| ADMIN-007-manager | ????? | ???? | ?? manager type=2 | ??????? | {"code":500,"message":"店长和美甲师的微信号不能为空","data":null} | FAIL | P1 | POST /admin/user/create | -| ADMIN-007-artist1 | ????? | ???? | ?? artist1 type=3 | ??????? | {"code":500,"message":"店长和美甲师的微信号不能为空","data":null} | FAIL | P1 | POST /admin/user/create | -| ADMIN-007-artist2 | ????? | ???? | ?? artist2 type=3 | ??????? | {"code":500,"message":"店长和美甲师的微信号不能为空","data":null} | FAIL | P1 | POST /admin/user/create | -| ADMIN-007-customer | ????? | ???? | ?? customer type=0 | ??????? | {"code":200,"message":"操作成功","data":"322358417836912640"} | PASS | P1 | POST /admin/user/create | -| ADMIN-007-expiredmgr | ????? | ???? | ?? expiredmgr type=2 | ??????? | {"code":500,"message":"店铺已被冻结","data":null} | FAIL | P1 | POST /admin/user/create | -| ADMIN-009 | ????? | ???? | ?????? | ?????? | {"code":200,"message":"操作成功","data":{"list":[{"id":"322358415915921408","shopName":"fd0608205715 disabled shop","description":"disabled","address":"Dev 3","mapProvider":"TENCENT","longitude":null,"latitude":null,"navigat | PASS | P1 | GET /admin/shops/list | -| ADMIN-010 | ????? | ???? | ???? | ?????? | {"code":200,"message":"操作成功","data":{"totalUsers":"2","totalProducts":"0","totalShops":"3","todayOrders":"0","totalOrderAmount":0,"todayOrderAmount":0,"weekOrderAmount":0,"totalCustomers":"1","totalArtists":"0","newCusto | PASS | P2 | GET /admin/dashboard/stats | -| USER-003 | ???? | ???? | ?????? | ???? token | {"code":500,"message":"协议版本已更新,请重新阅读并同意","data":null} | FAIL | P0 | POST /user/login | -| USER-004 | ???? | ???? | ?????/?? | ??????? | shops={"code":200,"message":"操作成功","data":[{"id":"322358415408410624","shopName":"fd0608205715 normal shop, products={"code":200,"message":"操作成功","data":[]} | PASS | P1 | GET public lists | -| UI-001 | ???? | ????? | ?? edgedev ???? Web ?? | ??????? | ??????? edgedev/browser ?????? API+DB ?? | BLOCKED | P3 | tool unavailable | -| UI-002 | ????? | ??????? | ????????? | ????? | ?????????????? MCP?? API ?????? | BLOCKED | P3 | tool unavailable | -| PASS-010 | ????? | ????? | ?????/?????? | ?? 0 | counts={'t_user': 2, 't_shop': 3, 't_product': 0, 't_order': 0, 't_order_item': 0, 't_appointment_reservation': 0, 't_artist_schedule': 0, 't_nail_artist_info': 0}, orphan=0, duplicate=0 | PASS | P0 | DB consistency | - -## ??/?? - -| ???? | ??? | ?? | ?? | -|---|---|---|---| -| ADMIN-004 | P1 | {"code":401,"message":"请求签名无效"} / {"code":401,"message":"请求签名无效"} | PUT /admin/shops/status | -| ADMIN-007-manager | P1 | {"code":500,"message":"店长和美甲师的微信号不能为空","data":null} | POST /admin/user/create | -| ADMIN-007-artist1 | P1 | {"code":500,"message":"店长和美甲师的微信号不能为空","data":null} | POST /admin/user/create | -| ADMIN-007-artist2 | P1 | {"code":500,"message":"店长和美甲师的微信号不能为空","data":null} | POST /admin/user/create | -| ADMIN-007-expiredmgr | P1 | {"code":500,"message":"店铺已被冻结","data":null} | POST /admin/user/create | -| USER-003 | P0 | {"code":500,"message":"协议版本已更新,请重新阅读并同意","data":null} | POST /user/login | \ No newline at end of file diff --git a/artifacts/full-regression/acceptance_fd0608211949.json b/artifacts/full-regression/acceptance_fd0608211949.json deleted file mode 100644 index ac541f32..00000000 --- a/artifacts/full-regression/acceptance_fd0608211949.json +++ /dev/null @@ -1,513 +0,0 @@ -{ - "runId": "fd0608211949", - "executedAt": "2026-06-08T21:19:57", - "summary": { - "PASS": 34, - "FAIL": 3, - "BLOCKED": 2 - }, - "state": { - "runId": "fd0608211949", - "baseUrl": "http://127.0.0.1:18081", - "ids": { - "normalShop": 322364109750710272, - "expiredShop": 322364110119809024, - "disabledShop": 322364110384050176, - "otherShop": 322364110585376768, - "manager": 322364112229543936, - "artist1": 322364113525583872, - "artist2": 322364114645463040, - "customer": 322364115584987136, - "otherManager": 322364116306407424, - "product": 322364123709353984 - }, - "tokens": { - "platformAdmin": "***" - }, - "db": { - "initStatements": 386 - } - }, - "cases": [ - { - "id": "ENV-001", - "role": "环境", - "module": "Core 健康检查", - "precondition": "Core 18081 已启动", - "steps": "GET /shop/list/simple", - "expected": "HTTP 200", - "actual": "HTTP 200, {\"code\":200,\"message\":\"操作成功\",\"data\":[{\"id\":\"322358415408410624\",\"shopName\":\"fd0608205715 normal shop edited\"}]}", - "status": "PASS", - "priority": "P0", - "evidence": "http://127.0.0.1:18081" - }, - { - "id": "ENV-002", - "role": "环境", - "module": "Nacos Dev 命名空间", - "precondition": "仅读开发 Nacos", - "steps": "登录 Nacos 读取 YumiNail-Dev", - "expected": "成功读取或记录阻塞", - "actual": "HTTP 500", - "status": "BLOCKED", - "priority": "P3", - "evidence": "Nacos dev host reachable; secrets redacted" - }, - { - "id": "ENV-003", - "role": "环境", - "module": "数据库重建", - "precondition": "已有备份 nailart_backup_fd0608202858.sql", - "steps": "DROP/CREATE nailart 并执行 YumiNail.sql", - "expected": "初始化成功且基础权限/管理员存在", - "actual": "初始化语句 386, counts={'t_user': 1, 't_shop': 0, 't_user_shop_binding': 0, 't_nail_artist_info': 0, 't_artist_schedule': 0, 't_product': 0, 't_order': 0, 't_order_item': 0, 't_appointment_reservation': 0, 't_user_agreement_consent': 0}", - "status": "PASS", - "priority": "-", - "evidence": "YumiNail-Core/src/main/resources/files/YumiNail.sql" - }, - { - "id": "ADMIN-001", - "role": "平台管理员", - "module": "登录", - "precondition": "默认管理员 xiaowang", - "steps": "账号密码登录后台", - "expected": "返回 type=4 accessToken", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"accessToken\": \"***\", \"refreshToken\": \"***\", \"userInfo\": {\"id\": \"1\", \"account\": \"xiaowang\", \"nickname\": \"系统管理员\", \"avatar\": \"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\", \"type\": 4, \"shopId\": null, \"shopName\": null, \"shopAuthorizationExpireTime\": null, \"shopAuthorizationExpired\": false, \"shopIds\": [], \"shopNames\": [], \"createTime\": \"2026-06-08T21:19:51\"}, \"needSetPassword\": false}}", - "status": "PASS", - "priority": "P0", - "evidence": "POST /admin/auth/login" - }, - { - "id": "ADMIN-002-normal", - "role": "平台管理员", - "module": "店铺管理", - "precondition": "平台管理员已登录", - "steps": "创建normal门店", - "expected": "返回门店ID且 t_shop 可查", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364109750710272\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/shops/create" - }, - { - "id": "ADMIN-002-expired", - "role": "平台管理员", - "module": "店铺管理", - "precondition": "平台管理员已登录", - "steps": "创建expired门店", - "expected": "返回门店ID且 t_shop 可查", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364110119809024\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/shops/create" - }, - { - "id": "ADMIN-002-disabled", - "role": "平台管理员", - "module": "店铺管理", - "precondition": "平台管理员已登录", - "steps": "创建disabled门店", - "expected": "返回门店ID且 t_shop 可查", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364110384050176\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/shops/create" - }, - { - "id": "ADMIN-002-other", - "role": "平台管理员", - "module": "店铺管理", - "precondition": "平台管理员已登录", - "steps": "创建other门店", - "expected": "返回门店ID且 t_shop 可查", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364110585376768\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/shops/create" - }, - { - "id": "ADMIN-003", - "role": "平台管理员", - "module": "店铺管理", - "precondition": "normal 门店存在", - "steps": "编辑门店资料后查询详情", - "expected": "更新成功且详情为新值", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": true}", - "status": "PASS", - "priority": "-", - "evidence": "PUT /admin/shops/update/322364109750710272" - }, - { - "id": "ADMIN-003B", - "role": "平台管理员", - "module": "店铺管理", - "precondition": "normal 门店存在", - "steps": "查询门店详情", - "expected": "返回 normal 门店详情", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364109750710272\", \"shopName\": \"fd0608211949 normal shop edited\", \"description\": \"normal edited\", \"address\": \"Dev 1\", \"mapProvider\": \"TENCENT\", \"longitude\": null, \"latitude\": null, \"navigationUrls\": {}, \"businessHours\": \"09:00-21:00\", \"coverImageFileId\": \"\", \"coverImageUrls\": [], \"imageFileIds\": null, \"imageUrls\": [], \"themePrimaryColor\": \"#1677FF\", \"themeSecondaryColor\": \"#F5F5F5\", \"themeAccentColor\": \"#FF7A45\", \"themePageBgColor\": \"#FFFFFF\", \"themeCardBgColor\": \"#FFFFFF\", \"themeBackgroundImageFileId\": null, \"status\": 1, \"authorizationStartDate\": \"2026-06-07\", \"authorizationDays\": 45, \"authorizationExpireTime\": \"2026-07-21T23:59:59\", \"authorizationExpired\": false, \"authorizationStatusText\": \"有效\", \"createTime\": \"2026-06-08T21:19:53\", \"updateTime\": \"2026-06-08T21:19:53\"}}", - "status": "PASS", - "priority": "-", - "evidence": "GET /admin/shops/322364109750710272" - }, - { - "id": "ADMIN-004", - "role": "平台管理员", - "module": "店铺启停", - "precondition": "disabled 门店存在", - "steps": "JSON body 修改门店状态为启用", - "expected": "状态更新成功", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": true}", - "status": "PASS", - "priority": "-", - "evidence": "PUT /admin/shops/status/322364110384050176" - }, - { - "id": "ADMIN-004B", - "role": "平台管理员", - "module": "店铺启停", - "precondition": "disabled 门店已启用", - "steps": "JSON body 修改门店状态为停用", - "expected": "状态更新成功", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": true}", - "status": "PASS", - "priority": "-", - "evidence": "PUT /admin/shops/status/322364110384050176" - }, - { - "id": "ADMIN-007-manager", - "role": "平台管理员", - "module": "账号管理", - "precondition": "门店已创建", - "steps": "创建manager type=2", - "expected": "返回用户ID、默认权限和门店绑定写入", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364112229543936\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-artistone", - "role": "平台管理员", - "module": "账号管理", - "precondition": "门店已创建", - "steps": "创建artistone type=3", - "expected": "返回用户ID、默认权限和门店绑定写入", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364113525583872\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-artisttwo", - "role": "平台管理员", - "module": "账号管理", - "precondition": "门店已创建", - "steps": "创建artisttwo type=3", - "expected": "返回用户ID、默认权限和门店绑定写入", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364114645463040\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-customer", - "role": "平台管理员", - "module": "账号管理", - "precondition": "门店已创建", - "steps": "创建customer type=0", - "expected": "返回用户ID、默认权限和门店绑定写入", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364115584987136\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-othermgr", - "role": "平台管理员", - "module": "账号管理", - "precondition": "门店已创建", - "steps": "创建othermgr type=2", - "expected": "返回用户ID、默认权限和门店绑定写入", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364116306407424\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-expiredmgr", - "role": "平台管理员", - "module": "账号管理", - "precondition": "门店已创建", - "steps": "创建expiredmgr type=2", - "expected": "过期/冻结门店禁止创建可登录店长,返回明确错误", - "actual": "{\"code\": 500, \"message\": \"店铺已被冻结\", \"data\": null}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/user/create" - }, - { - "id": "MANAGER-001", - "role": "指尖管理师/店长", - "module": "登录", - "precondition": "manager 账号绑定 normal 门店", - "steps": "后台/管理师账号登录并选择门店", - "expected": "返回 type=2 shopId=normal", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"accessToken\": \"***\", \"refreshToken\": \"***\", \"userInfo\": {\"id\": \"322364112229543936\", \"account\": \"fd0608211949manager\", \"nickname\": \"fd0608211949 manager\", \"avatar\": \"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\", \"type\": 2, \"shopId\": \"322364109750710272\", \"shopName\": \"fd0608211949 normal shop edited\", \"shopAuthorizationExpireTime\": \"2026-07-21T23:59:59\", \"shopAuthorizationExpired\": false, \"shopIds\": [\"322364109750710272\"], \"shopNames\": [\"fd0608211949 normal shop edited\"], \"createTime\": \"2026-06-08T21:19:54\"}, \"needSetPassword\": false}}", - "status": "PASS", - "priority": "P0", - "evidence": "POST /admin/auth/login" - }, - { - "id": "ARTIST-001", - "role": "设计师/美甲师", - "module": "登录", - "precondition": "artistone 账号绑定 normal 门店", - "steps": "设计师账号登录", - "expected": "返回 type=3 shopId=normal", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"accessToken\": \"***\", \"refreshToken\": \"***\", \"userInfo\": {\"id\": \"322364113525583872\", \"account\": \"fd0608211949artistone\", \"nickname\": \"fd0608211949 artistone\", \"avatar\": \"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\", \"type\": 3, \"shopId\": \"322364109750710272\", \"shopName\": \"fd0608211949 normal shop edited\", \"shopAuthorizationExpireTime\": \"2026-07-21T23:59:59\", \"shopAuthorizationExpired\": false, \"shopIds\": [\"322364109750710272\"], \"shopNames\": [\"fd0608211949 normal shop edited\"], \"createTime\": \"2026-06-08T21:19:54\"}, \"needSetPassword\": false}}", - "status": "PASS", - "priority": "P0", - "evidence": "POST /admin/auth/login" - }, - { - "id": "ADMIN-008", - "role": "店长", - "module": "设计师资料", - "precondition": "设计师账号存在", - "steps": "保存设计师资料", - "expected": "返回保存后的设计师资料", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364113911459840\", \"userId\": \"322364113525583872\", \"identity\": \"首席设计师\", \"experience\": 5, \"skills\": \"法式,渐变,手绘\", \"rating\": 4.9, \"status\": 1, \"participateProduction\": 1, \"workStartTime\": \"09:00:00\", \"workEndTime\": \"21:00:00\", \"userType\": 3, \"userTypeName\": \"美甲师\", \"portfolio\": \"\", \"nickname\": \"fd0608211949 artistone\", \"shopId\": \"322364109750710272\", \"shopName\": \"fd0608211949 normal shop edited\", \"signature\": \"fd0608211949 signature\"}}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/nail-artist/save" - }, - { - "id": "ADMIN-011", - "role": "店长", - "module": "排班", - "precondition": "设计师可用", - "steps": "保存设计师排班", - "expected": "t_artist_schedule 生成记录", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364122027438080\", \"shopId\": \"322364109750710272\", \"artistId\": \"322364113525583872\", \"workDate\": \"2026-06-10\", \"startTime\": \"09:00:00\", \"endTime\": \"21:00:00\", \"slotMinutes\": 60, \"capacity\": 1, \"status\": 1, \"remark\": \"fd0608211949\", \"createTime\": \"2026-06-08T21:19:55.9273816\"}}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/artist-schedule/save" - }, - { - "id": "USER-001", - "role": "普通用户", - "module": "协议", - "precondition": "匿名可访问", - "steps": "读取当前用户协议版本", - "expected": "返回 USER_TERMS 和 PRIVACY_POLICY", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": [{\"id\": \"313931273555138001\", \"agreementType\": \"USER_TERMS\", \"agreementTypeName\": \"用户协议\", \"title\": \"用户协议\", \"version\": \"2026.05.18\", \"content\": \"欢迎使用 Fingertip Designer 指尖设计师。请在使用账号、预约、订单、会员、消息等功能前仔细阅读本协议。继续登录或注册即表示你已理解并同意平台基础服务规则、账号安全要求、订单预约规则和依法合规使用要求。\", \"status\": 1, \"statusText\": \"已发布\", \"effectiveTime\": \"2026-06-08T21:19:52\", \"createTime\": \"2026-06-08T21:19:52\", \"updateTime\": \"2026-06-08T21:19:52\"}, {\"id\": \"313931273555138002\", \"agreementType\": \"PRIVACY_POLICY\", \"agreementTypeName\": \"隐私政策\", \"title\": \"隐私政策\", \"version\": \"2026.05.18\", \"content\": \"Fingertip Designer 指尖设计师会在提供登录注册、预约下单、会员余额、消息通知和客户服务时处理必要的手机号、昵称、门店归属、订单与设备信息。我们仅在业务需要和法律允许范围内使用这些信息,并采取访问控制、脱敏展示和审计记录等措施保护数据安全。\", \"status\": 1, \"statusText\": \"已发布\", \"effectiveTime\": \"2026-06-08T21:19:52\", \"createTime\": \"2026-06-08T21:19:52\", \"updateTime\": \"2026-06-08T21:19:52\"}]}", - "status": "PASS", - "priority": "P0", - "evidence": "GET /legal-agreement/current" - }, - { - "id": "USER-003", - "role": "普通用户", - "module": "登录", - "precondition": "普通用户账号已创建并提交当前协议版本", - "steps": "账号密码登录用户端", - "expected": "返回 accessToken 并写入协议同意记录", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"accessToken\": \"***\", \"refreshToken\": \"***\", \"userInfo\": {\"id\": \"322364115584987136\", \"account\": \"fd0608211949customer\", \"nickname\": \"fd0608211949 customer\", \"avatar\": \"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\", \"type\": 0, \"shopId\": \"322364109750710272\", \"shopName\": \"fd0608211949 normal shop edited\", \"shopAuthorizationExpireTime\": \"2026-07-21T23:59:59\", \"shopAuthorizationExpired\": false, \"shopIds\": [\"322364109750710272\"], \"shopNames\": [\"fd0608211949 normal shop edited\"], \"createTime\": \"2026-06-08T21:19:54\"}, \"needSetPassword\": false}}", - "status": "PASS", - "priority": "P0", - "evidence": "POST /user/login" - }, - { - "id": "USER-003B", - "role": "普通用户", - "module": "协议留痕", - "precondition": "用户登录成功", - "steps": "查询 t_user_agreement_consent", - "expected": "至少 2 条同意记录", - "actual": "consent_count=2", - "status": "PASS", - "priority": "P1", - "evidence": "DB t_user_agreement_consent" - }, - { - "id": "ADMIN-012", - "role": "店长", - "module": "作品管理", - "precondition": "normal 门店和设计师可用", - "steps": "创建可预约作品", - "expected": "返回 productId 且用户端可见", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364123709353984\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/product/create" - }, - { - "id": "USER-004", - "role": "普通用户", - "module": "浏览", - "precondition": "作品已上架", - "steps": "匿名查询作品详情", - "expected": "详情返回数据", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364123709353984\", \"shopId\": \"322364109750710272\", \"shopName\": \"fd0608211949 normal shop edited\", \"title\": \"fd0608211949 主链路款式\", \"description\": \"全链路测试作品\", \"targetAudience\": \"通勤\", \"precautions\": \"无\", \"imageFileIds\": \"\", \"imageUrls\": [], \"price\": 128.0, \"tags\": \"法式,测试\", \"tagList\": [], \"tagInfos\": [], \"likeCount\": 0, \"collectCount\": 0, \"approximateDuration\": \"60分钟\", \"serviceDurationMinutes\": \"60\", \"bookableArtists\": \"322364113525583872\", \"availableBookableArtistCount\": 1, \"bookableArtistRestricted\": true, \"availableCoupons\": \"\", \"createTime\": \"2026-06-08T21:19:56\", \"updateTime\": \"2026-06-08T21:19:56\"}}", - "status": "PASS", - "priority": "-", - "evidence": "GET /product/get/322364123709353984" - }, - { - "id": "USER-004B", - "role": "普通用户", - "module": "浏览", - "precondition": "作品已上架", - "steps": "匿名查询门店作品列表", - "expected": "列表包含新建作品", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": [{\"id\": \"322364123709353984\", \"shopId\": \"322364109750710272\", \"shopName\": \"fd0608211949 normal shop edited\", \"title\": \"fd0608211949 主链路款式\", \"description\": \"全链路测试作品\", \"targetAudience\": \"通勤\", \"precautions\": \"无\", \"imageFileIds\": \"\", \"imageUrls\": [], \"price\": 128.0, \"tags\": \"法式,测试\", \"tagList\": [], \"tagInfos\": [], \"likeCount\": 0, \"collectCount\": 0, \"approximateDuration\": \"60分钟\", \"serviceDurationMinutes\": \"60\", \"bookableArtists\": \"322364113525583872\", \"availableBookableArtistCount\": 1, \"bookableArtistRestricted\": true, \"availableCoupons\": \"\", \"createTime\": \"2026-06-08T21:19:56\", \"updateTime\": \"2026-06-08T21:19:56\"}]}", - "status": "PASS", - "priority": "P1", - "evidence": "GET /product/list/shop/322364109750710272" - }, - { - "id": "USER-005", - "role": "普通用户", - "module": "收藏", - "precondition": "用户已登录,作品存在", - "steps": "收藏作品", - "expected": "收藏成功", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"ok\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /wishlist/add" - }, - { - "id": "USER-005B", - "role": "普通用户", - "module": "收藏", - "precondition": "作品已收藏", - "steps": "查询收藏状态", - "expected": "返回已收藏", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": true}", - "status": "PASS", - "priority": "-", - "evidence": "GET /wishlist/check" - }, - { - "id": "USER-006", - "role": "普通用户", - "module": "结算预览", - "precondition": "用户已登录,作品可预约", - "steps": "checkout-preview", - "expected": "返回金额和可用优惠信息", - "actual": "{\"code\": 500, \"message\": \"请先将商品加入购物车后再结算\", \"data\": null}", - "status": "FAIL", - "priority": "P1", - "evidence": "POST /order/checkout-preview" - }, - { - "id": "USER-007", - "role": "普通用户", - "module": "下单", - "precondition": "用户已登录,作品/设计师/排班可用", - "steps": "创建订单", - "expected": "返回订单、订单项,DB 生成 t_order/t_order_item", - "actual": "{\"code\": 500, \"message\": \"请先将商品加入购物车后再结算\", \"data\": null}", - "status": "FAIL", - "priority": "P0", - "evidence": "POST /order/create" - }, - { - "id": "LINK-004", - "role": "指尖管理师", - "module": "新建预约联动", - "precondition": "客户/作品/设计师存在", - "steps": "规划端新建预约", - "expected": "后台订单、订单项、预约占用同步生成", - "actual": "{\"code\": 500, \"message\": \"涓嶅彲棰勭害\", \"data\": null}", - "status": "FAIL", - "priority": "P0", - "evidence": "POST /admin/planning/appointments" - }, - { - "id": "PERM-001", - "role": "后台店长", - "module": "跨店隔离", - "precondition": "other 店长登录 other 门店", - "steps": "请求 normal 门店作品列表", - "expected": "应无权查看或返回本店空列表,不泄露 normal 数据", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"list\": [], \"total\": \"0\", \"page\": 1, \"size\": 20}}", - "status": "PASS", - "priority": "P0", - "evidence": "GET /admin/product/list?shopId=normal as other manager" - }, - { - "id": "EDGE-002", - "role": "平台管理员", - "module": "停用店铺", - "precondition": "disabled 门店为停用", - "steps": "尝试给停用店铺创建店长", - "expected": "应拦截并提示店铺不可用/冻结", - "actual": "{\"code\": 500, \"message\": \"所属店铺不存在或已失效\", \"data\": null}", - "status": "PASS", - "priority": "P1", - "evidence": "POST /admin/user/create disabled shop" - }, - { - "id": "EDGE-003", - "role": "未登录用户", - "module": "鉴权健壮性", - "precondition": "无 token", - "steps": "直接调用写接口下单", - "expected": "返回 401,不创建订单", - "actual": "{\"code\": 401, \"message\": \"未提供认证Token\"}", - "status": "PASS", - "priority": "P0", - "evidence": "POST /order/create without token" - }, - { - "id": "EDGE-004", - "role": "过期/错误 token", - "module": "鉴权健壮性", - "precondition": "错误 token", - "steps": "调用需登录 GET 接口", - "expected": "返回 401/403", - "actual": "HTTP 401, {\"code\":401,\"message\":\"Token无效或已过期\"}", - "status": "PASS", - "priority": "P0", - "evidence": "GET /order/list with invalid token" - }, - { - "id": "PASS-010", - "role": "全角色", - "module": "数据一致性", - "precondition": "主链路执行后", - "steps": "核验核心表计数、孤儿预约、重复占用", - "expected": "无孤儿预约、无重复 active 占用", - "actual": "counts={'t_user': 6, 't_shop': 4, 't_user_shop_binding': 5, 't_nail_artist_info': 2, 't_artist_schedule': 1, 't_product': 1, 't_order': 0, 't_order_item': 0, 't_appointment_reservation': 0, 't_user_agreement_consent': 2}, orphan=0, duplicate=0", - "status": "PASS", - "priority": "P0", - "evidence": "DB consistency" - }, - { - "id": "UI-002", - "role": "小程序端", - "module": "微信开发者工具页面测试", - "precondition": "当前会话未暴露微信开发者工具自动化入口", - "steps": "执行管理师/用户/设计师小程序页面真实点击", - "expected": "页面可交互、布局不遮挡", - "actual": "工具阻塞:未发现可调用微信开发者工具/小程序 MCP;API+DB 联动已执行", - "status": "BLOCKED", - "priority": "P3", - "evidence": "tool unavailable" - } - ], - "counts": { - "t_user": 6, - "t_shop": 4, - "t_user_shop_binding": 5, - "t_nail_artist_info": 2, - "t_artist_schedule": 1, - "t_product": 1, - "t_order": 0, - "t_order_item": 0, - "t_appointment_reservation": 0, - "t_user_agreement_consent": 2 - } -} \ No newline at end of file diff --git a/artifacts/full-regression/acceptance_fd0608211949.md b/artifacts/full-regression/acceptance_fd0608211949.md deleted file mode 100644 index bb7c66e5..00000000 --- a/artifacts/full-regression/acceptance_fd0608211949.md +++ /dev/null @@ -1,66 +0,0 @@ -# Fingertip Designer 全链路用户视角验收清单 - fd0608211949 - -- 执行时间:2026-06-08T21:19:57 -- 环境:开发 MySQL 192.168.5.15 / 本地 Core http://127.0.0.1:18081 -- 数据策略:执行前已重建 nailart,本轮数据均带 runId 前缀;密钥和密码不写入报告。 - -## 汇总 - -- PASS: 34 -- FAIL: 3 -- BLOCKED: 2 -- DB counts: {'t_user': 6, 't_shop': 4, 't_user_shop_binding': 5, 't_nail_artist_info': 2, 't_artist_schedule': 1, 't_product': 1, 't_order': 0, 't_order_item': 0, 't_appointment_reservation': 0, 't_user_agreement_consent': 2} - -## 验收清单 - -| 用例编号 | 角色 | 模块 | 前置数据 | 操作步骤 | 预期结果 | 实际结果 | 状态 | 缺陷等级 | 证据 | -|---|---|---|---|---|---|---|---|---|---| -| ENV-001 | 环境 | Core 健康检查 | Core 18081 已启动 | GET /shop/list/simple | HTTP 200 | HTTP 200, {"code":200,"message":"操作成功","data":[{"id":"322358415408410624","shopName":"fd0608205715 normal shop edited"}]} | PASS | P0 | http://127.0.0.1:18081 | -| ENV-002 | 环境 | Nacos Dev 命名空间 | 仅读开发 Nacos | 登录 Nacos 读取 YumiNail-Dev | 成功读取或记录阻塞 | HTTP 500 | BLOCKED | P3 | Nacos dev host reachable; secrets redacted | -| ENV-003 | 环境 | 数据库重建 | 已有备份 nailart_backup_fd0608202858.sql | DROP/CREATE nailart 并执行 YumiNail.sql | 初始化成功且基础权限/管理员存在 | 初始化语句 386, counts={'t_user': 1, 't_shop': 0, 't_user_shop_binding': 0, 't_nail_artist_info': 0, 't_artist_schedule': 0, 't_product': 0, 't_order': 0, 't_order_item': 0, 't_appointment_reservation': 0, 't_user_agreement_consent': 0} | PASS | - | YumiNail-Core/src/main/resources/files/YumiNail.sql | -| ADMIN-001 | 平台管理员 | 登录 | 默认管理员 xiaowang | 账号密码登录后台 | 返回 type=4 accessToken | {"code": 200, "message": "操作成功", "data": {"accessToken": "***", "refreshToken": "***", "userInfo": {"id": "1", "account": "xiaowang", "nickname": "系统管理员", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "type": 4, "shopId": null, "shopName": null, "shopAuthorizationExpireTime": null, "shopAuthorizationExpired": false, "shopIds": [], "shopNames": [], "createTime": "2026-06-08T21:19:51"}, "needSetPassword": false}} | PASS | P0 | POST /admin/auth/login | -| ADMIN-002-normal | 平台管理员 | 店铺管理 | 平台管理员已登录 | 创建normal门店 | 返回门店ID且 t_shop 可查 | {"code": 200, "message": "操作成功", "data": "322364109750710272"} | PASS | - | POST /admin/shops/create | -| ADMIN-002-expired | 平台管理员 | 店铺管理 | 平台管理员已登录 | 创建expired门店 | 返回门店ID且 t_shop 可查 | {"code": 200, "message": "操作成功", "data": "322364110119809024"} | PASS | - | POST /admin/shops/create | -| ADMIN-002-disabled | 平台管理员 | 店铺管理 | 平台管理员已登录 | 创建disabled门店 | 返回门店ID且 t_shop 可查 | {"code": 200, "message": "操作成功", "data": "322364110384050176"} | PASS | - | POST /admin/shops/create | -| ADMIN-002-other | 平台管理员 | 店铺管理 | 平台管理员已登录 | 创建other门店 | 返回门店ID且 t_shop 可查 | {"code": 200, "message": "操作成功", "data": "322364110585376768"} | PASS | - | POST /admin/shops/create | -| ADMIN-003 | 平台管理员 | 店铺管理 | normal 门店存在 | 编辑门店资料后查询详情 | 更新成功且详情为新值 | {"code": 200, "message": "操作成功", "data": true} | PASS | - | PUT /admin/shops/update/322364109750710272 | -| ADMIN-003B | 平台管理员 | 店铺管理 | normal 门店存在 | 查询门店详情 | 返回 normal 门店详情 | {"code": 200, "message": "操作成功", "data": {"id": "322364109750710272", "shopName": "fd0608211949 normal shop edited", "description": "normal edited", "address": "Dev 1", "mapProvider": "TENCENT", "longitude": null, "latitude": null, "navigationUrls": {}, "businessHours": "09:00-21:00", "coverImageFileId": "", "coverImageUrls": [], "imageFileIds": null, "imageUrls": [], "themePrimaryColor": "#1677FF", "themeSecondaryColor": "#F5F5F5", "themeAccentColor": "#FF7A45", "themePageBgColor": "#FFFFFF", "themeCardBgColor": "#FFFFFF", "themeBackgroundImageFileId": null, "status": 1, "authorizationStartDate": "2026-06-07", "authorizationDays": 45, "authorizationExpireTime": "2026-07-21T23:59:59", "authorizationExpired": false, "authorizationStatusText": "有效", "createTime": "2026-06-08T21:19:53", "updateTime": "2026-06-08T21:19:53"}} | PASS | - | GET /admin/shops/322364109750710272 | -| ADMIN-004 | 平台管理员 | 店铺启停 | disabled 门店存在 | JSON body 修改门店状态为启用 | 状态更新成功 | {"code": 200, "message": "操作成功", "data": true} | PASS | - | PUT /admin/shops/status/322364110384050176 | -| ADMIN-004B | 平台管理员 | 店铺启停 | disabled 门店已启用 | JSON body 修改门店状态为停用 | 状态更新成功 | {"code": 200, "message": "操作成功", "data": true} | PASS | - | PUT /admin/shops/status/322364110384050176 | -| ADMIN-007-manager | 平台管理员 | 账号管理 | 门店已创建 | 创建manager type=2 | 返回用户ID、默认权限和门店绑定写入 | {"code": 200, "message": "操作成功", "data": "322364112229543936"} | PASS | - | POST /admin/user/create | -| ADMIN-007-artistone | 平台管理员 | 账号管理 | 门店已创建 | 创建artistone type=3 | 返回用户ID、默认权限和门店绑定写入 | {"code": 200, "message": "操作成功", "data": "322364113525583872"} | PASS | - | POST /admin/user/create | -| ADMIN-007-artisttwo | 平台管理员 | 账号管理 | 门店已创建 | 创建artisttwo type=3 | 返回用户ID、默认权限和门店绑定写入 | {"code": 200, "message": "操作成功", "data": "322364114645463040"} | PASS | - | POST /admin/user/create | -| ADMIN-007-customer | 平台管理员 | 账号管理 | 门店已创建 | 创建customer type=0 | 返回用户ID、默认权限和门店绑定写入 | {"code": 200, "message": "操作成功", "data": "322364115584987136"} | PASS | - | POST /admin/user/create | -| ADMIN-007-othermgr | 平台管理员 | 账号管理 | 门店已创建 | 创建othermgr type=2 | 返回用户ID、默认权限和门店绑定写入 | {"code": 200, "message": "操作成功", "data": "322364116306407424"} | PASS | - | POST /admin/user/create | -| ADMIN-007-expiredmgr | 平台管理员 | 账号管理 | 门店已创建 | 创建expiredmgr type=2 | 过期/冻结门店禁止创建可登录店长,返回明确错误 | {"code": 500, "message": "店铺已被冻结", "data": null} | PASS | - | POST /admin/user/create | -| MANAGER-001 | 指尖管理师/店长 | 登录 | manager 账号绑定 normal 门店 | 后台/管理师账号登录并选择门店 | 返回 type=2 shopId=normal | {"code": 200, "message": "操作成功", "data": {"accessToken": "***", "refreshToken": "***", "userInfo": {"id": "322364112229543936", "account": "fd0608211949manager", "nickname": "fd0608211949 manager", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "type": 2, "shopId": "322364109750710272", "shopName": "fd0608211949 normal shop edited", "shopAuthorizationExpireTime": "2026-07-21T23:59:59", "shopAuthorizationExpired": false, "shopIds": ["322364109750710272"], "shopNames": ["fd0608211949 normal shop edited"], "createTime": "2026-06-08T21:19:54"}, "needSetPassword": false}} | PASS | P0 | POST /admin/auth/login | -| ARTIST-001 | 设计师/美甲师 | 登录 | artistone 账号绑定 normal 门店 | 设计师账号登录 | 返回 type=3 shopId=normal | {"code": 200, "message": "操作成功", "data": {"accessToken": "***", "refreshToken": "***", "userInfo": {"id": "322364113525583872", "account": "fd0608211949artistone", "nickname": "fd0608211949 artistone", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "type": 3, "shopId": "322364109750710272", "shopName": "fd0608211949 normal shop edited", "shopAuthorizationExpireTime": "2026-07-21T23:59:59", "shopAuthorizationExpired": false, "shopIds": ["322364109750710272"], "shopNames": ["fd0608211949 normal shop edited"], "createTime": "2026-06-08T21:19:54"}, "needSetPassword": false}} | PASS | P0 | POST /admin/auth/login | -| ADMIN-008 | 店长 | 设计师资料 | 设计师账号存在 | 保存设计师资料 | 返回保存后的设计师资料 | {"code": 200, "message": "操作成功", "data": {"id": "322364113911459840", "userId": "322364113525583872", "identity": "首席设计师", "experience": 5, "skills": "法式,渐变,手绘", "rating": 4.9, "status": 1, "participateProduction": 1, "workStartTime": "09:00:00", "workEndTime": "21:00:00", "userType": 3, "userTypeName": "美甲师", "portfolio": "", "nickname": "fd0608211949 artistone", "shopId": "322364109750710272", "shopName": "fd0608211949 normal shop edited", "signature": "fd0608211949 signature"}} | PASS | - | POST /admin/nail-artist/save | -| ADMIN-011 | 店长 | 排班 | 设计师可用 | 保存设计师排班 | t_artist_schedule 生成记录 | {"code": 200, "message": "操作成功", "data": {"id": "322364122027438080", "shopId": "322364109750710272", "artistId": "322364113525583872", "workDate": "2026-06-10", "startTime": "09:00:00", "endTime": "21:00:00", "slotMinutes": 60, "capacity": 1, "status": 1, "remark": "fd0608211949", "createTime": "2026-06-08T21:19:55.9273816"}} | PASS | - | POST /admin/artist-schedule/save | -| USER-001 | 普通用户 | 协议 | 匿名可访问 | 读取当前用户协议版本 | 返回 USER_TERMS 和 PRIVACY_POLICY | {"code": 200, "message": "操作成功", "data": [{"id": "313931273555138001", "agreementType": "USER_TERMS", "agreementTypeName": "用户协议", "title": "用户协议", "version": "2026.05.18", "content": "欢迎使用 Fingertip Designer 指尖设计师。请在使用账号、预约、订单、会员、消息等功能前仔细阅读本协议。继续登录或注册即表示你已理解并同意平台基础服务规则、账号安全要求、订单预约规则和依法合规使用要求。", "status": 1, "statusText": "已发布", "effectiveTime": "2026-06-08T21:19:52", "createTime": "2026-06-08T21:19:52", "updateTime": "2026-06-08T21:19:52"}, {"id": "313931273555138002", "agreementType": "PRIVACY_POLICY", "agreementTypeName": "隐私政策", "title": "隐私政策", "version": "2026.05.18", "content": "Fingertip Designer 指尖设计师会在提供登录注册、预约下单、会员余额、消息通知和客户服务时处理必要的手机号、昵称、门店归属、订单与设备信息。我们仅在业务需要和法律允许范围内使用这些信息,并采取访问控制、脱敏展示和审计记录等措施保护数据安全。", "status": 1, "statusText": "已发布", "effectiveTime": "2026-06-08T21:19:52", "createTime": "2026-06-08T21:19:52", "updateTime": "2026-06-08T21:19:52"}]} | PASS | P0 | GET /legal-agreement/current | -| USER-003 | 普通用户 | 登录 | 普通用户账号已创建并提交当前协议版本 | 账号密码登录用户端 | 返回 accessToken 并写入协议同意记录 | {"code": 200, "message": "操作成功", "data": {"accessToken": "***", "refreshToken": "***", "userInfo": {"id": "322364115584987136", "account": "fd0608211949customer", "nickname": "fd0608211949 customer", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "type": 0, "shopId": "322364109750710272", "shopName": "fd0608211949 normal shop edited", "shopAuthorizationExpireTime": "2026-07-21T23:59:59", "shopAuthorizationExpired": false, "shopIds": ["322364109750710272"], "shopNames": ["fd0608211949 normal shop edited"], "createTime": "2026-06-08T21:19:54"}, "needSetPassword": false}} | PASS | P0 | POST /user/login | -| USER-003B | 普通用户 | 协议留痕 | 用户登录成功 | 查询 t_user_agreement_consent | 至少 2 条同意记录 | consent_count=2 | PASS | P1 | DB t_user_agreement_consent | -| ADMIN-012 | 店长 | 作品管理 | normal 门店和设计师可用 | 创建可预约作品 | 返回 productId 且用户端可见 | {"code": 200, "message": "操作成功", "data": "322364123709353984"} | PASS | - | POST /admin/product/create | -| USER-004 | 普通用户 | 浏览 | 作品已上架 | 匿名查询作品详情 | 详情返回数据 | {"code": 200, "message": "操作成功", "data": {"id": "322364123709353984", "shopId": "322364109750710272", "shopName": "fd0608211949 normal shop edited", "title": "fd0608211949 主链路款式", "description": "全链路测试作品", "targetAudience": "通勤", "precautions": "无", "imageFileIds": "", "imageUrls": [], "price": 128.0, "tags": "法式,测试", "tagList": [], "tagInfos": [], "likeCount": 0, "collectCount": 0, "approximateDuration": "60分钟", "serviceDurationMinutes": "60", "bookableArtists": "322364113525583872", "availableBookableArtistCount": 1, "bookableArtistRestricted": true, "availableCoupons": "", "createTime": "2026-06-08T21:19:56", "updateTime": "2026-06-08T21:19:56"}} | PASS | - | GET /product/get/322364123709353984 | -| USER-004B | 普通用户 | 浏览 | 作品已上架 | 匿名查询门店作品列表 | 列表包含新建作品 | {"code": 200, "message": "操作成功", "data": [{"id": "322364123709353984", "shopId": "322364109750710272", "shopName": "fd0608211949 normal shop edited", "title": "fd0608211949 主链路款式", "description": "全链路测试作品", "targetAudience": "通勤", "precautions": "无", "imageFileIds": "", "imageUrls": [], "price": 128.0, "tags": "法式,测试", "tagList": [], "tagInfos": [], "likeCount": 0, "collectCount": 0, "approximateDuration": "60分钟", "serviceDurationMinutes": "60", "bookableArtists": "322364113525583872", "availableBookableArtistCount": 1, "bookableArtistRestricted": true, "availableCoupons": "", "createTime": "2026-06-08T21:19:56", "updateTime": "2026-06-08T21:19:56"}]} | PASS | P1 | GET /product/list/shop/322364109750710272 | -| USER-005 | 普通用户 | 收藏 | 用户已登录,作品存在 | 收藏作品 | 收藏成功 | {"code": 200, "message": "操作成功", "data": "ok"} | PASS | - | POST /wishlist/add | -| USER-005B | 普通用户 | 收藏 | 作品已收藏 | 查询收藏状态 | 返回已收藏 | {"code": 200, "message": "操作成功", "data": true} | PASS | - | GET /wishlist/check | -| USER-006 | 普通用户 | 结算预览 | 用户已登录,作品可预约 | checkout-preview | 返回金额和可用优惠信息 | {"code": 500, "message": "请先将商品加入购物车后再结算", "data": null} | FAIL | P1 | POST /order/checkout-preview | -| USER-007 | 普通用户 | 下单 | 用户已登录,作品/设计师/排班可用 | 创建订单 | 返回订单、订单项,DB 生成 t_order/t_order_item | {"code": 500, "message": "请先将商品加入购物车后再结算", "data": null} | FAIL | P0 | POST /order/create | -| LINK-004 | 指尖管理师 | 新建预约联动 | 客户/作品/设计师存在 | 规划端新建预约 | 后台订单、订单项、预约占用同步生成 | {"code": 500, "message": "涓嶅彲棰勭害", "data": null} | FAIL | P0 | POST /admin/planning/appointments | -| PERM-001 | 后台店长 | 跨店隔离 | other 店长登录 other 门店 | 请求 normal 门店作品列表 | 应无权查看或返回本店空列表,不泄露 normal 数据 | {"code": 200, "message": "操作成功", "data": {"list": [], "total": "0", "page": 1, "size": 20}} | PASS | P0 | GET /admin/product/list?shopId=normal as other manager | -| EDGE-002 | 平台管理员 | 停用店铺 | disabled 门店为停用 | 尝试给停用店铺创建店长 | 应拦截并提示店铺不可用/冻结 | {"code": 500, "message": "所属店铺不存在或已失效", "data": null} | PASS | P1 | POST /admin/user/create disabled shop | -| EDGE-003 | 未登录用户 | 鉴权健壮性 | 无 token | 直接调用写接口下单 | 返回 401,不创建订单 | {"code": 401, "message": "未提供认证Token"} | PASS | P0 | POST /order/create without token | -| EDGE-004 | 过期/错误 token | 鉴权健壮性 | 错误 token | 调用需登录 GET 接口 | 返回 401/403 | HTTP 401, {"code":401,"message":"Token无效或已过期"} | PASS | P0 | GET /order/list with invalid token | -| PASS-010 | 全角色 | 数据一致性 | 主链路执行后 | 核验核心表计数、孤儿预约、重复占用 | 无孤儿预约、无重复 active 占用 | counts={'t_user': 6, 't_shop': 4, 't_user_shop_binding': 5, 't_nail_artist_info': 2, 't_artist_schedule': 1, 't_product': 1, 't_order': 0, 't_order_item': 0, 't_appointment_reservation': 0, 't_user_agreement_consent': 2}, orphan=0, duplicate=0 | PASS | P0 | DB consistency | -| UI-002 | 小程序端 | 微信开发者工具页面测试 | 当前会话未暴露微信开发者工具自动化入口 | 执行管理师/用户/设计师小程序页面真实点击 | 页面可交互、布局不遮挡 | 工具阻塞:未发现可调用微信开发者工具/小程序 MCP;API+DB 联动已执行 | BLOCKED | P3 | tool unavailable | - -## 失败 / 阻塞项 - -| 用例编号 | 等级 | 状态 | 复现/证据 | -|---|---|---|---| -| ENV-002 | P3 | BLOCKED | HTTP 500 / Nacos dev host reachable; secrets redacted | -| USER-006 | P1 | FAIL | {"code": 500, "message": "请先将商品加入购物车后再结算", "data": null} / POST /order/checkout-preview | -| USER-007 | P0 | FAIL | {"code": 500, "message": "请先将商品加入购物车后再结算", "data": null} / POST /order/create | -| LINK-004 | P0 | FAIL | {"code": 500, "message": "涓嶅彲棰勭害", "data": null} / POST /admin/planning/appointments | -| UI-002 | P3 | BLOCKED | 工具阻塞:未发现可调用微信开发者工具/小程序 MCP;API+DB 联动已执行 / tool unavailable | \ No newline at end of file diff --git a/artifacts/full-regression/acceptance_fd0608212143.json b/artifacts/full-regression/acceptance_fd0608212143.json deleted file mode 100644 index 966b5af4..00000000 --- a/artifacts/full-regression/acceptance_fd0608212143.json +++ /dev/null @@ -1,623 +0,0 @@ -{ - "runId": "fd0608212143", - "executedAt": "2026-06-08T21:21:51", - "summary": { - "PASS": 43, - "FAIL": 4, - "BLOCKED": 1 - }, - "state": { - "runId": "fd0608212143", - "baseUrl": "http://127.0.0.1:18081", - "ids": { - "normalShop": 322364589218377728, - "expiredShop": 322364589344206848, - "disabledShop": 322364589516173312, - "otherShop": 322364589629419520, - "manager": 322364590870933504, - "artist1": 322364591995006976, - "artist2": 322364592766758912, - "customer": 322364593597231104, - "otherManager": 322364594301874176, - "product": 322364601348304896, - "order": 322364602837282816, - "orderItem": 322364602841477120 - }, - "tokens": { - "platformAdmin": "***" - }, - "db": { - "initStatements": 386 - } - }, - "cases": [ - { - "id": "ENV-001", - "role": "环境", - "module": "Core 健康检查", - "precondition": "Core 18081 已启动", - "steps": "GET /shop/list/simple", - "expected": "HTTP 200", - "actual": "HTTP 200, {\"code\":200,\"message\":\"操作成功\",\"data\":[{\"id\":\"322364109750710272\",\"shopName\":\"fd0608211949 normal shop edited\"},{\"id\":\"322364110585376768\",\"shopName\":\"fd0608211949 other shop\"}]}", - "status": "PASS", - "priority": "P0", - "evidence": "http://127.0.0.1:18081" - }, - { - "id": "ENV-002", - "role": "环境", - "module": "Nacos Dev 命名空间", - "precondition": "仅读开发 Nacos", - "steps": "登录 Nacos 读取 YumiNail-Dev", - "expected": "成功读取或记录阻塞", - "actual": "HTTP 500", - "status": "BLOCKED", - "priority": "P3", - "evidence": "Nacos dev host reachable; secrets redacted" - }, - { - "id": "ENV-003", - "role": "环境", - "module": "数据库重建", - "precondition": "已有备份 nailart_backup_fd0608202858.sql", - "steps": "DROP/CREATE nailart 并执行 YumiNail.sql", - "expected": "初始化成功且基础权限/管理员存在", - "actual": "初始化语句 386, counts={'t_user': 1, 't_shop': 0, 't_user_shop_binding': 0, 't_nail_artist_info': 0, 't_artist_schedule': 0, 't_product': 0, 't_order': 0, 't_order_item': 0, 't_appointment_reservation': 0, 't_user_agreement_consent': 0}", - "status": "PASS", - "priority": "-", - "evidence": "YumiNail-Core/src/main/resources/files/YumiNail.sql" - }, - { - "id": "ADMIN-001", - "role": "平台管理员", - "module": "登录", - "precondition": "默认管理员 xiaowang", - "steps": "账号密码登录后台", - "expected": "返回 type=4 accessToken", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"accessToken\": \"***\", \"refreshToken\": \"***\", \"userInfo\": {\"id\": \"1\", \"account\": \"xiaowang\", \"nickname\": \"系统管理员\", \"avatar\": \"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\", \"type\": 4, \"shopId\": null, \"shopName\": null, \"shopAuthorizationExpireTime\": null, \"shopAuthorizationExpired\": false, \"shopIds\": [], \"shopNames\": [], \"createTime\": \"2026-06-08T21:21:46\"}, \"needSetPassword\": false}}", - "status": "PASS", - "priority": "P0", - "evidence": "POST /admin/auth/login" - }, - { - "id": "ADMIN-002-normal", - "role": "平台管理员", - "module": "店铺管理", - "precondition": "平台管理员已登录", - "steps": "创建normal门店", - "expected": "返回门店ID且 t_shop 可查", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364589218377728\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/shops/create" - }, - { - "id": "ADMIN-002-expired", - "role": "平台管理员", - "module": "店铺管理", - "precondition": "平台管理员已登录", - "steps": "创建expired门店", - "expected": "返回门店ID且 t_shop 可查", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364589344206848\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/shops/create" - }, - { - "id": "ADMIN-002-disabled", - "role": "平台管理员", - "module": "店铺管理", - "precondition": "平台管理员已登录", - "steps": "创建disabled门店", - "expected": "返回门店ID且 t_shop 可查", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364589516173312\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/shops/create" - }, - { - "id": "ADMIN-002-other", - "role": "平台管理员", - "module": "店铺管理", - "precondition": "平台管理员已登录", - "steps": "创建other门店", - "expected": "返回门店ID且 t_shop 可查", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364589629419520\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/shops/create" - }, - { - "id": "ADMIN-003", - "role": "平台管理员", - "module": "店铺管理", - "precondition": "normal 门店存在", - "steps": "编辑门店资料后查询详情", - "expected": "更新成功且详情为新值", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": true}", - "status": "PASS", - "priority": "-", - "evidence": "PUT /admin/shops/update/322364589218377728" - }, - { - "id": "ADMIN-003B", - "role": "平台管理员", - "module": "店铺管理", - "precondition": "normal 门店存在", - "steps": "查询门店详情", - "expected": "返回 normal 门店详情", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364589218377728\", \"shopName\": \"fd0608212143 normal shop edited\", \"description\": \"normal edited\", \"address\": \"Dev 1\", \"mapProvider\": \"TENCENT\", \"longitude\": null, \"latitude\": null, \"navigationUrls\": {}, \"businessHours\": \"09:00-21:00\", \"coverImageFileId\": \"\", \"coverImageUrls\": [], \"imageFileIds\": null, \"imageUrls\": [], \"themePrimaryColor\": \"#1677FF\", \"themeSecondaryColor\": \"#F5F5F5\", \"themeAccentColor\": \"#FF7A45\", \"themePageBgColor\": \"#FFFFFF\", \"themeCardBgColor\": \"#FFFFFF\", \"themeBackgroundImageFileId\": null, \"status\": 1, \"authorizationStartDate\": \"2026-06-07\", \"authorizationDays\": 45, \"authorizationExpireTime\": \"2026-07-21T23:59:59\", \"authorizationExpired\": false, \"authorizationStatusText\": \"有效\", \"createTime\": \"2026-06-08T21:21:47\", \"updateTime\": \"2026-06-08T21:21:47\"}}", - "status": "PASS", - "priority": "-", - "evidence": "GET /admin/shops/322364589218377728" - }, - { - "id": "ADMIN-004", - "role": "平台管理员", - "module": "店铺启停", - "precondition": "disabled 门店存在", - "steps": "JSON body 修改门店状态为启用", - "expected": "状态更新成功", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": true}", - "status": "PASS", - "priority": "-", - "evidence": "PUT /admin/shops/status/322364589516173312" - }, - { - "id": "ADMIN-004B", - "role": "平台管理员", - "module": "店铺启停", - "precondition": "disabled 门店已启用", - "steps": "JSON body 修改门店状态为停用", - "expected": "状态更新成功", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": true}", - "status": "PASS", - "priority": "-", - "evidence": "PUT /admin/shops/status/322364589516173312" - }, - { - "id": "ADMIN-007-manager", - "role": "平台管理员", - "module": "账号管理", - "precondition": "门店已创建", - "steps": "创建manager type=2", - "expected": "返回用户ID、默认权限和门店绑定写入", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364590870933504\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-artistone", - "role": "平台管理员", - "module": "账号管理", - "precondition": "门店已创建", - "steps": "创建artistone type=3", - "expected": "返回用户ID、默认权限和门店绑定写入", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364591995006976\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-artisttwo", - "role": "平台管理员", - "module": "账号管理", - "precondition": "门店已创建", - "steps": "创建artisttwo type=3", - "expected": "返回用户ID、默认权限和门店绑定写入", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364592766758912\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-customer", - "role": "平台管理员", - "module": "账号管理", - "precondition": "门店已创建", - "steps": "创建customer type=0", - "expected": "返回用户ID、默认权限和门店绑定写入", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364593597231104\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-othermgr", - "role": "平台管理员", - "module": "账号管理", - "precondition": "门店已创建", - "steps": "创建othermgr type=2", - "expected": "返回用户ID、默认权限和门店绑定写入", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364594301874176\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-expiredmgr", - "role": "平台管理员", - "module": "账号管理", - "precondition": "门店已创建", - "steps": "创建expiredmgr type=2", - "expected": "过期/冻结门店禁止创建可登录店长,返回明确错误", - "actual": "{\"code\": 500, \"message\": \"店铺已被冻结\", \"data\": null}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/user/create" - }, - { - "id": "MANAGER-001", - "role": "指尖管理师/店长", - "module": "登录", - "precondition": "manager 账号绑定 normal 门店", - "steps": "后台/管理师账号登录并选择门店", - "expected": "返回 type=2 shopId=normal", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"accessToken\": \"***\", \"refreshToken\": \"***\", \"userInfo\": {\"id\": \"322364590870933504\", \"account\": \"fd0608212143manager\", \"nickname\": \"fd0608212143 manager\", \"avatar\": \"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\", \"type\": 2, \"shopId\": \"322364589218377728\", \"shopName\": \"fd0608212143 normal shop edited\", \"shopAuthorizationExpireTime\": \"2026-07-21T23:59:59\", \"shopAuthorizationExpired\": false, \"shopIds\": [\"322364589218377728\"], \"shopNames\": [\"fd0608212143 normal shop edited\"], \"createTime\": \"2026-06-08T21:21:48\"}, \"needSetPassword\": false}}", - "status": "PASS", - "priority": "P0", - "evidence": "POST /admin/auth/login" - }, - { - "id": "ARTIST-001", - "role": "设计师/美甲师", - "module": "登录", - "precondition": "artistone 账号绑定 normal 门店", - "steps": "设计师账号登录", - "expected": "返回 type=3 shopId=normal", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"accessToken\": \"***\", \"refreshToken\": \"***\", \"userInfo\": {\"id\": \"322364591995006976\", \"account\": \"fd0608212143artistone\", \"nickname\": \"fd0608212143 artistone\", \"avatar\": \"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\", \"type\": 3, \"shopId\": \"322364589218377728\", \"shopName\": \"fd0608212143 normal shop edited\", \"shopAuthorizationExpireTime\": \"2026-07-21T23:59:59\", \"shopAuthorizationExpired\": false, \"shopIds\": [\"322364589218377728\"], \"shopNames\": [\"fd0608212143 normal shop edited\"], \"createTime\": \"2026-06-08T21:21:48\"}, \"needSetPassword\": false}}", - "status": "PASS", - "priority": "P0", - "evidence": "POST /admin/auth/login" - }, - { - "id": "ADMIN-008", - "role": "店长", - "module": "设计师资料", - "precondition": "设计师账号存在", - "steps": "保存设计师资料", - "expected": "返回保存后的设计师资料", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364592166973440\", \"userId\": \"322364591995006976\", \"identity\": \"首席设计师\", \"experience\": 5, \"skills\": \"法式,渐变,手绘\", \"rating\": 4.9, \"status\": 1, \"participateProduction\": 1, \"workStartTime\": \"09:00:00\", \"workEndTime\": \"21:00:00\", \"userType\": 3, \"userTypeName\": \"美甲师\", \"portfolio\": \"\", \"nickname\": \"fd0608212143 artistone\", \"shopId\": \"322364589218377728\", \"shopName\": \"fd0608212143 normal shop edited\", \"signature\": \"fd0608212143 signature\"}}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/nail-artist/save" - }, - { - "id": "ADMIN-011", - "role": "店长", - "module": "排班", - "precondition": "设计师可用", - "steps": "保存设计师排班", - "expected": "t_artist_schedule 生成记录", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364599410536448\", \"shopId\": \"322364589218377728\", \"artistId\": \"322364591995006976\", \"workDate\": \"2026-06-10\", \"startTime\": \"09:00:00\", \"endTime\": \"21:00:00\", \"slotMinutes\": 60, \"capacity\": 1, \"status\": 1, \"remark\": \"fd0608212143\", \"createTime\": \"2026-06-08T21:21:49.7444319\"}}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/artist-schedule/save" - }, - { - "id": "ADMIN-011B", - "role": "店长", - "module": "排班", - "precondition": "规划端新建预约目标日", - "steps": "补充规划端目标日期排班", - "expected": "t_artist_schedule 生成第二天排班", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364599733497856\", \"shopId\": \"322364589218377728\", \"artistId\": \"322364591995006976\", \"workDate\": \"2026-06-11\", \"startTime\": \"09:00:00\", \"endTime\": \"21:00:00\", \"slotMinutes\": 60, \"capacity\": 1, \"status\": 1, \"remark\": \"fd0608212143-planning\", \"createTime\": \"2026-06-08T21:21:49.8228393\"}}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/artist-schedule/save" - }, - { - "id": "USER-001", - "role": "普通用户", - "module": "协议", - "precondition": "匿名可访问", - "steps": "读取当前用户协议版本", - "expected": "返回 USER_TERMS 和 PRIVACY_POLICY", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": [{\"id\": \"313931273555138001\", \"agreementType\": \"USER_TERMS\", \"agreementTypeName\": \"用户协议\", \"title\": \"用户协议\", \"version\": \"2026.05.18\", \"content\": \"欢迎使用 Fingertip Designer 指尖设计师。请在使用账号、预约、订单、会员、消息等功能前仔细阅读本协议。继续登录或注册即表示你已理解并同意平台基础服务规则、账号安全要求、订单预约规则和依法合规使用要求。\", \"status\": 1, \"statusText\": \"已发布\", \"effectiveTime\": \"2026-06-08T21:21:47\", \"createTime\": \"2026-06-08T21:21:47\", \"updateTime\": \"2026-06-08T21:21:47\"}, {\"id\": \"313931273555138002\", \"agreementType\": \"PRIVACY_POLICY\", \"agreementTypeName\": \"隐私政策\", \"title\": \"隐私政策\", \"version\": \"2026.05.18\", \"content\": \"Fingertip Designer 指尖设计师会在提供登录注册、预约下单、会员余额、消息通知和客户服务时处理必要的手机号、昵称、门店归属、订单与设备信息。我们仅在业务需要和法律允许范围内使用这些信息,并采取访问控制、脱敏展示和审计记录等措施保护数据安全。\", \"status\": 1, \"statusText\": \"已发布\", \"effectiveTime\": \"2026-06-08T21:21:47\", \"createTime\": \"2026-06-08T21:21:47\", \"updateTime\": \"2026-06-08T21:21:47\"}]}", - "status": "PASS", - "priority": "P0", - "evidence": "GET /legal-agreement/current" - }, - { - "id": "USER-003", - "role": "普通用户", - "module": "登录", - "precondition": "普通用户账号已创建并提交当前协议版本", - "steps": "账号密码登录用户端", - "expected": "返回 accessToken 并写入协议同意记录", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"accessToken\": \"***\", \"refreshToken\": \"***\", \"userInfo\": {\"id\": \"322364593597231104\", \"account\": \"fd0608212143customer\", \"nickname\": \"fd0608212143 customer\", \"avatar\": \"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\", \"type\": 0, \"shopId\": \"322364589218377728\", \"shopName\": \"fd0608212143 normal shop edited\", \"shopAuthorizationExpireTime\": \"2026-07-21T23:59:59\", \"shopAuthorizationExpired\": false, \"shopIds\": [\"322364589218377728\"], \"shopNames\": [\"fd0608212143 normal shop edited\"], \"createTime\": \"2026-06-08T21:21:48\"}, \"needSetPassword\": false}}", - "status": "PASS", - "priority": "P0", - "evidence": "POST /user/login" - }, - { - "id": "USER-003B", - "role": "普通用户", - "module": "协议留痕", - "precondition": "用户登录成功", - "steps": "查询 t_user_agreement_consent", - "expected": "至少 2 条同意记录", - "actual": "consent_count=2", - "status": "PASS", - "priority": "P1", - "evidence": "DB t_user_agreement_consent" - }, - { - "id": "ADMIN-012", - "role": "店长", - "module": "作品管理", - "precondition": "normal 门店和设计师可用", - "steps": "创建可预约作品", - "expected": "返回 productId 且用户端可见", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364601348304896\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/product/create" - }, - { - "id": "USER-004", - "role": "普通用户", - "module": "浏览", - "precondition": "作品已上架", - "steps": "匿名查询作品详情", - "expected": "详情返回数据", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364601348304896\", \"shopId\": \"322364589218377728\", \"shopName\": \"fd0608212143 normal shop edited\", \"title\": \"fd0608212143 主链路款式\", \"description\": \"全链路测试作品\", \"targetAudience\": \"通勤\", \"precautions\": \"无\", \"imageFileIds\": \"\", \"imageUrls\": [], \"price\": 128.0, \"tags\": \"法式,测试\", \"tagList\": [], \"tagInfos\": [], \"likeCount\": 0, \"collectCount\": 0, \"approximateDuration\": \"60分钟\", \"serviceDurationMinutes\": \"60\", \"bookableArtists\": \"322364591995006976\", \"availableBookableArtistCount\": 1, \"bookableArtistRestricted\": true, \"availableCoupons\": \"\", \"createTime\": \"2026-06-08T21:21:50\", \"updateTime\": \"2026-06-08T21:21:50\"}}", - "status": "PASS", - "priority": "-", - "evidence": "GET /product/get/322364601348304896" - }, - { - "id": "USER-004B", - "role": "普通用户", - "module": "浏览", - "precondition": "作品已上架", - "steps": "匿名查询门店作品列表", - "expected": "列表包含新建作品", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": [{\"id\": \"322364601348304896\", \"shopId\": \"322364589218377728\", \"shopName\": \"fd0608212143 normal shop edited\", \"title\": \"fd0608212143 主链路款式\", \"description\": \"全链路测试作品\", \"targetAudience\": \"通勤\", \"precautions\": \"无\", \"imageFileIds\": \"\", \"imageUrls\": [], \"price\": 128.0, \"tags\": \"法式,测试\", \"tagList\": [], \"tagInfos\": [], \"likeCount\": 0, \"collectCount\": 0, \"approximateDuration\": \"60分钟\", \"serviceDurationMinutes\": \"60\", \"bookableArtists\": \"322364591995006976\", \"availableBookableArtistCount\": 1, \"bookableArtistRestricted\": true, \"availableCoupons\": \"\", \"createTime\": \"2026-06-08T21:21:50\", \"updateTime\": \"2026-06-08T21:21:50\"}]}", - "status": "PASS", - "priority": "P1", - "evidence": "GET /product/list/shop/322364589218377728" - }, - { - "id": "USER-005", - "role": "普通用户", - "module": "收藏", - "precondition": "用户已登录,作品存在", - "steps": "收藏作品", - "expected": "收藏成功", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"ok\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /wishlist/add" - }, - { - "id": "USER-005B", - "role": "普通用户", - "module": "收藏", - "precondition": "作品已收藏", - "steps": "查询收藏状态", - "expected": "返回已收藏", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": true}", - "status": "PASS", - "priority": "-", - "evidence": "GET /wishlist/check" - }, - { - "id": "USER-005C", - "role": "普通用户", - "module": "购物车", - "precondition": "用户已登录,作品存在", - "steps": "加入购物车", - "expected": "购物车新增该作品,供结算/下单使用", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": null}", - "status": "PASS", - "priority": "-", - "evidence": "POST /cart/add" - }, - { - "id": "USER-005D", - "role": "普通用户", - "module": "购物车", - "precondition": "作品已加入购物车", - "steps": "查询购物车列表", - "expected": "列表包含新建作品及可预约设计师", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": [{\"id\": \"322364602166194176\", \"productId\": \"322364601348304896\", \"shopId\": \"322364589218377728\", \"productTitle\": \"fd0608212143 主链路款式\", \"productImage\": null, \"price\": 128.0, \"quantity\": 1, \"totalPrice\": 128.0, \"tags\": \"法式,测试\", \"tagNames\": \"\", \"approximateDuration\": \"60分钟\", \"bookableArtists\": \"322364591995006976\", \"availableBookableArtistCount\": 1, \"bookableArtistRestricted\": true, \"availableArtists\": [{\"id\": \"322364591995006976\", \"name\": \"fd0608212143 artistone\", \"avatar\": \"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\", \"userType\": 3, \"roleLabel\": \"美甲师\", \"participateProduction\": false}]}]}", - "status": "PASS", - "priority": "-", - "evidence": "GET /cart/list" - }, - { - "id": "USER-006", - "role": "普通用户", - "module": "结算预览", - "precondition": "用户已登录,作品可预约", - "steps": "checkout-preview", - "expected": "返回金额和可用优惠信息", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"subtotalAmount\": 128.0, \"savedAmount\": 0.0, \"payableAmount\": 128.0, \"bestCoupon\": null, \"availableCoupons\": [], \"unavailableCoupons\": [{\"id\": \"322364589235154944\", \"couponId\": \"322364589235154944\", \"userCouponId\": null, \"sourceType\": \"SYSTEM_VIP\", \"couponName\": \"青铜VIP自动95折券\", \"couponType\": 1, \"couponTypeName\": \"折扣券\", \"discountValue\": 9.5, \"minAmount\": 0.0, \"reduceAmount\": 0.0, \"discountAmount\": 0.0, \"available\": false, \"best\": false, \"vipAuto\": true, \"displayText\": \"VIP自动优惠:青铜VIP自动95折券,9.5折\", \"savingText\": null, \"unavailableReason\": \"本单商品暂不适用\", \"startTime\": \"2026-06-08T21:21:47\", \"endTime\": \"2099-12-31T23:59:59\"}, {\"id\": \"322364589243543552\", \"couponId\": \"322364589243543552\", \"userCouponId\": null, \"sourceType\": \"SYSTEM_VIP\", \"couponName\": \"白银VIP自动92折券\", \"couponType\": 1, \"couponTypeName\": \"折扣券\", \"discountValue\": 9.2, \"minAmount\": 0.0, \"reduceAmount\": 0.0, \"discountAmount\": 0.0, \"available\": false, \"best\": false, \"vipAuto\": true, \"displayText\": \"VIP自动优惠:白银VIP自动92折券,9.2折\", \"savingText\": null, \"unavailableReason\": \"本单商品暂不适用\", \"startTime\": \"2026-06-08T21:21:47\", \"endTime\": \"2099-12-31T23:59:59\"}, {\"id\": \"322364589256126464\", \"couponId\": \"322364589256126464\", \"userCouponId\": null, \"sourceType\": \"SYSTEM_VIP\", \"couponName\": \"黄金VIP自动90折券\", \"couponType\": 1, \"couponTypeName\": \"折扣券\", \"discountValue\": 9.0, \"minAmount\": 0.0, \"reduceAmount\": 0.0, \"discountAmount\": 0.0, \"available\": false, \"best\": false, \"vipAuto\": true, \"displayText\": \"VIP自动优惠:黄金VIP自动90折券,9折\", \"savingText\": null, \"unavailableReason\": \"本单商品暂不适用\", \"startTime\": \"2026-06-08T21:21:47\"", - "status": "PASS", - "priority": "-", - "evidence": "POST /order/checkout-preview" - }, - { - "id": "USER-007", - "role": "普通用户", - "module": "下单", - "precondition": "用户已登录,作品/设计师/排班可用", - "steps": "创建订单", - "expected": "返回订单、订单项,DB 生成 t_order/t_order_item", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364602837282816\", \"orderNo\": \"ORD322364602833088512\", \"userId\": \"322364593597231104\", \"shopId\": \"322364589218377728\", \"shopName\": \"fd0608212143 normal shop edited\", \"totalAmount\": 128.0, \"actualAmount\": 128.0, \"couponId\": null, \"userCouponId\": null, \"couponSourceType\": null, \"couponName\": null, \"paymentStatus\": \"UNPAID\", \"payAmount\": 128.0, \"paidAmount\": 0, \"payTime\": null, \"paymentMethod\": null, \"paymentOrderNo\": null, \"refundStatus\": null, \"customerRemark\": \"fd0608212143\", \"quoteStatus\": \"CONFIRMING\", \"quoteStatusText\": \"确认价格中\", \"quoteUserConfirmed\": false, \"quoteShopConfirmed\": false, \"quoteExpireTime\": \"2026-06-09T21:21:50.5600502\", \"quoteConfirmedTime\": null, \"quoteMessages\": [{\"id\": \"322364602862448640\", \"orderId\": \"322364602837282816\", \"actorId\": \"322364593597231104\", \"actorType\": \"USER\", \"actorTypeText\": \"用户\", \"action\": \"CREATE\", \"actionText\": \"发起询价预约\", \"remark\": \"fd0608212143\", \"items\": [{\"orderItemId\": \"322364602841477120\", \"productId\": \"322364601348304896\", \"productTitle\": \"fd0608212143 主链路款式\", \"quantity\": 1, \"referencePrice\": 128.0, \"quotedPrice\": null, \"confirmedPrice\": null}], \"createTime\": \"2026-06-08T21:21:51\"}], \"customerNickname\": \"fd0608212143 customer\", \"customerPhoneMasked\": \"191****0004\", \"artistOrderSource\": null, \"artistOrderSourceText\": null, \"status\": 0, \"statusText\": \"确认价格中\", \"createTime\": null, \"items\": [{\"id\": \"322364602841477120\", \"productId\": \"322364601348304896\", \"productTitle\": \"fd0608212143 主链路款式\", \"productImage\": null, \"quantity\": 1, \"price\": 128.0, \"referencePrice\": 128.0, \"quotedPrice\":", - "status": "PASS", - "priority": "-", - "evidence": "POST /order/create" - }, - { - "id": "USER-007B", - "role": "普通用户", - "module": "DB核验", - "precondition": "订单创建成功", - "steps": "查询 t_order/t_order_item", - "expected": "订单项设计师和预约时间一致", - "actual": "{\"status\": 0, \"quote_status\": \"CONFIRMING\", \"artist_id\": 322364591995006976, \"appointment_time\": \"2026-06-10 10:00:00\"}", - "status": "PASS", - "priority": "P0", - "evidence": "DB t_order + t_order_item" - }, - { - "id": "EDGE-001", - "role": "普通用户", - "module": "预约冲突", - "precondition": "已有同设计师同时间订单占用", - "steps": "重复提交同时间预约", - "expected": "应拦截重复占用/冲突或操作幂等保护", - "actual": "{\"code\": 500, \"message\": \"请先将商品加入购物车后再结算\", \"data\": null}", - "status": "FAIL", - "priority": "P0", - "evidence": "POST /order/create duplicate" - }, - { - "id": "LINK-001", - "role": "店长", - "module": "报价联动", - "precondition": "用户订单已创建", - "steps": "店长提交报价", - "expected": "订单 quote_status 更新为 WAIT_USER/PROCESSING", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364602837282816\", \"orderNo\": \"ORD322364602833088512\", \"userId\": \"322364593597231104\", \"shopId\": \"322364589218377728\", \"shopName\": \"fd0608212143 normal shop edited\", \"totalAmount\": 128.0, \"actualAmount\": 128.0, \"couponId\": \"0\", \"userCouponId\": null, \"couponSourceType\": null, \"couponName\": null, \"paymentStatus\": \"UNPAID\", \"payAmount\": 128.0, \"paidAmount\": 0.0, \"payTime\": null, \"paymentMethod\": null, \"paymentOrderNo\": null, \"refundStatus\": \"NONE\", \"customerRemark\": \"fd0608212143\", \"quoteStatus\": \"CONFIRMING\", \"quoteStatusText\": \"确认价格中\", \"quoteUserConfirmed\": false, \"quoteShopConfirmed\": true, \"quoteExpireTime\": \"2026-06-09T21:21:51\", \"quoteConfirmedTime\": null, \"quoteMessages\": [{\"id\": \"322364602862448640\", \"orderId\": \"322364602837282816\", \"actorId\": \"322364593597231104\", \"actorType\": \"USER\", \"actorTypeText\": \"用户\", \"action\": \"CREATE\", \"actionText\": \"发起询价预约\", \"remark\": \"fd0608212143\", \"items\": [{\"orderItemId\": \"322364602841477120\", \"productId\": \"322364601348304896\", \"productTitle\": \"fd0608212143 主链路款式\", \"quantity\": 1, \"referencePrice\": 128.0, \"quotedPrice\": 138.0, \"confirmedPrice\": null}], \"createTime\": \"2026-06-08T21:21:51\"}, {\"id\": \"322364604095574016\", \"orderId\": \"322364602837282816\", \"actorId\": \"322364590870933504\", \"actorType\": \"SHOP\", \"actorTypeText\": \"门店\", \"action\": \"SHOP_QUOTE\", \"actionText\": \"门店报价\", \"remark\": \"店长报价\", \"items\": [{\"orderItemId\": \"322364602841477120\", \"productId\": \"322364601348304896\", \"productTitle\": \"fd0608212143 主链路款式\", \"quantity\": 1, \"referencePrice\": 128.0, \"quotedPrice\": 138.0, \"confirmedPrice\": nul", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/order/322364602837282816/quote" - }, - { - "id": "LINK-002", - "role": "店长", - "module": "报价联动", - "precondition": "店长已提交报价", - "steps": "店长确认报价", - "expected": "订单 quote_shop_confirmed=1", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364602837282816\", \"orderNo\": \"ORD322364602833088512\", \"userId\": \"322364593597231104\", \"shopId\": \"322364589218377728\", \"shopName\": \"fd0608212143 normal shop edited\", \"totalAmount\": 128.0, \"actualAmount\": 128.0, \"couponId\": \"0\", \"userCouponId\": null, \"couponSourceType\": null, \"couponName\": null, \"paymentStatus\": \"UNPAID\", \"payAmount\": 128.0, \"paidAmount\": 0.0, \"payTime\": null, \"paymentMethod\": null, \"paymentOrderNo\": null, \"refundStatus\": \"NONE\", \"customerRemark\": \"fd0608212143\", \"quoteStatus\": \"CONFIRMING\", \"quoteStatusText\": \"确认价格中\", \"quoteUserConfirmed\": false, \"quoteShopConfirmed\": true, \"quoteExpireTime\": \"2026-06-09T21:21:51\", \"quoteConfirmedTime\": null, \"quoteMessages\": [{\"id\": \"322364602862448640\", \"orderId\": \"322364602837282816\", \"actorId\": \"322364593597231104\", \"actorType\": \"USER\", \"actorTypeText\": \"用户\", \"action\": \"CREATE\", \"actionText\": \"发起询价预约\", \"remark\": \"fd0608212143\", \"items\": [{\"orderItemId\": \"322364602841477120\", \"productId\": \"322364601348304896\", \"productTitle\": \"fd0608212143 主链路款式\", \"quantity\": 1, \"referencePrice\": 128.0, \"quotedPrice\": 138.0, \"confirmedPrice\": null}], \"createTime\": \"2026-06-08T21:21:51\"}, {\"id\": \"322364604095574016\", \"orderId\": \"322364602837282816\", \"actorId\": \"322364590870933504\", \"actorType\": \"SHOP\", \"actorTypeText\": \"门店\", \"action\": \"SHOP_QUOTE\", \"actionText\": \"门店报价\", \"remark\": \"店长报价\", \"items\": [{\"orderItemId\": \"322364602841477120\", \"productId\": \"322364601348304896\", \"productTitle\": \"fd0608212143 主链路款式\", \"quantity\": 1, \"referencePrice\": 128.0, \"quotedPrice\": 138.0, \"confirmedPrice\": nul", - "status": "PASS", - "priority": "-", - "evidence": "PUT /admin/order/322364602837282816/quote/confirm" - }, - { - "id": "LINK-003", - "role": "普通用户", - "module": "报价联动", - "precondition": "店长已确认报价", - "steps": "用户确认报价", - "expected": "订单 quote_user_confirmed=1,并生成预约占用", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364602837282816\", \"orderNo\": \"ORD322364602833088512\", \"userId\": \"322364593597231104\", \"shopId\": \"322364589218377728\", \"shopName\": \"fd0608212143 normal shop edited\", \"totalAmount\": 138.0, \"actualAmount\": 138.0, \"couponId\": \"0\", \"userCouponId\": null, \"couponSourceType\": null, \"couponName\": null, \"paymentStatus\": \"UNPAID\", \"payAmount\": 138.0, \"paidAmount\": 0.0, \"payTime\": null, \"paymentMethod\": null, \"paymentOrderNo\": null, \"refundStatus\": \"NONE\", \"customerRemark\": \"fd0608212143\", \"quoteStatus\": \"CONFIRMED\", \"quoteStatusText\": \"价格已确认\", \"quoteUserConfirmed\": true, \"quoteShopConfirmed\": true, \"quoteExpireTime\": \"2026-06-09T21:21:51\", \"quoteConfirmedTime\": \"2026-06-08T21:21:51\", \"quoteMessages\": [{\"id\": \"322364602862448640\", \"orderId\": \"322364602837282816\", \"actorId\": \"322364593597231104\", \"actorType\": \"USER\", \"actorTypeText\": \"用户\", \"action\": \"CREATE\", \"actionText\": \"发起询价预约\", \"remark\": \"fd0608212143\", \"items\": [{\"orderItemId\": \"322364602841477120\", \"productId\": \"322364601348304896\", \"productTitle\": \"fd0608212143 主链路款式\", \"quantity\": 1, \"referencePrice\": 128.0, \"quotedPrice\": 138.0, \"confirmedPrice\": 138.0}], \"createTime\": \"2026-06-08T21:21:51\"}, {\"id\": \"322364604095574016\", \"orderId\": \"322364602837282816\", \"actorId\": \"322364590870933504\", \"actorType\": \"SHOP\", \"actorTypeText\": \"门店\", \"action\": \"SHOP_QUOTE\", \"actionText\": \"门店报价\", \"remark\": \"店长报价\", \"items\": [{\"orderItemId\": \"322364602841477120\", \"productId\": \"322364601348304896\", \"productTitle\": \"fd0608212143 主链路款式\", \"quantity\": 1, \"referencePrice\": 128.0, \"quotedPrice\": 138.0, \"conf", - "status": "PASS", - "priority": "-", - "evidence": "PUT /order/322364602837282816/quote/confirm" - }, - { - "id": "LINK-003B", - "role": "普通用户/店长", - "module": "DB联动", - "precondition": "用户确认报价后", - "steps": "查询订单项和预约占用", - "expected": "报价确认、预约占用生成且时间/设计师一致", - "actual": "{\"quote_status\": \"CONFIRMED\", \"quote_user_confirmed\": 1, \"quote_shop_confirmed\": 1, \"confirmed_price\": \"138.00\", \"ar_status\": \"CONFIRMED\", \"artist_id\": 322364591995006976, \"appointment_start_time\": \"2026-06-10 10:00:00\", \"appointment_end_time\": \"2026-06-10 11:00:00\"}", - "status": "PASS", - "priority": "P0", - "evidence": "DB t_order/t_order_item/t_appointment_reservation" - }, - { - "id": "MANAGER-002", - "role": "指尖管理师", - "module": "日/周/月规划", - "precondition": "订单已确认报价并生成占用", - "steps": "查询 planning calendar 日视图", - "expected": "返回包含该预约/单量", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"businessStartTime\": \"09:00\", \"businessEndTime\": \"21:00\", \"slotMinutes\": 30, \"artists\": [{\"id\": \"322364591995006976\", \"name\": \"fd0608212143 artistone\", \"shortName\": \"F\", \"phone\": \"19100000002\", \"avatar\": \"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\", \"color\": \"#D7A86E\", \"status\": 1, \"statusText\": \"可预约\", \"workStartTime\": \"09:00\", \"workEndTime\": \"21:00\", \"rangeCount\": 1}], \"schedules\": [{\"id\": \"322364599410536448\", \"artistId\": \"322364591995006976\", \"artistName\": \"fd0608212143 artistone\", \"date\": \"2026-06-10\", \"startTime\": \"09:00\", \"endTime\": \"21:00\", \"capacity\": 1, \"status\": 1, \"statusText\": \"可预约\", \"remark\": \"fd0608212143\"}], \"appointments\": [{\"orderId\": \"322364602837282816\", \"orderNo\": \"ORD322364602833088512\", \"orderItemId\": \"322364602841477120\", \"customerId\": \"322364593597231104\", \"customerName\": \"fd0608212143 customer\", \"customerPhone\": \"19100000004\", \"productId\": \"322364601348304896\", \"productTitle\": \"fd0608212143 主链路款式\", \"artistId\": \"322364591995006976\", \"artistName\": \"fd0608212143 artistone\", \"artistColor\": \"#D7A86E\", \"date\": \"2026-06-10\", \"startTime\": \"2026-06-10 10:00:00\", \"endTime\": \"2026-06-10 11:00:00\", \"startMinute\": 600, \"durationMinutes\": 60, \"status\": 1, \"statusText\": \"已确认\", \"amount\": 138.0, \"remark\": \"fd0608212143\"}], \"daySummaries\": [{\"date\": \"2026-06-10\", \"totalCount\": 1, \"artistCounts\": [{\"artistId\": \"322364591995006976\", \"artistName\": \"fd0608212143 artistone\", \"shortName\": \"F\", \"color\": \"#D7A86E\", \"count\": 1, \"status\": \"working\"}], \"dayStatus\": \"full\"}]}}", - "status": "PASS", - "priority": "P0", - "evidence": "GET /admin/planning/calendar" - }, - { - "id": "MANAGER-003", - "role": "指尖管理师", - "module": "改时间/改派", - "precondition": "订单预约已存在", - "steps": "改派到 artisttwo 并改到 11:00", - "expected": "订单项和预约占用同步更新", - "actual": "{\"code\": 500, \"message\": \"涓嶅彲棰勭害\", \"data\": null}", - "status": "FAIL", - "priority": "P0", - "evidence": "PUT /admin/planning/appointments/322364602841477120/time-artist" - }, - { - "id": "MANAGER-003B", - "role": "指尖管理师", - "module": "DB联动", - "precondition": "改派接口已执行", - "steps": "查询订单项/预约占用", - "expected": "artist_id 和 appointment_time 均同步为新值", - "actual": "{\"artist_id\": 322364591995006976, \"appointment_time\": \"2026-06-10 10:00:00\", \"ar_artist\": 322364591995006976, \"appointment_start_time\": \"2026-06-10 10:00:00\"}", - "status": "FAIL", - "priority": "P0", - "evidence": "DB t_order_item/t_appointment_reservation" - }, - { - "id": "ARTIST-002", - "role": "设计师/美甲师", - "module": "本人订单", - "precondition": "订单已改派到 artisttwo", - "steps": "artistone 查询本人订单列表", - "expected": "不能看到已改派给他人的订单", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"list\": [{\"id\": \"322364602837282816\", \"orderNo\": \"ORD322364602833088512\", \"userId\": \"322364593597231104\", \"shopId\": \"322364589218377728\", \"shopName\": \"fd0608212143 normal shop edited\", \"totalAmount\": 138.0, \"actualAmount\": 138.0, \"couponId\": \"0\", \"userCouponId\": null, \"couponSourceType\": null, \"couponName\": null, \"paymentStatus\": \"UNPAID\", \"payAmount\": 138.0, \"paidAmount\": 0.0, \"payTime\": null, \"paymentMethod\": null, \"paymentOrderNo\": null, \"refundStatus\": \"NONE\", \"customerRemark\": \"fd0608212143\", \"quoteStatus\": \"CONFIRMED\", \"quoteStatusText\": \"价格已确认\", \"quoteUserConfirmed\": true, \"quoteShopConfirmed\": true, \"quoteExpireTime\": \"2026-06-09T21:21:51\", \"quoteConfirmedTime\": \"2026-06-08T21:21:51\", \"quoteMessages\": [{\"id\": \"322364602862448640\", \"orderId\": \"322364602837282816\", \"actorId\": \"322364593597231104\", \"actorType\": \"USER\", \"actorTypeText\": \"用户\", \"action\": \"CREATE\", \"actionText\": \"发起询价预约\", \"remark\": \"fd0608212143\", \"items\": [{\"orderItemId\": \"322364602841477120\", \"productId\": \"322364601348304896\", \"productTitle\": \"fd0608212143 主链路款式\", \"quantity\": 1, \"referencePrice\": 128.0, \"quotedPrice\": 138.0, \"confirmedPrice\": 138.0}], \"createTime\": \"2026-06-08T21:21:51\"}, {\"id\": \"322364604095574016\", \"orderId\": \"322364602837282816\", \"actorId\": \"322364590870933504\", \"actorType\": \"SHOP\", \"actorTypeText\": \"门店\", \"action\": \"SHOP_QUOTE\", \"actionText\": \"门店报价\", \"remark\": \"店长报价\", \"items\": [{\"orderItemId\": \"322364602841477120\", \"productId\": \"322364601348304896\", \"productTitle\": \"fd0608212143 主链路款式\", \"quantity\": 1, \"referencePrice\": 128.0, \"quotedPrice\": 13", - "status": "FAIL", - "priority": "P0", - "evidence": "GET /admin/order/list as artistone" - }, - { - "id": "LINK-004", - "role": "指尖管理师", - "module": "新建预约联动", - "precondition": "客户/作品/设计师存在", - "steps": "规划端新建预约", - "expected": "后台订单、订单项、预约占用同步生成", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"orderId\": \"322364606305972225\", \"orderNo\": \"ORD322364606305972224\", \"orderItemId\": \"322364606314360832\", \"customerId\": \"322364593597231104\", \"customerName\": \"fd0608212143 customer\", \"customerPhone\": \"19100000004\", \"productId\": \"322364601348304896\", \"productTitle\": \"fd0608212143 主链路款式\", \"artistId\": \"322364591995006976\", \"artistName\": \"fd0608212143 artistone\", \"artistColor\": \"#D7A86E\", \"date\": \"2026-06-11\", \"startTime\": \"2026-06-11 14:00:00\", \"endTime\": \"2026-06-11 15:00:00\", \"startMinute\": 840, \"durationMinutes\": 60, \"status\": 1, \"statusText\": \"已确认\", \"amount\": 128.0, \"remark\": \"fd0608212143 planning\"}}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/planning/appointments" - }, - { - "id": "LINK-004B", - "role": "指尖管理师/后台", - "module": "DB联动", - "precondition": "规划端新建预约成功", - "steps": "查询 t_order/t_order_item/t_appointment_reservation", - "expected": "三表同步生成且有关联", - "actual": "{\"order_id\": 322364606305972225, \"item_id\": 322364606314360832, \"reservation_id\": 322364606326943744, \"status\": \"CONFIRMED\"}", - "status": "PASS", - "priority": "P0", - "evidence": "DB order/item/reservation" - }, - { - "id": "LINK-005", - "role": "后台店长", - "module": "取消联动", - "precondition": "规划端预约已生成", - "steps": "用户端取消订单", - "expected": "预约占用释放/状态变更", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": null}", - "status": "PASS", - "priority": "-", - "evidence": "PUT /order/cancel/322364606305972225" - } - ], - "counts": { - "t_user": 6, - "t_shop": 4, - "t_user_shop_binding": 5, - "t_nail_artist_info": 2, - "t_artist_schedule": 2, - "t_product": 1, - "t_order": 2, - "t_order_item": 2, - "t_appointment_reservation": 2, - "t_user_agreement_consent": 2 - } -} \ No newline at end of file diff --git a/artifacts/full-regression/acceptance_fd0608212143.md b/artifacts/full-regression/acceptance_fd0608212143.md deleted file mode 100644 index 1e37ec23..00000000 --- a/artifacts/full-regression/acceptance_fd0608212143.md +++ /dev/null @@ -1,75 +0,0 @@ -# Fingertip Designer 全链路用户视角验收清单 - fd0608212143 - -- 执行时间:2026-06-08T21:21:51 -- 环境:开发 MySQL 192.168.5.15 / 本地 Core http://127.0.0.1:18081 -- 数据策略:执行前已重建 nailart,本轮数据均带 runId 前缀;密钥和密码不写入报告。 - -## 汇总 - -- PASS: 43 -- FAIL: 4 -- BLOCKED: 1 -- DB counts: {'t_user': 6, 't_shop': 4, 't_user_shop_binding': 5, 't_nail_artist_info': 2, 't_artist_schedule': 2, 't_product': 1, 't_order': 2, 't_order_item': 2, 't_appointment_reservation': 2, 't_user_agreement_consent': 2} - -## 验收清单 - -| 用例编号 | 角色 | 模块 | 前置数据 | 操作步骤 | 预期结果 | 实际结果 | 状态 | 缺陷等级 | 证据 | -|---|---|---|---|---|---|---|---|---|---| -| ENV-001 | 环境 | Core 健康检查 | Core 18081 已启动 | GET /shop/list/simple | HTTP 200 | HTTP 200, {"code":200,"message":"操作成功","data":[{"id":"322364109750710272","shopName":"fd0608211949 normal shop edited"},{"id":"322364110585376768","shopName":"fd0608211949 other shop"}]} | PASS | P0 | http://127.0.0.1:18081 | -| ENV-002 | 环境 | Nacos Dev 命名空间 | 仅读开发 Nacos | 登录 Nacos 读取 YumiNail-Dev | 成功读取或记录阻塞 | HTTP 500 | BLOCKED | P3 | Nacos dev host reachable; secrets redacted | -| ENV-003 | 环境 | 数据库重建 | 已有备份 nailart_backup_fd0608202858.sql | DROP/CREATE nailart 并执行 YumiNail.sql | 初始化成功且基础权限/管理员存在 | 初始化语句 386, counts={'t_user': 1, 't_shop': 0, 't_user_shop_binding': 0, 't_nail_artist_info': 0, 't_artist_schedule': 0, 't_product': 0, 't_order': 0, 't_order_item': 0, 't_appointment_reservation': 0, 't_user_agreement_consent': 0} | PASS | - | YumiNail-Core/src/main/resources/files/YumiNail.sql | -| ADMIN-001 | 平台管理员 | 登录 | 默认管理员 xiaowang | 账号密码登录后台 | 返回 type=4 accessToken | {"code": 200, "message": "操作成功", "data": {"accessToken": "***", "refreshToken": "***", "userInfo": {"id": "1", "account": "xiaowang", "nickname": "系统管理员", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "type": 4, "shopId": null, "shopName": null, "shopAuthorizationExpireTime": null, "shopAuthorizationExpired": false, "shopIds": [], "shopNames": [], "createTime": "2026-06-08T21:21:46"}, "needSetPassword": false}} | PASS | P0 | POST /admin/auth/login | -| ADMIN-002-normal | 平台管理员 | 店铺管理 | 平台管理员已登录 | 创建normal门店 | 返回门店ID且 t_shop 可查 | {"code": 200, "message": "操作成功", "data": "322364589218377728"} | PASS | - | POST /admin/shops/create | -| ADMIN-002-expired | 平台管理员 | 店铺管理 | 平台管理员已登录 | 创建expired门店 | 返回门店ID且 t_shop 可查 | {"code": 200, "message": "操作成功", "data": "322364589344206848"} | PASS | - | POST /admin/shops/create | -| ADMIN-002-disabled | 平台管理员 | 店铺管理 | 平台管理员已登录 | 创建disabled门店 | 返回门店ID且 t_shop 可查 | {"code": 200, "message": "操作成功", "data": "322364589516173312"} | PASS | - | POST /admin/shops/create | -| ADMIN-002-other | 平台管理员 | 店铺管理 | 平台管理员已登录 | 创建other门店 | 返回门店ID且 t_shop 可查 | {"code": 200, "message": "操作成功", "data": "322364589629419520"} | PASS | - | POST /admin/shops/create | -| ADMIN-003 | 平台管理员 | 店铺管理 | normal 门店存在 | 编辑门店资料后查询详情 | 更新成功且详情为新值 | {"code": 200, "message": "操作成功", "data": true} | PASS | - | PUT /admin/shops/update/322364589218377728 | -| ADMIN-003B | 平台管理员 | 店铺管理 | normal 门店存在 | 查询门店详情 | 返回 normal 门店详情 | {"code": 200, "message": "操作成功", "data": {"id": "322364589218377728", "shopName": "fd0608212143 normal shop edited", "description": "normal edited", "address": "Dev 1", "mapProvider": "TENCENT", "longitude": null, "latitude": null, "navigationUrls": {}, "businessHours": "09:00-21:00", "coverImageFileId": "", "coverImageUrls": [], "imageFileIds": null, "imageUrls": [], "themePrimaryColor": "#1677FF", "themeSecondaryColor": "#F5F5F5", "themeAccentColor": "#FF7A45", "themePageBgColor": "#FFFFFF", "themeCardBgColor": "#FFFFFF", "themeBackgroundImageFileId": null, "status": 1, "authorizationStartDate": "2026-06-07", "authorizationDays": 45, "authorizationExpireTime": "2026-07-21T23:59:59", "authorizationExpired": false, "authorizationStatusText": "有效", "createTime": "2026-06-08T21:21:47", "updateTime": "2026-06-08T21:21:47"}} | PASS | - | GET /admin/shops/322364589218377728 | -| ADMIN-004 | 平台管理员 | 店铺启停 | disabled 门店存在 | JSON body 修改门店状态为启用 | 状态更新成功 | {"code": 200, "message": "操作成功", "data": true} | PASS | - | PUT /admin/shops/status/322364589516173312 | -| ADMIN-004B | 平台管理员 | 店铺启停 | disabled 门店已启用 | JSON body 修改门店状态为停用 | 状态更新成功 | {"code": 200, "message": "操作成功", "data": true} | PASS | - | PUT /admin/shops/status/322364589516173312 | -| ADMIN-007-manager | 平台管理员 | 账号管理 | 门店已创建 | 创建manager type=2 | 返回用户ID、默认权限和门店绑定写入 | {"code": 200, "message": "操作成功", "data": "322364590870933504"} | PASS | - | POST /admin/user/create | -| ADMIN-007-artistone | 平台管理员 | 账号管理 | 门店已创建 | 创建artistone type=3 | 返回用户ID、默认权限和门店绑定写入 | {"code": 200, "message": "操作成功", "data": "322364591995006976"} | PASS | - | POST /admin/user/create | -| ADMIN-007-artisttwo | 平台管理员 | 账号管理 | 门店已创建 | 创建artisttwo type=3 | 返回用户ID、默认权限和门店绑定写入 | {"code": 200, "message": "操作成功", "data": "322364592766758912"} | PASS | - | POST /admin/user/create | -| ADMIN-007-customer | 平台管理员 | 账号管理 | 门店已创建 | 创建customer type=0 | 返回用户ID、默认权限和门店绑定写入 | {"code": 200, "message": "操作成功", "data": "322364593597231104"} | PASS | - | POST /admin/user/create | -| ADMIN-007-othermgr | 平台管理员 | 账号管理 | 门店已创建 | 创建othermgr type=2 | 返回用户ID、默认权限和门店绑定写入 | {"code": 200, "message": "操作成功", "data": "322364594301874176"} | PASS | - | POST /admin/user/create | -| ADMIN-007-expiredmgr | 平台管理员 | 账号管理 | 门店已创建 | 创建expiredmgr type=2 | 过期/冻结门店禁止创建可登录店长,返回明确错误 | {"code": 500, "message": "店铺已被冻结", "data": null} | PASS | - | POST /admin/user/create | -| MANAGER-001 | 指尖管理师/店长 | 登录 | manager 账号绑定 normal 门店 | 后台/管理师账号登录并选择门店 | 返回 type=2 shopId=normal | {"code": 200, "message": "操作成功", "data": {"accessToken": "***", "refreshToken": "***", "userInfo": {"id": "322364590870933504", "account": "fd0608212143manager", "nickname": "fd0608212143 manager", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "type": 2, "shopId": "322364589218377728", "shopName": "fd0608212143 normal shop edited", "shopAuthorizationExpireTime": "2026-07-21T23:59:59", "shopAuthorizationExpired": false, "shopIds": ["322364589218377728"], "shopNames": ["fd0608212143 normal shop edited"], "createTime": "2026-06-08T21:21:48"}, "needSetPassword": false}} | PASS | P0 | POST /admin/auth/login | -| ARTIST-001 | 设计师/美甲师 | 登录 | artistone 账号绑定 normal 门店 | 设计师账号登录 | 返回 type=3 shopId=normal | {"code": 200, "message": "操作成功", "data": {"accessToken": "***", "refreshToken": "***", "userInfo": {"id": "322364591995006976", "account": "fd0608212143artistone", "nickname": "fd0608212143 artistone", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "type": 3, "shopId": "322364589218377728", "shopName": "fd0608212143 normal shop edited", "shopAuthorizationExpireTime": "2026-07-21T23:59:59", "shopAuthorizationExpired": false, "shopIds": ["322364589218377728"], "shopNames": ["fd0608212143 normal shop edited"], "createTime": "2026-06-08T21:21:48"}, "needSetPassword": false}} | PASS | P0 | POST /admin/auth/login | -| ADMIN-008 | 店长 | 设计师资料 | 设计师账号存在 | 保存设计师资料 | 返回保存后的设计师资料 | {"code": 200, "message": "操作成功", "data": {"id": "322364592166973440", "userId": "322364591995006976", "identity": "首席设计师", "experience": 5, "skills": "法式,渐变,手绘", "rating": 4.9, "status": 1, "participateProduction": 1, "workStartTime": "09:00:00", "workEndTime": "21:00:00", "userType": 3, "userTypeName": "美甲师", "portfolio": "", "nickname": "fd0608212143 artistone", "shopId": "322364589218377728", "shopName": "fd0608212143 normal shop edited", "signature": "fd0608212143 signature"}} | PASS | - | POST /admin/nail-artist/save | -| ADMIN-011 | 店长 | 排班 | 设计师可用 | 保存设计师排班 | t_artist_schedule 生成记录 | {"code": 200, "message": "操作成功", "data": {"id": "322364599410536448", "shopId": "322364589218377728", "artistId": "322364591995006976", "workDate": "2026-06-10", "startTime": "09:00:00", "endTime": "21:00:00", "slotMinutes": 60, "capacity": 1, "status": 1, "remark": "fd0608212143", "createTime": "2026-06-08T21:21:49.7444319"}} | PASS | - | POST /admin/artist-schedule/save | -| ADMIN-011B | 店长 | 排班 | 规划端新建预约目标日 | 补充规划端目标日期排班 | t_artist_schedule 生成第二天排班 | {"code": 200, "message": "操作成功", "data": {"id": "322364599733497856", "shopId": "322364589218377728", "artistId": "322364591995006976", "workDate": "2026-06-11", "startTime": "09:00:00", "endTime": "21:00:00", "slotMinutes": 60, "capacity": 1, "status": 1, "remark": "fd0608212143-planning", "createTime": "2026-06-08T21:21:49.8228393"}} | PASS | - | POST /admin/artist-schedule/save | -| USER-001 | 普通用户 | 协议 | 匿名可访问 | 读取当前用户协议版本 | 返回 USER_TERMS 和 PRIVACY_POLICY | {"code": 200, "message": "操作成功", "data": [{"id": "313931273555138001", "agreementType": "USER_TERMS", "agreementTypeName": "用户协议", "title": "用户协议", "version": "2026.05.18", "content": "欢迎使用 Fingertip Designer 指尖设计师。请在使用账号、预约、订单、会员、消息等功能前仔细阅读本协议。继续登录或注册即表示你已理解并同意平台基础服务规则、账号安全要求、订单预约规则和依法合规使用要求。", "status": 1, "statusText": "已发布", "effectiveTime": "2026-06-08T21:21:47", "createTime": "2026-06-08T21:21:47", "updateTime": "2026-06-08T21:21:47"}, {"id": "313931273555138002", "agreementType": "PRIVACY_POLICY", "agreementTypeName": "隐私政策", "title": "隐私政策", "version": "2026.05.18", "content": "Fingertip Designer 指尖设计师会在提供登录注册、预约下单、会员余额、消息通知和客户服务时处理必要的手机号、昵称、门店归属、订单与设备信息。我们仅在业务需要和法律允许范围内使用这些信息,并采取访问控制、脱敏展示和审计记录等措施保护数据安全。", "status": 1, "statusText": "已发布", "effectiveTime": "2026-06-08T21:21:47", "createTime": "2026-06-08T21:21:47", "updateTime": "2026-06-08T21:21:47"}]} | PASS | P0 | GET /legal-agreement/current | -| USER-003 | 普通用户 | 登录 | 普通用户账号已创建并提交当前协议版本 | 账号密码登录用户端 | 返回 accessToken 并写入协议同意记录 | {"code": 200, "message": "操作成功", "data": {"accessToken": "***", "refreshToken": "***", "userInfo": {"id": "322364593597231104", "account": "fd0608212143customer", "nickname": "fd0608212143 customer", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "type": 0, "shopId": "322364589218377728", "shopName": "fd0608212143 normal shop edited", "shopAuthorizationExpireTime": "2026-07-21T23:59:59", "shopAuthorizationExpired": false, "shopIds": ["322364589218377728"], "shopNames": ["fd0608212143 normal shop edited"], "createTime": "2026-06-08T21:21:48"}, "needSetPassword": false}} | PASS | P0 | POST /user/login | -| USER-003B | 普通用户 | 协议留痕 | 用户登录成功 | 查询 t_user_agreement_consent | 至少 2 条同意记录 | consent_count=2 | PASS | P1 | DB t_user_agreement_consent | -| ADMIN-012 | 店长 | 作品管理 | normal 门店和设计师可用 | 创建可预约作品 | 返回 productId 且用户端可见 | {"code": 200, "message": "操作成功", "data": "322364601348304896"} | PASS | - | POST /admin/product/create | -| USER-004 | 普通用户 | 浏览 | 作品已上架 | 匿名查询作品详情 | 详情返回数据 | {"code": 200, "message": "操作成功", "data": {"id": "322364601348304896", "shopId": "322364589218377728", "shopName": "fd0608212143 normal shop edited", "title": "fd0608212143 主链路款式", "description": "全链路测试作品", "targetAudience": "通勤", "precautions": "无", "imageFileIds": "", "imageUrls": [], "price": 128.0, "tags": "法式,测试", "tagList": [], "tagInfos": [], "likeCount": 0, "collectCount": 0, "approximateDuration": "60分钟", "serviceDurationMinutes": "60", "bookableArtists": "322364591995006976", "availableBookableArtistCount": 1, "bookableArtistRestricted": true, "availableCoupons": "", "createTime": "2026-06-08T21:21:50", "updateTime": "2026-06-08T21:21:50"}} | PASS | - | GET /product/get/322364601348304896 | -| USER-004B | 普通用户 | 浏览 | 作品已上架 | 匿名查询门店作品列表 | 列表包含新建作品 | {"code": 200, "message": "操作成功", "data": [{"id": "322364601348304896", "shopId": "322364589218377728", "shopName": "fd0608212143 normal shop edited", "title": "fd0608212143 主链路款式", "description": "全链路测试作品", "targetAudience": "通勤", "precautions": "无", "imageFileIds": "", "imageUrls": [], "price": 128.0, "tags": "法式,测试", "tagList": [], "tagInfos": [], "likeCount": 0, "collectCount": 0, "approximateDuration": "60分钟", "serviceDurationMinutes": "60", "bookableArtists": "322364591995006976", "availableBookableArtistCount": 1, "bookableArtistRestricted": true, "availableCoupons": "", "createTime": "2026-06-08T21:21:50", "updateTime": "2026-06-08T21:21:50"}]} | PASS | P1 | GET /product/list/shop/322364589218377728 | -| USER-005 | 普通用户 | 收藏 | 用户已登录,作品存在 | 收藏作品 | 收藏成功 | {"code": 200, "message": "操作成功", "data": "ok"} | PASS | - | POST /wishlist/add | -| USER-005B | 普通用户 | 收藏 | 作品已收藏 | 查询收藏状态 | 返回已收藏 | {"code": 200, "message": "操作成功", "data": true} | PASS | - | GET /wishlist/check | -| USER-005C | 普通用户 | 购物车 | 用户已登录,作品存在 | 加入购物车 | 购物车新增该作品,供结算/下单使用 | {"code": 200, "message": "操作成功", "data": null} | PASS | - | POST /cart/add | -| USER-005D | 普通用户 | 购物车 | 作品已加入购物车 | 查询购物车列表 | 列表包含新建作品及可预约设计师 | {"code": 200, "message": "操作成功", "data": [{"id": "322364602166194176", "productId": "322364601348304896", "shopId": "322364589218377728", "productTitle": "fd0608212143 主链路款式", "productImage": null, "price": 128.0, "quantity": 1, "totalPrice": 128.0, "tags": "法式,测试", "tagNames": "", "approximateDuration": "60分钟", "bookableArtists": "322364591995006976", "availableBookableArtistCount": 1, "bookableArtistRestricted": true, "availableArtists": [{"id": "322364591995006976", "name": "fd0608212143 artistone", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "userType": 3, "roleLabel": "美甲师", "participateProduction": false}]}]} | PASS | - | GET /cart/list | -| USER-006 | 普通用户 | 结算预览 | 用户已登录,作品可预约 | checkout-preview | 返回金额和可用优惠信息 | {"code": 200, "message": "操作成功", "data": {"subtotalAmount": 128.0, "savedAmount": 0.0, "payableAmount": 128.0, "bestCoupon": null, "availableCoupons": [], "unavailableCoupons": [{"id": "322364589235154944", "couponId": "322364589235154944", "userCouponId": null, "sourceType": "SYSTEM_VIP", "couponName": "青铜VIP自动95折券", "couponType": 1, "couponTypeName": "折扣券", "discountValue": 9.5, "minAmount": 0.0, "reduceAmount": 0.0, "discountAmount": 0.0, "available": false, "best": false, "vipAuto": true, "displayText": "VIP自动优惠:青铜VIP自动95折券,9.5折", "savingText": null, "unavailableReason": "本单商品暂不适用", "startTime": "2026-06-08T21:21:47", "endTime": "2099-12-31T23:59:59"}, {"id": "322364589243543552", "couponId": "322364589243543552", "userCouponId": null, "sourceType": "SYSTEM_VIP", "couponName": "白银VIP自动92折券", "couponType": 1, "couponTypeName": "折扣券", "discountValue": 9.2, "minAmount": 0.0, "reduceAmou | PASS | - | POST /order/checkout-preview | -| USER-007 | 普通用户 | 下单 | 用户已登录,作品/设计师/排班可用 | 创建订单 | 返回订单、订单项,DB 生成 t_order/t_order_item | {"code": 200, "message": "操作成功", "data": {"id": "322364602837282816", "orderNo": "ORD322364602833088512", "userId": "322364593597231104", "shopId": "322364589218377728", "shopName": "fd0608212143 normal shop edited", "totalAmount": 128.0, "actualAmount": 128.0, "couponId": null, "userCouponId": null, "couponSourceType": null, "couponName": null, "paymentStatus": "UNPAID", "payAmount": 128.0, "paidAmount": 0, "payTime": null, "paymentMethod": null, "paymentOrderNo": null, "refundStatus": null, "customerRemark": "fd0608212143", "quoteStatus": "CONFIRMING", "quoteStatusText": "确认价格中", "quoteUserConfirmed": false, "quoteShopConfirmed": false, "quoteExpireTime": "2026-06-09T21:21:50.5600502", "quoteConfirmedTime": null, "quoteMessages": [{"id": "322364602862448640", "orderId": "322364602837282816", "actorId": "322364593597231104", "actorType": "USER", "actorTypeText": "用户", "action": "CREATE" | PASS | - | POST /order/create | -| USER-007B | 普通用户 | DB核验 | 订单创建成功 | 查询 t_order/t_order_item | 订单项设计师和预约时间一致 | {"status": 0, "quote_status": "CONFIRMING", "artist_id": 322364591995006976, "appointment_time": "2026-06-10 10:00:00"} | PASS | P0 | DB t_order + t_order_item | -| EDGE-001 | 普通用户 | 预约冲突 | 已有同设计师同时间订单占用 | 重复提交同时间预约 | 应拦截重复占用/冲突或操作幂等保护 | {"code": 500, "message": "请先将商品加入购物车后再结算", "data": null} | FAIL | P0 | POST /order/create duplicate | -| LINK-001 | 店长 | 报价联动 | 用户订单已创建 | 店长提交报价 | 订单 quote_status 更新为 WAIT_USER/PROCESSING | {"code": 200, "message": "操作成功", "data": {"id": "322364602837282816", "orderNo": "ORD322364602833088512", "userId": "322364593597231104", "shopId": "322364589218377728", "shopName": "fd0608212143 normal shop edited", "totalAmount": 128.0, "actualAmount": 128.0, "couponId": "0", "userCouponId": null, "couponSourceType": null, "couponName": null, "paymentStatus": "UNPAID", "payAmount": 128.0, "paidAmount": 0.0, "payTime": null, "paymentMethod": null, "paymentOrderNo": null, "refundStatus": "NONE", "customerRemark": "fd0608212143", "quoteStatus": "CONFIRMING", "quoteStatusText": "确认价格中", "quoteUserConfirmed": false, "quoteShopConfirmed": true, "quoteExpireTime": "2026-06-09T21:21:51", "quoteConfirmedTime": null, "quoteMessages": [{"id": "322364602862448640", "orderId": "322364602837282816", "actorId": "322364593597231104", "actorType": "USER", "actorTypeText": "用户", "action": "CREATE", "act | PASS | - | POST /admin/order/322364602837282816/quote | -| LINK-002 | 店长 | 报价联动 | 店长已提交报价 | 店长确认报价 | 订单 quote_shop_confirmed=1 | {"code": 200, "message": "操作成功", "data": {"id": "322364602837282816", "orderNo": "ORD322364602833088512", "userId": "322364593597231104", "shopId": "322364589218377728", "shopName": "fd0608212143 normal shop edited", "totalAmount": 128.0, "actualAmount": 128.0, "couponId": "0", "userCouponId": null, "couponSourceType": null, "couponName": null, "paymentStatus": "UNPAID", "payAmount": 128.0, "paidAmount": 0.0, "payTime": null, "paymentMethod": null, "paymentOrderNo": null, "refundStatus": "NONE", "customerRemark": "fd0608212143", "quoteStatus": "CONFIRMING", "quoteStatusText": "确认价格中", "quoteUserConfirmed": false, "quoteShopConfirmed": true, "quoteExpireTime": "2026-06-09T21:21:51", "quoteConfirmedTime": null, "quoteMessages": [{"id": "322364602862448640", "orderId": "322364602837282816", "actorId": "322364593597231104", "actorType": "USER", "actorTypeText": "用户", "action": "CREATE", "act | PASS | - | PUT /admin/order/322364602837282816/quote/confirm | -| LINK-003 | 普通用户 | 报价联动 | 店长已确认报价 | 用户确认报价 | 订单 quote_user_confirmed=1,并生成预约占用 | {"code": 200, "message": "操作成功", "data": {"id": "322364602837282816", "orderNo": "ORD322364602833088512", "userId": "322364593597231104", "shopId": "322364589218377728", "shopName": "fd0608212143 normal shop edited", "totalAmount": 138.0, "actualAmount": 138.0, "couponId": "0", "userCouponId": null, "couponSourceType": null, "couponName": null, "paymentStatus": "UNPAID", "payAmount": 138.0, "paidAmount": 0.0, "payTime": null, "paymentMethod": null, "paymentOrderNo": null, "refundStatus": "NONE", "customerRemark": "fd0608212143", "quoteStatus": "CONFIRMED", "quoteStatusText": "价格已确认", "quoteUserConfirmed": true, "quoteShopConfirmed": true, "quoteExpireTime": "2026-06-09T21:21:51", "quoteConfirmedTime": "2026-06-08T21:21:51", "quoteMessages": [{"id": "322364602862448640", "orderId": "322364602837282816", "actorId": "322364593597231104", "actorType": "USER", "actorTypeText": "用户", "action": | PASS | - | PUT /order/322364602837282816/quote/confirm | -| LINK-003B | 普通用户/店长 | DB联动 | 用户确认报价后 | 查询订单项和预约占用 | 报价确认、预约占用生成且时间/设计师一致 | {"quote_status": "CONFIRMED", "quote_user_confirmed": 1, "quote_shop_confirmed": 1, "confirmed_price": "138.00", "ar_status": "CONFIRMED", "artist_id": 322364591995006976, "appointment_start_time": "2026-06-10 10:00:00", "appointment_end_time": "2026-06-10 11:00:00"} | PASS | P0 | DB t_order/t_order_item/t_appointment_reservation | -| MANAGER-002 | 指尖管理师 | 日/周/月规划 | 订单已确认报价并生成占用 | 查询 planning calendar 日视图 | 返回包含该预约/单量 | {"code": 200, "message": "操作成功", "data": {"businessStartTime": "09:00", "businessEndTime": "21:00", "slotMinutes": 30, "artists": [{"id": "322364591995006976", "name": "fd0608212143 artistone", "shortName": "F", "phone": "19100000002", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "color": "#D7A86E", "status": 1, "statusText": "可预约", "workStartTime": "09:00", "workEndTime": "21:00", "rangeCount": 1}], "schedules": [{"id": "322364599410536448", "artistId": "322364591995006976", "artistName": "fd0608212143 artistone", "date": "2026-06-10", "startTime": "09:00", "endTime": "21:00", "capacity": 1, "status": 1, "statusText": "可预约", "remark": "fd0608212143"}], "appointments": [{"orderId": "322364602837282816", "orderNo": "ORD322364602833088512", "orderItemId": "322364602841477120", "customerId": "322364593597231104", "customerName": "fd0608212143 customer", " | PASS | P0 | GET /admin/planning/calendar | -| MANAGER-003 | 指尖管理师 | 改时间/改派 | 订单预约已存在 | 改派到 artisttwo 并改到 11:00 | 订单项和预约占用同步更新 | {"code": 500, "message": "涓嶅彲棰勭害", "data": null} | FAIL | P0 | PUT /admin/planning/appointments/322364602841477120/time-artist | -| MANAGER-003B | 指尖管理师 | DB联动 | 改派接口已执行 | 查询订单项/预约占用 | artist_id 和 appointment_time 均同步为新值 | {"artist_id": 322364591995006976, "appointment_time": "2026-06-10 10:00:00", "ar_artist": 322364591995006976, "appointment_start_time": "2026-06-10 10:00:00"} | FAIL | P0 | DB t_order_item/t_appointment_reservation | -| ARTIST-002 | 设计师/美甲师 | 本人订单 | 订单已改派到 artisttwo | artistone 查询本人订单列表 | 不能看到已改派给他人的订单 | {"code": 200, "message": "操作成功", "data": {"list": [{"id": "322364602837282816", "orderNo": "ORD322364602833088512", "userId": "322364593597231104", "shopId": "322364589218377728", "shopName": "fd0608212143 normal shop edited", "totalAmount": 138.0, "actualAmount": 138.0, "couponId": "0", "userCouponId": null, "couponSourceType": null, "couponName": null, "paymentStatus": "UNPAID", "payAmount": 138.0, "paidAmount": 0.0, "payTime": null, "paymentMethod": null, "paymentOrderNo": null, "refundStatus": "NONE", "customerRemark": "fd0608212143", "quoteStatus": "CONFIRMED", "quoteStatusText": "价格已确认", "quoteUserConfirmed": true, "quoteShopConfirmed": true, "quoteExpireTime": "2026-06-09T21:21:51", "quoteConfirmedTime": "2026-06-08T21:21:51", "quoteMessages": [{"id": "322364602862448640", "orderId": "322364602837282816", "actorId": "322364593597231104", "actorType": "USER", "actorTypeText": "用户", | FAIL | P0 | GET /admin/order/list as artistone | -| LINK-004 | 指尖管理师 | 新建预约联动 | 客户/作品/设计师存在 | 规划端新建预约 | 后台订单、订单项、预约占用同步生成 | {"code": 200, "message": "操作成功", "data": {"orderId": "322364606305972225", "orderNo": "ORD322364606305972224", "orderItemId": "322364606314360832", "customerId": "322364593597231104", "customerName": "fd0608212143 customer", "customerPhone": "19100000004", "productId": "322364601348304896", "productTitle": "fd0608212143 主链路款式", "artistId": "322364591995006976", "artistName": "fd0608212143 artistone", "artistColor": "#D7A86E", "date": "2026-06-11", "startTime": "2026-06-11 14:00:00", "endTime": "2026-06-11 15:00:00", "startMinute": 840, "durationMinutes": 60, "status": 1, "statusText": "已确认", "amount": 128.0, "remark": "fd0608212143 planning"}} | PASS | - | POST /admin/planning/appointments | -| LINK-004B | 指尖管理师/后台 | DB联动 | 规划端新建预约成功 | 查询 t_order/t_order_item/t_appointment_reservation | 三表同步生成且有关联 | {"order_id": 322364606305972225, "item_id": 322364606314360832, "reservation_id": 322364606326943744, "status": "CONFIRMED"} | PASS | P0 | DB order/item/reservation | -| LINK-005 | 后台店长 | 取消联动 | 规划端预约已生成 | 用户端取消订单 | 预约占用释放/状态变更 | {"code": 200, "message": "操作成功", "data": null} | PASS | - | PUT /order/cancel/322364606305972225 | - -## 失败 / 阻塞项 - -| 用例编号 | 等级 | 状态 | 复现/证据 | -|---|---|---|---| -| ENV-002 | P3 | BLOCKED | HTTP 500 / Nacos dev host reachable; secrets redacted | -| EDGE-001 | P0 | FAIL | {"code": 500, "message": "请先将商品加入购物车后再结算", "data": null} / POST /order/create duplicate | -| MANAGER-003 | P0 | FAIL | {"code": 500, "message": "涓嶅彲棰勭害", "data": null} / PUT /admin/planning/appointments/322364602841477120/time-artist | -| MANAGER-003B | P0 | FAIL | {"artist_id": 322364591995006976, "appointment_time": "2026-06-10 10:00:00", "ar_artist": 322364591995006976, "appointment_start_time": "2026-06-10 10:00:00"} / DB t_order_item/t_appointment_reservation | -| ARTIST-002 | P0 | FAIL | {"code": 200, "message": "操作成功", "data": {"list": [{"id": "322364602837282816", "orderNo": "ORD322364602833088512", "userId": "322364593597231104", "shopId": "322364589218377728", "shopName": "fd0608212143 normal shop edited", "totalAmount": 138.0, "actualAmount": 138.0, "couponId": "0", "userCouponId": null, "couponSourceType": null, "couponName": null, "paymentStatus": "UNPAID", "payAmount": 138.0, "paidAmount": 0.0, "payTime": null, "paymentMethod": null, "paymentOrderNo": null, "refundStatus": "NONE", "customerRemark": "fd0608212143", "quoteStatus": "CONFIRMED", "quoteStatusText": "价格已确认", "quoteUserConfirmed": true, "quoteShopConfirmed": true, "quoteExpireTime": "2026-06-09T21:21:51", "quoteConfirmedTime": "2026-06-08T21:21:51", "quoteMessages": [{"id": "322364602862448640", "orderId": "322364602837282816", "actorId": "322364593597231104", "actorType": "USER", "actorTypeText": "用户", / GET /admin/order/list as artistone | \ No newline at end of file diff --git a/artifacts/full-regression/acceptance_fd0608212248.json b/artifacts/full-regression/acceptance_fd0608212248.json deleted file mode 100644 index 310d5c80..00000000 --- a/artifacts/full-regression/acceptance_fd0608212248.json +++ /dev/null @@ -1,755 +0,0 @@ -{ - "runId": "fd0608212248", - "executedAt": "2026-06-08T21:22:56", - "summary": { - "PASS": 55, - "FAIL": 1, - "BLOCKED": 2 - }, - "state": { - "runId": "fd0608212248", - "baseUrl": "http://127.0.0.1:18081", - "ids": { - "normalShop": "322364862611501056", - "expiredShop": "322364862804439040", - "disabledShop": "322364862993182720", - "otherShop": "322364863198703616", - "manager": "322364864406663168", - "artist1": "322364865383936000", - "artist2": "322364866101161984", - "customer": "322364866830970880", - "otherManager": "322364867397201920", - "product": "322364872862380032", - "order": "322364874066145281", - "orderItem": "322364874070339584" - }, - "tokens": { - "platformAdmin": "***" - }, - "db": { - "initStatements": 386, - "finalCounts": { - "t_user": 6, - "t_shop": 4, - "t_user_shop_binding": 5, - "t_nail_artist_info": 2, - "t_artist_schedule": 3, - "t_product": 1, - "t_order": 3, - "t_order_item": 3, - "t_appointment_reservation": 2, - "t_user_agreement_consent": 2 - } - } - }, - "cases": [ - { - "id": "ENV-001", - "role": "环境", - "module": "Core 健康检查", - "precondition": "Core 18081 已启动", - "steps": "GET /shop/list/simple", - "expected": "HTTP 200", - "actual": "HTTP 200, {\"code\":200,\"message\":\"操作成功\",\"data\":[{\"id\":\"322364589629419520\",\"shopName\":\"fd0608212143 other shop\"},{\"id\":\"322364589218377728\",\"shopName\":\"fd0608212143 normal shop edited\"}]}", - "status": "PASS", - "priority": "P0", - "evidence": "http://127.0.0.1:18081" - }, - { - "id": "ENV-002", - "role": "环境", - "module": "Nacos Dev 命名空间", - "precondition": "仅读开发 Nacos", - "steps": "登录 Nacos 读取 YumiNail-Dev", - "expected": "成功读取或记录阻塞", - "actual": "HTTP 500", - "status": "BLOCKED", - "priority": "P3", - "evidence": "Nacos dev host reachable; secrets redacted" - }, - { - "id": "ENV-003", - "role": "环境", - "module": "数据库重建", - "precondition": "已有备份 nailart_backup_fd0608202858.sql", - "steps": "DROP/CREATE nailart 并执行 YumiNail.sql", - "expected": "初始化成功且基础权限/管理员存在", - "actual": "初始化语句 386, counts={'t_user': 1, 't_shop': 0, 't_user_shop_binding': 0, 't_nail_artist_info': 0, 't_artist_schedule': 0, 't_product': 0, 't_order': 0, 't_order_item': 0, 't_appointment_reservation': 0, 't_user_agreement_consent': 0}", - "status": "PASS", - "priority": "-", - "evidence": "YumiNail-Core/src/main/resources/files/YumiNail.sql" - }, - { - "id": "ADMIN-001", - "role": "平台管理员", - "module": "登录", - "precondition": "默认管理员 xiaowang", - "steps": "账号密码登录后台", - "expected": "返回 type=4 accessToken", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"accessToken\": \"***\", \"refreshToken\": \"***\", \"userInfo\": {\"id\": \"1\", \"account\": \"xiaowang\", \"nickname\": \"系统管理员\", \"avatar\": \"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\", \"type\": 4, \"shopId\": null, \"shopName\": null, \"shopAuthorizationExpireTime\": null, \"shopAuthorizationExpired\": false, \"shopIds\": [], \"shopNames\": [], \"createTime\": \"2026-06-08T21:22:51\"}, \"needSetPassword\": false}}", - "status": "PASS", - "priority": "P0", - "evidence": "POST /admin/auth/login" - }, - { - "id": "ADMIN-002-normal", - "role": "平台管理员", - "module": "店铺管理", - "precondition": "平台管理员已登录", - "steps": "创建normal门店", - "expected": "返回门店ID且 t_shop 可查", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364862611501056\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/shops/create" - }, - { - "id": "ADMIN-002-expired", - "role": "平台管理员", - "module": "店铺管理", - "precondition": "平台管理员已登录", - "steps": "创建expired门店", - "expected": "返回门店ID且 t_shop 可查", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364862804439040\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/shops/create" - }, - { - "id": "ADMIN-002-disabled", - "role": "平台管理员", - "module": "店铺管理", - "precondition": "平台管理员已登录", - "steps": "创建disabled门店", - "expected": "返回门店ID且 t_shop 可查", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364862993182720\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/shops/create" - }, - { - "id": "ADMIN-002-other", - "role": "平台管理员", - "module": "店铺管理", - "precondition": "平台管理员已登录", - "steps": "创建other门店", - "expected": "返回门店ID且 t_shop 可查", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364863198703616\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/shops/create" - }, - { - "id": "ADMIN-003", - "role": "平台管理员", - "module": "店铺管理", - "precondition": "normal 门店存在", - "steps": "编辑门店资料后查询详情", - "expected": "更新成功且详情为新值", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": true}", - "status": "PASS", - "priority": "-", - "evidence": "PUT /admin/shops/update/322364862611501056" - }, - { - "id": "ADMIN-003B", - "role": "平台管理员", - "module": "店铺管理", - "precondition": "normal 门店存在", - "steps": "查询门店详情", - "expected": "返回 normal 门店详情", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364862611501056\", \"shopName\": \"fd0608212248 normal shop edited\", \"description\": \"normal edited\", \"address\": \"Dev 1\", \"mapProvider\": \"TENCENT\", \"longitude\": null, \"latitude\": null, \"navigationUrls\": {}, \"businessHours\": \"09:00-21:00\", \"coverImageFileId\": \"\", \"coverImageUrls\": [], \"imageFileIds\": null, \"imageUrls\": [], \"themePrimaryColor\": \"#1677FF\", \"themeSecondaryColor\": \"#F5F5F5\", \"themeAccentColor\": \"#FF7A45\", \"themePageBgColor\": \"#FFFFFF\", \"themeCardBgColor\": \"#FFFFFF\", \"themeBackgroundImageFileId\": null, \"status\": 1, \"authorizationStartDate\": \"2026-06-07\", \"authorizationDays\": 45, \"authorizationExpireTime\": \"2026-07-21T23:59:59\", \"authorizationExpired\": false, \"authorizationStatusText\": \"有效\", \"createTime\": \"2026-06-08T21:22:52\", \"updateTime\": \"2026-06-08T21:22:52\"}}", - "status": "PASS", - "priority": "-", - "evidence": "GET /admin/shops/322364862611501056" - }, - { - "id": "ADMIN-004", - "role": "平台管理员", - "module": "店铺启停", - "precondition": "disabled 门店存在", - "steps": "JSON body 修改门店状态为启用", - "expected": "状态更新成功", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": true}", - "status": "PASS", - "priority": "-", - "evidence": "PUT /admin/shops/status/322364862993182720" - }, - { - "id": "ADMIN-004B", - "role": "平台管理员", - "module": "店铺启停", - "precondition": "disabled 门店已启用", - "steps": "JSON body 修改门店状态为停用", - "expected": "状态更新成功", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": true}", - "status": "PASS", - "priority": "-", - "evidence": "PUT /admin/shops/status/322364862993182720" - }, - { - "id": "ADMIN-007-manager", - "role": "平台管理员", - "module": "账号管理", - "precondition": "门店已创建", - "steps": "创建manager type=2", - "expected": "返回用户ID、默认权限和门店绑定写入", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364864406663168\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-artistone", - "role": "平台管理员", - "module": "账号管理", - "precondition": "门店已创建", - "steps": "创建artistone type=3", - "expected": "返回用户ID、默认权限和门店绑定写入", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364865383936000\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-artisttwo", - "role": "平台管理员", - "module": "账号管理", - "precondition": "门店已创建", - "steps": "创建artisttwo type=3", - "expected": "返回用户ID、默认权限和门店绑定写入", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364866101161984\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-customer", - "role": "平台管理员", - "module": "账号管理", - "precondition": "门店已创建", - "steps": "创建customer type=0", - "expected": "返回用户ID、默认权限和门店绑定写入", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364866830970880\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-othermgr", - "role": "平台管理员", - "module": "账号管理", - "precondition": "门店已创建", - "steps": "创建othermgr type=2", - "expected": "返回用户ID、默认权限和门店绑定写入", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364867397201920\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/user/create" - }, - { - "id": "ADMIN-007-expiredmgr", - "role": "平台管理员", - "module": "账号管理", - "precondition": "门店已创建", - "steps": "创建expiredmgr type=2", - "expected": "过期/冻结门店禁止创建可登录店长,返回明确错误", - "actual": "{\"code\": 500, \"message\": \"店铺已被冻结\", \"data\": null}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/user/create" - }, - { - "id": "MANAGER-001", - "role": "指尖管理师/店长", - "module": "登录", - "precondition": "manager 账号绑定 normal 门店", - "steps": "后台/管理师账号登录并选择门店", - "expected": "返回 type=2 shopId=normal", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"accessToken\": \"***\", \"refreshToken\": \"***\", \"userInfo\": {\"id\": \"322364864406663168\", \"account\": \"fd0608212248manager\", \"nickname\": \"fd0608212248 manager\", \"avatar\": \"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\", \"type\": 2, \"shopId\": \"322364862611501056\", \"shopName\": \"fd0608212248 normal shop edited\", \"shopAuthorizationExpireTime\": \"2026-07-21T23:59:59\", \"shopAuthorizationExpired\": false, \"shopIds\": [\"322364862611501056\"], \"shopNames\": [\"fd0608212248 normal shop edited\"], \"createTime\": \"2026-06-08T21:22:53\"}, \"needSetPassword\": false}}", - "status": "PASS", - "priority": "P0", - "evidence": "POST /admin/auth/login" - }, - { - "id": "UI-001", - "role": "后台店长", - "module": "管理后台真实页面烟测", - "precondition": "Core http://127.0.0.1:18081 已启动;Vite http://127.0.0.1:3000 已启动;fd0608212248manager 已绑定 normal 店铺", - "steps": "浏览器打开 /admin/login,输入店长账号密码,等待登录店铺匹配,点击登录并进入仪表盘", - "expected": "登录页可见;成功进入 /admin/dashboard;当前店铺、店长、订单/作品/美甲师统计和后台菜单可见", - "actual": "webStatus=PASS; route=http://127.0.0.1:3000/admin/dashboard; content=指尖设计师管理台\n首页\n仪表盘\n用户管理\n作品管理\n优惠券管理\n评论管理\n店铺管理\n权限管理\n标签管理\n订单管理\n排班管理\n售后处理\n库存管理\n活动管理\n美甲师管理\n消息发布\n公告管理\nVIP充值配置\nfd0608212248 normal shop edited\nfd0608212248 manager\n仪表盘\n当前店铺:fd0608212248 normal shop edited\n订单总额\n394.00元\n今日订单额\n394.00元\n客户数量\n1\n美甲师数量\n2\n浏览量\n0\n收藏量\n1\n加购量\n0\n下单量\n3\n支付订单\n0\n完成订单\n0\n评价数\n0\n复购数\n0\n经营概览\n近 7 日订单额\n¥394.00\n今日订单数\n3\n近 7 日新增订单\n3\n待处理订单\n2\n已完成订单\n0\n今日新增客户\n1\n近 7 日新增客户\n1\n作品数量\n1\n快捷跳转\n订单管理\n用户管理\n作品管理\n优惠券管理\n消息发布\n美甲师管理\n热门作品\nfd0608212248 主链路款式\n点赞 0 · 收藏 1\n¥128.00\n最近动态\n\n新品上架\n\n新品\"fd0608212248 主链路款式\"已上架\n\n14 分钟前\n", - "status": "PASS", - "priority": "P1", - "evidence": "E:/yuminail/artifacts/full-regression/web_smoke_fd0608212248.json; E:\\yuminail\\artifacts\\full-regression\\web_admin_login_fd0608212248.png; E:\\yuminail\\artifacts\\full-regression\\web_admin_dashboard_fd0608212248.png" - }, - { - "id": "ARTIST-001", - "role": "设计师/美甲师", - "module": "登录", - "precondition": "artistone 账号绑定 normal 门店", - "steps": "设计师账号登录", - "expected": "返回 type=3 shopId=normal", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"accessToken\": \"***\", \"refreshToken\": \"***\", \"userInfo\": {\"id\": \"322364865383936000\", \"account\": \"fd0608212248artistone\", \"nickname\": \"fd0608212248 artistone\", \"avatar\": \"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\", \"type\": 3, \"shopId\": \"322364862611501056\", \"shopName\": \"fd0608212248 normal shop edited\", \"shopAuthorizationExpireTime\": \"2026-07-21T23:59:59\", \"shopAuthorizationExpired\": false, \"shopIds\": [\"322364862611501056\"], \"shopNames\": [\"fd0608212248 normal shop edited\"], \"createTime\": \"2026-06-08T21:22:53\"}, \"needSetPassword\": false}}", - "status": "PASS", - "priority": "P0", - "evidence": "POST /admin/auth/login" - }, - { - "id": "ADMIN-008", - "role": "店长", - "module": "设计师资料", - "precondition": "设计师账号存在", - "steps": "保存设计师资料", - "expected": "返回保存后的设计师资料", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364865551708160\", \"userId\": \"322364865383936000\", \"identity\": \"首席设计师\", \"experience\": 5, \"skills\": \"法式,渐变,手绘\", \"rating\": 4.9, \"status\": 1, \"participateProduction\": 1, \"workStartTime\": \"09:00:00\", \"workEndTime\": \"21:00:00\", \"userType\": 3, \"userTypeName\": \"美甲师\", \"portfolio\": \"\", \"nickname\": \"fd0608212248 artistone\", \"shopId\": \"322364862611501056\", \"shopName\": \"fd0608212248 normal shop edited\", \"signature\": \"fd0608212248 signature\"}}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/nail-artist/save" - }, - { - "id": "ADMIN-011", - "role": "店长", - "module": "排班", - "precondition": "设计师可用", - "steps": "保存设计师排班", - "expected": "t_artist_schedule 生成记录", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364871461482496\", \"shopId\": \"322364862611501056\", \"artistId\": \"322364865383936000\", \"workDate\": \"2026-06-10\", \"startTime\": \"09:00:00\", \"endTime\": \"21:00:00\", \"slotMinutes\": 60, \"capacity\": 1, \"status\": 1, \"remark\": \"fd0608212248\", \"createTime\": \"2026-06-08T21:22:54.6071876\"}}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/artist-schedule/save" - }, - { - "id": "ADMIN-011B", - "role": "店长", - "module": "排班", - "precondition": "规划端新建预约目标日", - "steps": "补充规划端目标日期排班", - "expected": "t_artist_schedule 生成第二天排班", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364871650226176\", \"shopId\": \"322364862611501056\", \"artistId\": \"322364865383936000\", \"workDate\": \"2026-06-11\", \"startTime\": \"09:00:00\", \"endTime\": \"21:00:00\", \"slotMinutes\": 60, \"capacity\": 1, \"status\": 1, \"remark\": \"fd0608212248-planning\", \"createTime\": \"2026-06-08T21:22:54.651676\"}}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/artist-schedule/save" - }, - { - "id": "ADMIN-011C", - "role": "店长", - "module": "排班", - "precondition": "改派目标设计师", - "steps": "给 artisttwo 补充同日排班", - "expected": "改派目标日有可用容量", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364871838969856\", \"shopId\": \"322364862611501056\", \"artistId\": \"322364866101161984\", \"workDate\": \"2026-06-10\", \"startTime\": \"09:00:00\", \"endTime\": \"21:00:00\", \"slotMinutes\": 60, \"capacity\": 1, \"status\": 1, \"remark\": \"fd0608212248-move-target\", \"createTime\": \"2026-06-08T21:22:54.6964448\"}}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/artist-schedule/save" - }, - { - "id": "USER-001", - "role": "普通用户", - "module": "协议", - "precondition": "匿名可访问", - "steps": "读取当前用户协议版本", - "expected": "返回 USER_TERMS 和 PRIVACY_POLICY", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": [{\"id\": \"313931273555138001\", \"agreementType\": \"USER_TERMS\", \"agreementTypeName\": \"用户协议\", \"title\": \"用户协议\", \"version\": \"2026.05.18\", \"content\": \"欢迎使用 Fingertip Designer 指尖设计师。请在使用账号、预约、订单、会员、消息等功能前仔细阅读本协议。继续登录或注册即表示你已理解并同意平台基础服务规则、账号安全要求、订单预约规则和依法合规使用要求。\", \"status\": 1, \"statusText\": \"已发布\", \"effectiveTime\": \"2026-06-08T21:22:52\", \"createTime\": \"2026-06-08T21:22:52\", \"updateTime\": \"2026-06-08T21:22:52\"}, {\"id\": \"313931273555138002\", \"agreementType\": \"PRIVACY_POLICY\", \"agreementTypeName\": \"隐私政策\", \"title\": \"隐私政策\", \"version\": \"2026.05.18\", \"content\": \"Fingertip Designer 指尖设计师会在提供登录注册、预约下单、会员余额、消息通知和客户服务时处理必要的手机号、昵称、门店归属、订单与设备信息。我们仅在业务需要和法律允许范围内使用这些信息,并采取访问控制、脱敏展示和审计记录等措施保护数据安全。\", \"status\": 1, \"statusText\": \"已发布\", \"effectiveTime\": \"2026-06-08T21:22:52\", \"createTime\": \"2026-06-08T21:22:52\", \"updateTime\": \"2026-06-08T21:22:52\"}]}", - "status": "PASS", - "priority": "P0", - "evidence": "GET /legal-agreement/current" - }, - { - "id": "USER-003", - "role": "普通用户", - "module": "登录", - "precondition": "普通用户账号已创建并提交当前协议版本", - "steps": "账号密码登录用户端", - "expected": "返回 accessToken 并写入协议同意记录", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"accessToken\": \"***\", \"refreshToken\": \"***\", \"userInfo\": {\"id\": \"322364866830970880\", \"account\": \"fd0608212248customer\", \"nickname\": \"fd0608212248 customer\", \"avatar\": \"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\", \"type\": 0, \"shopId\": \"322364862611501056\", \"shopName\": \"fd0608212248 normal shop edited\", \"shopAuthorizationExpireTime\": \"2026-07-21T23:59:59\", \"shopAuthorizationExpired\": false, \"shopIds\": [\"322364862611501056\"], \"shopNames\": [\"fd0608212248 normal shop edited\"], \"createTime\": \"2026-06-08T21:22:54\"}, \"needSetPassword\": false}}", - "status": "PASS", - "priority": "P0", - "evidence": "POST /user/login" - }, - { - "id": "USER-003B", - "role": "普通用户", - "module": "协议留痕", - "precondition": "用户登录成功", - "steps": "查询 t_user_agreement_consent", - "expected": "至少 2 条同意记录", - "actual": "consent_count=2", - "status": "PASS", - "priority": "P1", - "evidence": "DB t_user_agreement_consent" - }, - { - "id": "ADMIN-012", - "role": "店长", - "module": "作品管理", - "precondition": "normal 门店和设计师可用", - "steps": "创建可预约作品", - "expected": "返回 productId 且用户端可见", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"322364872862380032\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/product/create" - }, - { - "id": "USER-004", - "role": "普通用户", - "module": "浏览", - "precondition": "作品已上架", - "steps": "匿名查询作品详情", - "expected": "详情返回数据", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364872862380032\", \"shopId\": \"322364862611501056\", \"shopName\": \"fd0608212248 normal shop edited\", \"title\": \"fd0608212248 主链路款式\", \"description\": \"全链路测试作品\", \"targetAudience\": \"通勤\", \"precautions\": \"无\", \"imageFileIds\": \"\", \"imageUrls\": [], \"price\": 128.0, \"tags\": \"法式,测试\", \"tagList\": [], \"tagInfos\": [], \"likeCount\": 0, \"collectCount\": 0, \"approximateDuration\": \"60分钟\", \"serviceDurationMinutes\": \"60\", \"bookableArtists\": \"322364865383936000\", \"availableBookableArtistCount\": 1, \"bookableArtistRestricted\": true, \"availableCoupons\": \"\", \"createTime\": \"2026-06-08T21:22:55\", \"updateTime\": \"2026-06-08T21:22:55\"}}", - "status": "PASS", - "priority": "-", - "evidence": "GET /product/get/322364872862380032" - }, - { - "id": "USER-004B", - "role": "普通用户", - "module": "浏览", - "precondition": "作品已上架", - "steps": "匿名查询门店作品列表", - "expected": "列表包含新建作品", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": [{\"id\": \"322364872862380032\", \"shopId\": \"322364862611501056\", \"shopName\": \"fd0608212248 normal shop edited\", \"title\": \"fd0608212248 主链路款式\", \"description\": \"全链路测试作品\", \"targetAudience\": \"通勤\", \"precautions\": \"无\", \"imageFileIds\": \"\", \"imageUrls\": [], \"price\": 128.0, \"tags\": \"法式,测试\", \"tagList\": [], \"tagInfos\": [], \"likeCount\": 0, \"collectCount\": 0, \"approximateDuration\": \"60分钟\", \"serviceDurationMinutes\": \"60\", \"bookableArtists\": \"322364865383936000\", \"availableBookableArtistCount\": 1, \"bookableArtistRestricted\": true, \"availableCoupons\": \"\", \"createTime\": \"2026-06-08T21:22:55\", \"updateTime\": \"2026-06-08T21:22:55\"}]}", - "status": "PASS", - "priority": "P1", - "evidence": "GET /product/list/shop/322364862611501056" - }, - { - "id": "USER-005", - "role": "普通用户", - "module": "收藏", - "precondition": "用户已登录,作品存在", - "steps": "收藏作品", - "expected": "收藏成功", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": \"ok\"}", - "status": "PASS", - "priority": "-", - "evidence": "POST /wishlist/add" - }, - { - "id": "USER-005B", - "role": "普通用户", - "module": "收藏", - "precondition": "作品已收藏", - "steps": "查询收藏状态", - "expected": "返回已收藏", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": true}", - "status": "PASS", - "priority": "-", - "evidence": "GET /wishlist/check" - }, - { - "id": "USER-005C", - "role": "普通用户", - "module": "购物车", - "precondition": "用户已登录,作品存在", - "steps": "加入购物车", - "expected": "购物车新增该作品,供结算/下单使用", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": null}", - "status": "PASS", - "priority": "-", - "evidence": "POST /cart/add" - }, - { - "id": "USER-005D", - "role": "普通用户", - "module": "购物车", - "precondition": "作品已加入购物车", - "steps": "查询购物车列表", - "expected": "列表包含新建作品及可预约设计师", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": [{\"id\": \"322364873650909184\", \"productId\": \"322364872862380032\", \"shopId\": \"322364862611501056\", \"productTitle\": \"fd0608212248 主链路款式\", \"productImage\": null, \"price\": 128.0, \"quantity\": 1, \"totalPrice\": 128.0, \"tags\": \"法式,测试\", \"tagNames\": \"\", \"approximateDuration\": \"60分钟\", \"bookableArtists\": \"322364865383936000\", \"availableBookableArtistCount\": 1, \"bookableArtistRestricted\": true, \"availableArtists\": [{\"id\": \"322364865383936000\", \"name\": \"fd0608212248 artistone\", \"avatar\": \"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\", \"userType\": 3, \"roleLabel\": \"美甲师\", \"participateProduction\": false}]}]}", - "status": "PASS", - "priority": "-", - "evidence": "GET /cart/list" - }, - { - "id": "USER-006", - "role": "普通用户", - "module": "结算预览", - "precondition": "用户已登录,作品可预约", - "steps": "checkout-preview", - "expected": "返回金额和可用优惠信息", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"subtotalAmount\": 128.0, \"savedAmount\": 0.0, \"payableAmount\": 128.0, \"bestCoupon\": null, \"availableCoupons\": [], \"unavailableCoupons\": [{\"id\": \"322364862628278272\", \"couponId\": \"322364862628278272\", \"userCouponId\": null, \"sourceType\": \"SYSTEM_VIP\", \"couponName\": \"青铜VIP自动95折券\", \"couponType\": 1, \"couponTypeName\": \"折扣券\", \"discountValue\": 9.5, \"minAmount\": 0.0, \"reduceAmount\": 0.0, \"discountAmount\": 0.0, \"available\": false, \"best\": false, \"vipAuto\": true, \"displayText\": \"VIP自动优惠:青铜VIP自动95折券,9.5折\", \"savingText\": null, \"unavailableReason\": \"本单商品暂不适用\", \"startTime\": \"2026-06-08T21:22:52\", \"endTime\": \"2099-12-31T23:59:59\"}, {\"id\": \"322364862640861184\", \"couponId\": \"322364862640861184\", \"userCouponId\": null, \"sourceType\": \"SYSTEM_VIP\", \"couponName\": \"白银VIP自动92折券\", \"couponType\": 1, \"couponTypeName\": \"折扣券\", \"discountValue\": 9.2, \"minAmount\": 0.0, \"reduceAmount\": 0.0, \"discountAmount\": 0.0, \"available\": false, \"best\": false, \"vipAuto\": true, \"displayText\": \"VIP自动优惠:白银VIP自动92折券,9.2折\", \"savingText\": null, \"unavailableReason\": \"本单商品暂不适用\", \"startTime\": \"2026-06-08T21:22:52\", \"endTime\": \"2099-12-31T23:59:59\"}, {\"id\": \"322364862653444096\", \"couponId\": \"322364862653444096\", \"userCouponId\": null, \"sourceType\": \"SYSTEM_VIP\", \"couponName\": \"黄金VIP自动90折券\", \"couponType\": 1, \"couponTypeName\": \"折扣券\", \"discountValue\": 9.0, \"minAmount\": 0.0, \"reduceAmount\": 0.0, \"discountAmount\": 0.0, \"available\": false, \"best\": false, \"vipAuto\": true, \"displayText\": \"VIP自动优惠:黄金VIP自动90折券,9折\", \"savingText\": null, \"unavailableReason\": \"本单商品暂不适用\", \"startTime\": \"2026-06-08T21:22:52\"", - "status": "PASS", - "priority": "-", - "evidence": "POST /order/checkout-preview" - }, - { - "id": "USER-007", - "role": "普通用户", - "module": "下单", - "precondition": "用户已登录,作品/设计师/排班可用", - "steps": "创建订单", - "expected": "返回订单、订单项,DB 生成 t_order/t_order_item", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364874066145281\", \"orderNo\": \"ORD322364874066145280\", \"userId\": \"322364866830970880\", \"shopId\": \"322364862611501056\", \"shopName\": \"fd0608212248 normal shop edited\", \"totalAmount\": 128.0, \"actualAmount\": 128.0, \"couponId\": null, \"userCouponId\": null, \"couponSourceType\": null, \"couponName\": null, \"paymentStatus\": \"UNPAID\", \"payAmount\": 128.0, \"paidAmount\": 0, \"payTime\": null, \"paymentMethod\": null, \"paymentOrderNo\": null, \"refundStatus\": null, \"customerRemark\": \"fd0608212248\", \"quoteStatus\": \"CONFIRMING\", \"quoteStatusText\": \"确认价格中\", \"quoteUserConfirmed\": false, \"quoteShopConfirmed\": false, \"quoteExpireTime\": \"2026-06-09T21:22:55.2273918\", \"quoteConfirmedTime\": null, \"quoteMessages\": [{\"id\": \"322364874087116800\", \"orderId\": \"322364874066145281\", \"actorId\": \"322364866830970880\", \"actorType\": \"USER\", \"actorTypeText\": \"用户\", \"action\": \"CREATE\", \"actionText\": \"发起询价预约\", \"remark\": \"fd0608212248\", \"items\": [{\"orderItemId\": \"322364874070339584\", \"productId\": \"322364872862380032\", \"productTitle\": \"fd0608212248 主链路款式\", \"quantity\": 1, \"referencePrice\": 128.0, \"quotedPrice\": null, \"confirmedPrice\": null}], \"createTime\": \"2026-06-08T21:22:55\"}], \"customerNickname\": \"fd0608212248 customer\", \"customerPhoneMasked\": \"191****0004\", \"artistOrderSource\": null, \"artistOrderSourceText\": null, \"status\": 0, \"statusText\": \"确认价格中\", \"createTime\": null, \"items\": [{\"id\": \"322364874070339584\", \"productId\": \"322364872862380032\", \"productTitle\": \"fd0608212248 主链路款式\", \"productImage\": null, \"quantity\": 1, \"price\": 128.0, \"referencePrice\": 128.0, \"quotedPrice\":", - "status": "PASS", - "priority": "-", - "evidence": "POST /order/create" - }, - { - "id": "USER-007B", - "role": "普通用户", - "module": "DB核验", - "precondition": "订单创建成功", - "steps": "查询 t_order/t_order_item", - "expected": "订单项设计师和预约时间一致", - "actual": "{\"status\": 0, \"quote_status\": \"CONFIRMING\", \"artist_id\": 322364865383936000, \"appointment_time\": \"2026-06-10 10:00:00\"}", - "status": "PASS", - "priority": "P0", - "evidence": "DB t_order + t_order_item" - }, - { - "id": "EDGE-001A", - "role": "普通用户", - "module": "预约冲突", - "precondition": "首单已创建且购物车已被清空", - "steps": "重新加入同作品以验证重复预约冲突", - "expected": "加购成功,下一步应进入预约冲突校验", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": null}", - "status": "PASS", - "priority": "-", - "evidence": "POST /cart/add" - }, - { - "id": "EDGE-001", - "role": "普通用户", - "module": "预约冲突", - "precondition": "已有同设计师同时间订单占用", - "steps": "重复提交同时间预约", - "expected": "应拦截重复占用/冲突或操作幂等保护", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364874519130113\", \"orderNo\": \"ORD322364874519130112\", \"userId\": \"322364866830970880\", \"shopId\": \"322364862611501056\", \"shopName\": \"fd0608212248 normal shop edited\", \"totalAmount\": 128.0, \"actualAmount\": 128.0, \"couponId\": null, \"userCouponId\": null, \"couponSourceType\": null, \"couponName\": null, \"paymentStatus\": \"UNPAID\", \"payAmount\": 128.0, \"paidAmount\": 0, \"payTime\": null, \"paymentMethod\": null, \"paymentOrderNo\": null, \"refundStatus\": null, \"customerRemark\": \"fd0608212248\", \"quoteStatus\": \"CONFIRMING\", \"quoteStatusText\": \"确认价格中\", \"quoteUserConfirmed\": false, \"quoteShopConfirmed\": false, \"quoteExpireTime\": \"2026-06-09T21:22:55.3353326\", \"quoteConfirmedTime\": null, \"quoteMessages\": [{\"id\": \"322364874540101632\", \"orderId\": \"322364874519130113\", \"actorId\": \"322364866830970880\", \"actorType\": \"USER\", \"actorTypeText\": \"用户\", \"action\": \"CREATE\", \"actionText\": \"发起询价预约\", \"remark\": \"fd0608212248\", \"items\": [{\"orderItemId\": \"322364874523324416\", \"productId\": \"322364872862380032\", \"productTitle\": \"fd0608212248 主链路款式\", \"quantity\": 1, \"referencePrice\": 128.0, \"quotedPrice\": null, \"confirmedPrice\": null}], \"createTime\": \"2026-06-08T21:22:55\"}], \"customerNickname\": \"fd0608212248 customer\", \"customerPhoneMasked\": \"191****0004\", \"artistOrderSource\": null, \"artistOrderSourceText\": null, \"status\": 0, \"statusText\": \"确认价格中\", \"createTime\": null, \"items\": [{\"id\": \"322364874523324416\", \"productId\": \"322364872862380032\", \"productTitle\": \"fd0608212248 主链路款式\", \"productImage\": null, \"quantity\": 1, \"price\": 128.0, \"referencePrice\": 128.0, \"quotedPrice\":", - "status": "FAIL", - "priority": "P0", - "evidence": "POST /order/create duplicate" - }, - { - "id": "LINK-001", - "role": "店长", - "module": "报价联动", - "precondition": "用户订单已创建", - "steps": "店长提交报价", - "expected": "订单 quote_status 更新为 WAIT_USER/PROCESSING", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364874066145281\", \"orderNo\": \"ORD322364874066145280\", \"userId\": \"322364866830970880\", \"shopId\": \"322364862611501056\", \"shopName\": \"fd0608212248 normal shop edited\", \"totalAmount\": 128.0, \"actualAmount\": 128.0, \"couponId\": \"0\", \"userCouponId\": null, \"couponSourceType\": null, \"couponName\": null, \"paymentStatus\": \"UNPAID\", \"payAmount\": 128.0, \"paidAmount\": 0.0, \"payTime\": null, \"paymentMethod\": null, \"paymentOrderNo\": null, \"refundStatus\": \"NONE\", \"customerRemark\": \"fd0608212248\", \"quoteStatus\": \"CONFIRMING\", \"quoteStatusText\": \"确认价格中\", \"quoteUserConfirmed\": false, \"quoteShopConfirmed\": true, \"quoteExpireTime\": \"2026-06-09T21:22:55\", \"quoteConfirmedTime\": null, \"quoteMessages\": [{\"id\": \"322364874087116800\", \"orderId\": \"322364874066145281\", \"actorId\": \"322364866830970880\", \"actorType\": \"USER\", \"actorTypeText\": \"用户\", \"action\": \"CREATE\", \"actionText\": \"发起询价预约\", \"remark\": \"fd0608212248\", \"items\": [{\"orderItemId\": \"322364874070339584\", \"productId\": \"322364872862380032\", \"productTitle\": \"fd0608212248 主链路款式\", \"quantity\": 1, \"referencePrice\": 128.0, \"quotedPrice\": 138.0, \"confirmedPrice\": null}], \"createTime\": \"2026-06-08T21:22:55\"}, {\"id\": \"322364874913394688\", \"orderId\": \"322364874066145281\", \"actorId\": \"322364864406663168\", \"actorType\": \"SHOP\", \"actorTypeText\": \"门店\", \"action\": \"SHOP_QUOTE\", \"actionText\": \"门店报价\", \"remark\": \"店长报价\", \"items\": [{\"orderItemId\": \"322364874070339584\", \"productId\": \"322364872862380032\", \"productTitle\": \"fd0608212248 主链路款式\", \"quantity\": 1, \"referencePrice\": 128.0, \"quotedPrice\": 138.0, \"confirmedPrice\": nul", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/order/322364874066145281/quote" - }, - { - "id": "LINK-002", - "role": "店长", - "module": "报价联动", - "precondition": "店长已提交报价", - "steps": "店长确认报价", - "expected": "订单 quote_shop_confirmed=1", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364874066145281\", \"orderNo\": \"ORD322364874066145280\", \"userId\": \"322364866830970880\", \"shopId\": \"322364862611501056\", \"shopName\": \"fd0608212248 normal shop edited\", \"totalAmount\": 128.0, \"actualAmount\": 128.0, \"couponId\": \"0\", \"userCouponId\": null, \"couponSourceType\": null, \"couponName\": null, \"paymentStatus\": \"UNPAID\", \"payAmount\": 128.0, \"paidAmount\": 0.0, \"payTime\": null, \"paymentMethod\": null, \"paymentOrderNo\": null, \"refundStatus\": \"NONE\", \"customerRemark\": \"fd0608212248\", \"quoteStatus\": \"CONFIRMING\", \"quoteStatusText\": \"确认价格中\", \"quoteUserConfirmed\": false, \"quoteShopConfirmed\": true, \"quoteExpireTime\": \"2026-06-09T21:22:55\", \"quoteConfirmedTime\": null, \"quoteMessages\": [{\"id\": \"322364874087116800\", \"orderId\": \"322364874066145281\", \"actorId\": \"322364866830970880\", \"actorType\": \"USER\", \"actorTypeText\": \"用户\", \"action\": \"CREATE\", \"actionText\": \"发起询价预约\", \"remark\": \"fd0608212248\", \"items\": [{\"orderItemId\": \"322364874070339584\", \"productId\": \"322364872862380032\", \"productTitle\": \"fd0608212248 主链路款式\", \"quantity\": 1, \"referencePrice\": 128.0, \"quotedPrice\": 138.0, \"confirmedPrice\": null}], \"createTime\": \"2026-06-08T21:22:55\"}, {\"id\": \"322364874913394688\", \"orderId\": \"322364874066145281\", \"actorId\": \"322364864406663168\", \"actorType\": \"SHOP\", \"actorTypeText\": \"门店\", \"action\": \"SHOP_QUOTE\", \"actionText\": \"门店报价\", \"remark\": \"店长报价\", \"items\": [{\"orderItemId\": \"322364874070339584\", \"productId\": \"322364872862380032\", \"productTitle\": \"fd0608212248 主链路款式\", \"quantity\": 1, \"referencePrice\": 128.0, \"quotedPrice\": 138.0, \"confirmedPrice\": nul", - "status": "PASS", - "priority": "-", - "evidence": "PUT /admin/order/322364874066145281/quote/confirm" - }, - { - "id": "LINK-003", - "role": "普通用户", - "module": "报价联动", - "precondition": "店长已确认报价", - "steps": "用户确认报价", - "expected": "订单 quote_user_confirmed=1,并生成预约占用", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"id\": \"322364874066145281\", \"orderNo\": \"ORD322364874066145280\", \"userId\": \"322364866830970880\", \"shopId\": \"322364862611501056\", \"shopName\": \"fd0608212248 normal shop edited\", \"totalAmount\": 138.0, \"actualAmount\": 138.0, \"couponId\": \"0\", \"userCouponId\": null, \"couponSourceType\": null, \"couponName\": null, \"paymentStatus\": \"UNPAID\", \"payAmount\": 138.0, \"paidAmount\": 0.0, \"payTime\": null, \"paymentMethod\": null, \"paymentOrderNo\": null, \"refundStatus\": \"NONE\", \"customerRemark\": \"fd0608212248\", \"quoteStatus\": \"CONFIRMED\", \"quoteStatusText\": \"价格已确认\", \"quoteUserConfirmed\": true, \"quoteShopConfirmed\": true, \"quoteExpireTime\": \"2026-06-09T21:22:55\", \"quoteConfirmedTime\": \"2026-06-08T21:22:56\", \"quoteMessages\": [{\"id\": \"322364874087116800\", \"orderId\": \"322364874066145281\", \"actorId\": \"322364866830970880\", \"actorType\": \"USER\", \"actorTypeText\": \"用户\", \"action\": \"CREATE\", \"actionText\": \"发起询价预约\", \"remark\": \"fd0608212248\", \"items\": [{\"orderItemId\": \"322364874070339584\", \"productId\": \"322364872862380032\", \"productTitle\": \"fd0608212248 主链路款式\", \"quantity\": 1, \"referencePrice\": 128.0, \"quotedPrice\": 138.0, \"confirmedPrice\": 138.0}], \"createTime\": \"2026-06-08T21:22:55\"}, {\"id\": \"322364874913394688\", \"orderId\": \"322364874066145281\", \"actorId\": \"322364864406663168\", \"actorType\": \"SHOP\", \"actorTypeText\": \"门店\", \"action\": \"SHOP_QUOTE\", \"actionText\": \"门店报价\", \"remark\": \"店长报价\", \"items\": [{\"orderItemId\": \"322364874070339584\", \"productId\": \"322364872862380032\", \"productTitle\": \"fd0608212248 主链路款式\", \"quantity\": 1, \"referencePrice\": 128.0, \"quotedPrice\": 138.0, \"conf", - "status": "PASS", - "priority": "-", - "evidence": "PUT /order/322364874066145281/quote/confirm" - }, - { - "id": "LINK-003B", - "role": "普通用户/店长", - "module": "DB联动", - "precondition": "用户确认报价后", - "steps": "查询订单项和预约占用", - "expected": "报价确认、预约占用生成且时间/设计师一致", - "actual": "{\"quote_status\": \"CONFIRMED\", \"quote_user_confirmed\": 1, \"quote_shop_confirmed\": 1, \"confirmed_price\": \"138.00\", \"ar_status\": \"CONFIRMED\", \"artist_id\": 322364865383936000, \"appointment_start_time\": \"2026-06-10 10:00:00\", \"appointment_end_time\": \"2026-06-10 11:00:00\"}", - "status": "PASS", - "priority": "P0", - "evidence": "DB t_order/t_order_item/t_appointment_reservation" - }, - { - "id": "MANAGER-002", - "role": "指尖管理师", - "module": "日/周/月规划", - "precondition": "订单已确认报价并生成占用", - "steps": "查询 planning calendar 日视图", - "expected": "返回包含该预约/单量", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"businessStartTime\": \"09:00\", \"businessEndTime\": \"21:00\", \"slotMinutes\": 30, \"artists\": [{\"id\": \"322364865383936000\", \"name\": \"fd0608212248 artistone\", \"shortName\": \"F\", \"phone\": \"19100000002\", \"avatar\": \"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\", \"color\": \"#D7A86E\", \"status\": 1, \"statusText\": \"可预约\", \"workStartTime\": \"09:00\", \"workEndTime\": \"21:00\", \"rangeCount\": 2}], \"schedules\": [{\"id\": \"322364871461482496\", \"artistId\": \"322364865383936000\", \"artistName\": \"fd0608212248 artistone\", \"date\": \"2026-06-10\", \"startTime\": \"09:00\", \"endTime\": \"21:00\", \"capacity\": 1, \"status\": 1, \"statusText\": \"可预约\", \"remark\": \"fd0608212248\"}], \"appointments\": [{\"orderId\": \"322364874066145281\", \"orderNo\": \"ORD322364874066145280\", \"orderItemId\": \"322364874070339584\", \"customerId\": \"322364866830970880\", \"customerName\": \"fd0608212248 customer\", \"customerPhone\": \"19100000004\", \"productId\": \"322364872862380032\", \"productTitle\": \"fd0608212248 主链路款式\", \"artistId\": \"322364865383936000\", \"artistName\": \"fd0608212248 artistone\", \"artistColor\": \"#D7A86E\", \"date\": \"2026-06-10\", \"startTime\": \"2026-06-10 10:00:00\", \"endTime\": \"2026-06-10 11:00:00\", \"startMinute\": 600, \"durationMinutes\": 60, \"status\": 1, \"statusText\": \"已确认\", \"amount\": 138.0, \"remark\": \"fd0608212248\"}, {\"orderId\": \"322364874519130113\", \"orderNo\": \"ORD322364874519130112\", \"orderItemId\": \"322364874523324416\", \"customerId\": \"322364866830970880\", \"customerName\": \"fd0608212248 customer\", \"customerPhone\": \"19100000004\", \"productId\": \"322364872862380032\", \"productTitle\": \"fd0608212248 主链", - "status": "PASS", - "priority": "P0", - "evidence": "GET /admin/planning/calendar" - }, - { - "id": "MANAGER-003", - "role": "指尖管理师", - "module": "改时间/改派", - "precondition": "订单预约已存在", - "steps": "改派到 artisttwo 并改到 11:00", - "expected": "订单项和预约占用同步更新", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"orderId\": \"322364874066145281\", \"orderNo\": \"ORD322364874066145280\", \"orderItemId\": \"322364874070339584\", \"customerId\": \"322364866830970880\", \"customerName\": \"fd0608212248 customer\", \"customerPhone\": \"19100000004\", \"productId\": \"322364872862380032\", \"productTitle\": \"fd0608212248 主链路款式\", \"artistId\": \"322364866101161984\", \"artistName\": \"fd0608212248 artisttwo\", \"artistColor\": \"#D7A86E\", \"date\": \"2026-06-10\", \"startTime\": \"2026-06-10 11:00:00\", \"endTime\": \"2026-06-10 12:00:00\", \"startMinute\": 660, \"durationMinutes\": 60, \"status\": 1, \"statusText\": \"已确认\", \"amount\": 138.0, \"remark\": \"fd0608212248\"}}", - "status": "PASS", - "priority": "-", - "evidence": "PUT /admin/planning/appointments/322364874070339584/time-artist" - }, - { - "id": "MANAGER-003B", - "role": "指尖管理师", - "module": "DB联动", - "precondition": "改派接口已执行", - "steps": "查询订单项/预约占用", - "expected": "artist_id 和 appointment_time 均同步为新值", - "actual": "{\"artist_id\": 322364866101161984, \"appointment_time\": \"2026-06-10 11:00:00\", \"ar_artist\": 322364866101161984, \"appointment_start_time\": \"2026-06-10 11:00:00\"}", - "status": "PASS", - "priority": "P0", - "evidence": "DB t_order_item/t_appointment_reservation" - }, - { - "id": "ARTIST-002", - "role": "设计师/美甲师", - "module": "本人订单", - "precondition": "订单已改派到 artisttwo", - "steps": "artistone 查询本人订单列表", - "expected": "不能看到已改派给他人的订单", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"list\": [{\"id\": \"322364874519130113\", \"orderNo\": \"ORD322364874519130112\", \"userId\": \"322364866830970880\", \"shopId\": \"322364862611501056\", \"shopName\": \"fd0608212248 normal shop edited\", \"totalAmount\": 128.0, \"actualAmount\": 128.0, \"couponId\": \"0\", \"userCouponId\": null, \"couponSourceType\": null, \"couponName\": null, \"paymentStatus\": \"UNPAID\", \"payAmount\": 128.0, \"paidAmount\": 0.0, \"payTime\": null, \"paymentMethod\": null, \"paymentOrderNo\": null, \"refundStatus\": \"NONE\", \"customerRemark\": \"fd0608212248\", \"quoteStatus\": \"CONFIRMING\", \"quoteStatusText\": \"确认价格中\", \"quoteUserConfirmed\": false, \"quoteShopConfirmed\": false, \"quoteExpireTime\": \"2026-06-09T21:22:55\", \"quoteConfirmedTime\": null, \"quoteMessages\": [{\"id\": \"322364874540101632\", \"orderId\": \"322364874519130113\", \"actorId\": \"322364866830970880\", \"actorType\": \"USER\", \"actorTypeText\": \"用户\", \"action\": \"CREATE\", \"actionText\": \"发起询价预约\", \"remark\": \"fd0608212248\", \"items\": [{\"orderItemId\": \"322364874523324416\", \"productId\": \"322364872862380032\", \"productTitle\": \"fd0608212248 主链路款式\", \"quantity\": 1, \"referencePrice\": 128.0, \"quotedPrice\": null, \"confirmedPrice\": null}], \"createTime\": \"2026-06-08T21:22:55\"}], \"customerNickname\": \"fd0608212248 customer\", \"customerPhoneMasked\": \"191****0004\", \"artistOrderSource\": null, \"artistOrderSourceText\": null, \"status\": 0, \"statusText\": \"确认价格中\", \"createTime\": \"2026-06-08T21:22:55\", \"items\": [{\"id\": \"322364874523324416\", \"productId\": \"322364872862380032\", \"productTitle\": \"fd0608212248 主链路款式\", \"productImage\": null, \"quantity\": 1, \"price\": 128.0, \"referencePrice\":", - "status": "PASS", - "priority": "P0", - "evidence": "GET /admin/order/list as artistone" - }, - { - "id": "LINK-004", - "role": "指尖管理师", - "module": "新建预约联动", - "precondition": "客户/作品/设计师存在", - "steps": "规划端新建预约", - "expected": "后台订单、订单项、预约占用同步生成", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"orderId\": \"322364876758888449\", \"orderNo\": \"ORD322364876758888448\", \"orderItemId\": \"322364876767277056\", \"customerId\": \"322364866830970880\", \"customerName\": \"fd0608212248 customer\", \"customerPhone\": \"19100000004\", \"productId\": \"322364872862380032\", \"productTitle\": \"fd0608212248 主链路款式\", \"artistId\": \"322364865383936000\", \"artistName\": \"fd0608212248 artistone\", \"artistColor\": \"#D7A86E\", \"date\": \"2026-06-11\", \"startTime\": \"2026-06-11 14:00:00\", \"endTime\": \"2026-06-11 15:00:00\", \"startMinute\": 840, \"durationMinutes\": 60, \"status\": 1, \"statusText\": \"已确认\", \"amount\": 128.0, \"remark\": \"fd0608212248 planning\"}}", - "status": "PASS", - "priority": "-", - "evidence": "POST /admin/planning/appointments" - }, - { - "id": "LINK-004B", - "role": "指尖管理师/后台", - "module": "DB联动", - "precondition": "规划端新建预约成功", - "steps": "查询 t_order/t_order_item/t_appointment_reservation", - "expected": "三表同步生成且有关联", - "actual": "{\"order_id\": 322364876758888449, \"item_id\": 322364876767277056, \"reservation_id\": 322364876784054272, \"status\": \"CONFIRMED\"}", - "status": "PASS", - "priority": "P0", - "evidence": "DB order/item/reservation" - }, - { - "id": "LINK-005", - "role": "后台店长", - "module": "取消联动", - "precondition": "规划端预约已生成", - "steps": "用户端取消订单", - "expected": "预约占用释放/状态变更", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": null}", - "status": "PASS", - "priority": "-", - "evidence": "PUT /order/cancel/322364876758888449" - }, - { - "id": "LINK-005B", - "role": "后台/管理师", - "module": "DB联动", - "precondition": "取消接口已执行", - "steps": "查询订单和预约占用", - "expected": "订单取消且预约不再 active", - "actual": "{\"status\": 3, \"ar_status\": \"RELEASED\", \"ar_deleted\": 1}", - "status": "PASS", - "priority": "P0", - "evidence": "DB t_order/t_appointment_reservation" - }, - { - "id": "PERM-001", - "role": "后台店长", - "module": "跨店隔离", - "precondition": "other 店长登录 other 门店", - "steps": "请求 normal 门店作品列表", - "expected": "应无权查看或返回本店空列表,不泄露 normal 数据", - "actual": "{\"code\": 200, \"message\": \"操作成功\", \"data\": {\"list\": [], \"total\": \"0\", \"page\": 1, \"size\": 20}}", - "status": "PASS", - "priority": "P0", - "evidence": "GET /admin/product/list?shopId=normal as other manager" - }, - { - "id": "EDGE-002", - "role": "平台管理员", - "module": "停用店铺", - "precondition": "disabled 门店为停用", - "steps": "尝试给停用店铺创建店长", - "expected": "应拦截并提示店铺不可用/冻结", - "actual": "{\"code\": 500, \"message\": \"所属店铺不存在或已失效\", \"data\": null}", - "status": "PASS", - "priority": "P1", - "evidence": "POST /admin/user/create disabled shop" - }, - { - "id": "EDGE-003", - "role": "未登录用户", - "module": "鉴权健壮性", - "precondition": "无 token", - "steps": "直接调用写接口下单", - "expected": "返回 401,不创建订单", - "actual": "{\"code\": 401, \"message\": \"未提供认证Token\"}", - "status": "PASS", - "priority": "P0", - "evidence": "POST /order/create without token" - }, - { - "id": "EDGE-004", - "role": "过期/错误 token", - "module": "鉴权健壮性", - "precondition": "错误 token", - "steps": "调用需登录 GET 接口", - "expected": "返回 401/403", - "actual": "HTTP 401, {\"code\":401,\"message\":\"Token无效或已过期\"}", - "status": "PASS", - "priority": "P0", - "evidence": "GET /order/list with invalid token" - }, - { - "id": "PASS-010", - "role": "全角色", - "module": "数据一致性", - "precondition": "主链路执行后", - "steps": "核验核心表计数、孤儿预约、重复占用", - "expected": "无孤儿预约、无重复 active 占用", - "actual": "counts={'t_user': 6, 't_shop': 4, 't_user_shop_binding': 5, 't_nail_artist_info': 2, 't_artist_schedule': 3, 't_product': 1, 't_order': 3, 't_order_item': 3, 't_appointment_reservation': 2, 't_user_agreement_consent': 2}, orphan=0, duplicate=0", - "status": "PASS", - "priority": "P0", - "evidence": "DB consistency" - }, - { - "id": "UI-002", - "role": "小程序端", - "module": "微信开发者工具页面测试", - "precondition": "当前会话未暴露微信开发者工具自动化入口", - "steps": "执行管理师/用户/设计师小程序页面真实点击", - "expected": "页面可交互、布局不遮挡", - "actual": "工具阻塞:未发现可调用微信开发者工具/小程序 MCP;API+DB 联动已执行", - "status": "BLOCKED", - "priority": "P3", - "evidence": "tool unavailable" - } - ], - "counts": { - "t_user": 6, - "t_shop": 4, - "t_user_shop_binding": 5, - "t_nail_artist_info": 2, - "t_artist_schedule": 3, - "t_product": 1, - "t_order": 3, - "t_order_item": 3, - "t_appointment_reservation": 2, - "t_user_agreement_consent": 2 - } -} diff --git a/artifacts/full-regression/acceptance_fd0608212248.md b/artifacts/full-regression/acceptance_fd0608212248.md deleted file mode 100644 index eeb9a45b..00000000 --- a/artifacts/full-regression/acceptance_fd0608212248.md +++ /dev/null @@ -1,83 +0,0 @@ -# Fingertip Designer 全链路用户视角验收清单 - fd0608212248 - -- 执行时间:2026-06-08T21:22:56 -- 环境:开发 MySQL 192.168.5.15 / 本地 Core http://127.0.0.1:18081 -- 数据策略:执行前已重建 nailart,本轮数据均带 runId 前缀;密钥和密码不写入报告。 - -## 汇总 - -- PASS: 55 -- FAIL: 1 -- BLOCKED: 2 -- DB counts: {"t_user":6,"t_shop":4,"t_user_shop_binding":5,"t_nail_artist_info":2,"t_artist_schedule":3,"t_product":1,"t_order":3,"t_order_item":3,"t_appointment_reservation":2,"t_user_agreement_consent":2} - -## 验收清单 - -| 用例编号 | 角色 | 模块 | 前置数据 | 操作步骤 | 预期结果 | 实际结果 | 状态 | 缺陷等级 | 证据 | -|---|---|---|---|---|---|---|---|---|---| -| ENV-001 | 环境 | Core 健康检查 | Core 18081 已启动 | GET /shop/list/simple | HTTP 200 | HTTP 200, {"code":200,"message":"操作成功","data":[{"id":"322364589629419520","shopName":"fd0608212143 other shop"},{"id":"322364589218377728","shopName":"fd0608212143 normal shop edited"}]} | PASS | P0 | http://127.0.0.1:18081 | -| ENV-002 | 环境 | Nacos Dev 命名空间 | 仅读开发 Nacos | 登录 Nacos 读取 YumiNail-Dev | 成功读取或记录阻塞 | HTTP 500 | BLOCKED | P3 | Nacos dev host reachable; secrets redacted | -| ENV-003 | 环境 | 数据库重建 | 已有备份 nailart_backup_fd0608202858.sql | DROP/CREATE nailart 并执行 YumiNail.sql | 初始化成功且基础权限/管理员存在 | 初始化语句 386, counts={'t_user': 1, 't_shop': 0, 't_user_shop_binding': 0, 't_nail_artist_info': 0, 't_artist_schedule': 0, 't_product': 0, 't_order': 0, 't_order_item': 0, 't_appointment_reservation': 0, 't_user_agreement_consent': 0} | PASS | - | YumiNail-Core/src/main/resources/files/YumiNail.sql | -| ADMIN-001 | 平台管理员 | 登录 | 默认管理员 xiaowang | 账号密码登录后台 | 返回 type=4 accessToken | {"code": 200, "message": "操作成功", "data": {"accessToken": "***", "refreshToken": "***", "userInfo": {"id": "1", "account": "xiaowang", "nickname": "系统管理员", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "type": 4, "shopId": null, "shopName": null, "shopAuthorizationExpireTime": null, "shopAuthorizationExpired": false, "shopIds": [], "shopNames": [], "createTime": "2026-06-08T21:22:51"}, "needSetPassword": false}} | PASS | P0 | POST /admin/auth/login | -| ADMIN-002-normal | 平台管理员 | 店铺管理 | 平台管理员已登录 | 创建normal门店 | 返回门店ID且 t_shop 可查 | {"code": 200, "message": "操作成功", "data": "322364862611501056"} | PASS | - | POST /admin/shops/create | -| ADMIN-002-expired | 平台管理员 | 店铺管理 | 平台管理员已登录 | 创建expired门店 | 返回门店ID且 t_shop 可查 | {"code": 200, "message": "操作成功", "data": "322364862804439040"} | PASS | - | POST /admin/shops/create | -| ADMIN-002-disabled | 平台管理员 | 店铺管理 | 平台管理员已登录 | 创建disabled门店 | 返回门店ID且 t_shop 可查 | {"code": 200, "message": "操作成功", "data": "322364862993182720"} | PASS | - | POST /admin/shops/create | -| ADMIN-002-other | 平台管理员 | 店铺管理 | 平台管理员已登录 | 创建other门店 | 返回门店ID且 t_shop 可查 | {"code": 200, "message": "操作成功", "data": "322364863198703616"} | PASS | - | POST /admin/shops/create | -| ADMIN-003 | 平台管理员 | 店铺管理 | normal 门店存在 | 编辑门店资料后查询详情 | 更新成功且详情为新值 | {"code": 200, "message": "操作成功", "data": true} | PASS | - | PUT /admin/shops/update/322364862611501056 | -| ADMIN-003B | 平台管理员 | 店铺管理 | normal 门店存在 | 查询门店详情 | 返回 normal 门店详情 | {"code": 200, "message": "操作成功", "data": {"id": "322364862611501056", "shopName": "fd0608212248 normal shop edited", "description": "normal edited", "address": "Dev 1", "mapProvider": "TENCENT", "longitude": null, "latitude": null, "navigationUrls": {}, "businessHours": "09:00-21:00", "coverImageFileId": "", "coverImageUrls": [], "imageFileIds": null, "imageUrls": [], "themePrimaryColor": "#1677FF", "themeSecondaryColor": "#F5F5F5", "themeAccentColor": "#FF7A45", "themePageBgColor": "#FFFFFF", "themeCardBgColor": "#FFFFFF", "themeBackgroundImageFileId": null, "status": 1, "authorizationStartDate": "2026-06-07", "authorizationDays": 45, "authorizationExpireTime": "2026-07-21T23:59:59", "authorizationExpired": false, "authorizationStatusText": "有效", "createTime": "2026-06-08T21:22:52", "updateTime": "2026-06-08T21:22:52"}} | PASS | - | GET /admin/shops/322364862611501056 | -| ADMIN-004 | 平台管理员 | 店铺启停 | disabled 门店存在 | JSON body 修改门店状态为启用 | 状态更新成功 | {"code": 200, "message": "操作成功", "data": true} | PASS | - | PUT /admin/shops/status/322364862993182720 | -| ADMIN-004B | 平台管理员 | 店铺启停 | disabled 门店已启用 | JSON body 修改门店状态为停用 | 状态更新成功 | {"code": 200, "message": "操作成功", "data": true} | PASS | - | PUT /admin/shops/status/322364862993182720 | -| ADMIN-007-manager | 平台管理员 | 账号管理 | 门店已创建 | 创建manager type=2 | 返回用户ID、默认权限和门店绑定写入 | {"code": 200, "message": "操作成功", "data": "322364864406663168"} | PASS | - | POST /admin/user/create | -| ADMIN-007-artistone | 平台管理员 | 账号管理 | 门店已创建 | 创建artistone type=3 | 返回用户ID、默认权限和门店绑定写入 | {"code": 200, "message": "操作成功", "data": "322364865383936000"} | PASS | - | POST /admin/user/create | -| ADMIN-007-artisttwo | 平台管理员 | 账号管理 | 门店已创建 | 创建artisttwo type=3 | 返回用户ID、默认权限和门店绑定写入 | {"code": 200, "message": "操作成功", "data": "322364866101161984"} | PASS | - | POST /admin/user/create | -| ADMIN-007-customer | 平台管理员 | 账号管理 | 门店已创建 | 创建customer type=0 | 返回用户ID、默认权限和门店绑定写入 | {"code": 200, "message": "操作成功", "data": "322364866830970880"} | PASS | - | POST /admin/user/create | -| ADMIN-007-othermgr | 平台管理员 | 账号管理 | 门店已创建 | 创建othermgr type=2 | 返回用户ID、默认权限和门店绑定写入 | {"code": 200, "message": "操作成功", "data": "322364867397201920"} | PASS | - | POST /admin/user/create | -| ADMIN-007-expiredmgr | 平台管理员 | 账号管理 | 门店已创建 | 创建expiredmgr type=2 | 过期/冻结门店禁止创建可登录店长,返回明确错误 | {"code": 500, "message": "店铺已被冻结", "data": null} | PASS | - | POST /admin/user/create | -| MANAGER-001 | 指尖管理师/店长 | 登录 | manager 账号绑定 normal 门店 | 后台/管理师账号登录并选择门店 | 返回 type=2 shopId=normal | {"code": 200, "message": "操作成功", "data": {"accessToken": "***", "refreshToken": "***", "userInfo": {"id": "322364864406663168", "account": "fd0608212248manager", "nickname": "fd0608212248 manager", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "type": 2, "shopId": "322364862611501056", "shopName": "fd0608212248 normal shop edited", "shopAuthorizationExpireTime": "2026-07-21T23:59:59", "shopAuthorizationExpired": false, "shopIds": ["322364862611501056"], "shopNames": ["fd0608212248 normal shop edited"], "createTime": "2026-06-08T21:22:53"}, "needSetPassword": false}} | PASS | P0 | POST /admin/auth/login | -| UI-001 | 后台店长 | 管理后台真实页面烟测 | Core http://127.0.0.1:18081 已启动;Vite http://127.0.0.1:3000 已启动;fd0608212248manager 已绑定 normal 店铺 | 浏览器打开 /admin/login,输入店长账号密码,等待登录店铺匹配,点击登录并进入仪表盘 | 登录页可见;成功进入 /admin/dashboard;当前店铺、店长、订单/作品/美甲师统计和后台菜单可见 | webStatus=PASS; route=http://127.0.0.1:3000/admin/dashboard; content=指尖设计师管理台
首页
仪表盘
用户管理
作品管理
优惠券管理
评论管理
店铺管理
权限管理
标签管理
订单管理
排班管理
售后处理
库存管理
活动管理
美甲师管理
消息发布
公告管理
VIP充值配置
fd0608212248 normal shop edited
fd0608212248 manager
仪表盘
当前店铺:fd0608212248 normal shop edited
订单总额
394.00元
今日订单额
394.00元
客户数量
1
美甲师数量
2
浏览量
0
收藏量
1
加购量
0
下单量
3
支付订单
0
完成订单
0
评价数
0
复购数
0
经营概览
近 7 日订单额
¥394.00
今日订单数
3
近 7 日新增订单
3
待处理订单
2
已完成订单
0
今日新增客户
1
近 7 日新增客户
1
作品数量
1
快捷跳转
订单管理
用户管理
作品管理
优惠券管理
消息发布
美甲师管理
热门作品
fd0608212248 主链路款式
点赞 0 · 收藏 1
¥128.00
最近动态

新品上架

新品"fd0608212248 主链路款式"已上架

14 分钟前
| PASS | P1 | E:/yuminail/artifacts/full-regression/web_smoke_fd0608212248.json; E:\yuminail\artifacts\full-regression\web_admin_login_fd0608212248.png; E:\yuminail\artifacts\full-regression\web_admin_dashboard_fd0608212248.png | -| ARTIST-001 | 设计师/美甲师 | 登录 | artistone 账号绑定 normal 门店 | 设计师账号登录 | 返回 type=3 shopId=normal | {"code": 200, "message": "操作成功", "data": {"accessToken": "***", "refreshToken": "***", "userInfo": {"id": "322364865383936000", "account": "fd0608212248artistone", "nickname": "fd0608212248 artistone", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "type": 3, "shopId": "322364862611501056", "shopName": "fd0608212248 normal shop edited", "shopAuthorizationExpireTime": "2026-07-21T23:59:59", "shopAuthorizationExpired": false, "shopIds": ["322364862611501056"], "shopNames": ["fd0608212248 normal shop edited"], "createTime": "2026-06-08T21:22:53"}, "needSetPassword": false}} | PASS | P0 | POST /admin/auth/login | -| ADMIN-008 | 店长 | 设计师资料 | 设计师账号存在 | 保存设计师资料 | 返回保存后的设计师资料 | {"code": 200, "message": "操作成功", "data": {"id": "322364865551708160", "userId": "322364865383936000", "identity": "首席设计师", "experience": 5, "skills": "法式,渐变,手绘", "rating": 4.9, "status": 1, "participateProduction": 1, "workStartTime": "09:00:00", "workEndTime": "21:00:00", "userType": 3, "userTypeName": "美甲师", "portfolio": "", "nickname": "fd0608212248 artistone", "shopId": "322364862611501056", "shopName": "fd0608212248 normal shop edited", "signature": "fd0608212248 signature"}} | PASS | - | POST /admin/nail-artist/save | -| ADMIN-011 | 店长 | 排班 | 设计师可用 | 保存设计师排班 | t_artist_schedule 生成记录 | {"code": 200, "message": "操作成功", "data": {"id": "322364871461482496", "shopId": "322364862611501056", "artistId": "322364865383936000", "workDate": "2026-06-10", "startTime": "09:00:00", "endTime": "21:00:00", "slotMinutes": 60, "capacity": 1, "status": 1, "remark": "fd0608212248", "createTime": "2026-06-08T21:22:54.6071876"}} | PASS | - | POST /admin/artist-schedule/save | -| ADMIN-011B | 店长 | 排班 | 规划端新建预约目标日 | 补充规划端目标日期排班 | t_artist_schedule 生成第二天排班 | {"code": 200, "message": "操作成功", "data": {"id": "322364871650226176", "shopId": "322364862611501056", "artistId": "322364865383936000", "workDate": "2026-06-11", "startTime": "09:00:00", "endTime": "21:00:00", "slotMinutes": 60, "capacity": 1, "status": 1, "remark": "fd0608212248-planning", "createTime": "2026-06-08T21:22:54.651676"}} | PASS | - | POST /admin/artist-schedule/save | -| ADMIN-011C | 店长 | 排班 | 改派目标设计师 | 给 artisttwo 补充同日排班 | 改派目标日有可用容量 | {"code": 200, "message": "操作成功", "data": {"id": "322364871838969856", "shopId": "322364862611501056", "artistId": "322364866101161984", "workDate": "2026-06-10", "startTime": "09:00:00", "endTime": "21:00:00", "slotMinutes": 60, "capacity": 1, "status": 1, "remark": "fd0608212248-move-target", "createTime": "2026-06-08T21:22:54.6964448"}} | PASS | - | POST /admin/artist-schedule/save | -| USER-001 | 普通用户 | 协议 | 匿名可访问 | 读取当前用户协议版本 | 返回 USER_TERMS 和 PRIVACY_POLICY | {"code": 200, "message": "操作成功", "data": [{"id": "313931273555138001", "agreementType": "USER_TERMS", "agreementTypeName": "用户协议", "title": "用户协议", "version": "2026.05.18", "content": "欢迎使用 Fingertip Designer 指尖设计师。请在使用账号、预约、订单、会员、消息等功能前仔细阅读本协议。继续登录或注册即表示你已理解并同意平台基础服务规则、账号安全要求、订单预约规则和依法合规使用要求。", "status": 1, "statusText": "已发布", "effectiveTime": "2026-06-08T21:22:52", "createTime": "2026-06-08T21:22:52", "updateTime": "2026-06-08T21:22:52"}, {"id": "313931273555138002", "agreementType": "PRIVACY_POLICY", "agreementTypeName": "隐私政策", "title": "隐私政策", "version": "2026.05.18", "content": "Fingertip Designer 指尖设计师会在提供登录注册、预约下单、会员余额、消息通知和客户服务时处理必要的手机号、昵称、门店归属、订单与设备信息。我们仅在业务需要和法律允许范围内使用这些信息,并采取访问控制、脱敏展示和审计记录等措施保护数据安全。", "status": 1, "statusText": "已发布", "effectiveTime": "2026-06-08T21:22:52", "createTime": "2026-06-08T21:22:52", "updateTime": "2026-06-08T21:22:52"}]} | PASS | P0 | GET /legal-agreement/current | -| USER-003 | 普通用户 | 登录 | 普通用户账号已创建并提交当前协议版本 | 账号密码登录用户端 | 返回 accessToken 并写入协议同意记录 | {"code": 200, "message": "操作成功", "data": {"accessToken": "***", "refreshToken": "***", "userInfo": {"id": "322364866830970880", "account": "fd0608212248customer", "nickname": "fd0608212248 customer", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "type": 0, "shopId": "322364862611501056", "shopName": "fd0608212248 normal shop edited", "shopAuthorizationExpireTime": "2026-07-21T23:59:59", "shopAuthorizationExpired": false, "shopIds": ["322364862611501056"], "shopNames": ["fd0608212248 normal shop edited"], "createTime": "2026-06-08T21:22:54"}, "needSetPassword": false}} | PASS | P0 | POST /user/login | -| USER-003B | 普通用户 | 协议留痕 | 用户登录成功 | 查询 t_user_agreement_consent | 至少 2 条同意记录 | consent_count=2 | PASS | P1 | DB t_user_agreement_consent | -| ADMIN-012 | 店长 | 作品管理 | normal 门店和设计师可用 | 创建可预约作品 | 返回 productId 且用户端可见 | {"code": 200, "message": "操作成功", "data": "322364872862380032"} | PASS | - | POST /admin/product/create | -| USER-004 | 普通用户 | 浏览 | 作品已上架 | 匿名查询作品详情 | 详情返回数据 | {"code": 200, "message": "操作成功", "data": {"id": "322364872862380032", "shopId": "322364862611501056", "shopName": "fd0608212248 normal shop edited", "title": "fd0608212248 主链路款式", "description": "全链路测试作品", "targetAudience": "通勤", "precautions": "无", "imageFileIds": "", "imageUrls": [], "price": 128.0, "tags": "法式,测试", "tagList": [], "tagInfos": [], "likeCount": 0, "collectCount": 0, "approximateDuration": "60分钟", "serviceDurationMinutes": "60", "bookableArtists": "322364865383936000", "availableBookableArtistCount": 1, "bookableArtistRestricted": true, "availableCoupons": "", "createTime": "2026-06-08T21:22:55", "updateTime": "2026-06-08T21:22:55"}} | PASS | - | GET /product/get/322364872862380032 | -| USER-004B | 普通用户 | 浏览 | 作品已上架 | 匿名查询门店作品列表 | 列表包含新建作品 | {"code": 200, "message": "操作成功", "data": [{"id": "322364872862380032", "shopId": "322364862611501056", "shopName": "fd0608212248 normal shop edited", "title": "fd0608212248 主链路款式", "description": "全链路测试作品", "targetAudience": "通勤", "precautions": "无", "imageFileIds": "", "imageUrls": [], "price": 128.0, "tags": "法式,测试", "tagList": [], "tagInfos": [], "likeCount": 0, "collectCount": 0, "approximateDuration": "60分钟", "serviceDurationMinutes": "60", "bookableArtists": "322364865383936000", "availableBookableArtistCount": 1, "bookableArtistRestricted": true, "availableCoupons": "", "createTime": "2026-06-08T21:22:55", "updateTime": "2026-06-08T21:22:55"}]} | PASS | P1 | GET /product/list/shop/322364862611501056 | -| USER-005 | 普通用户 | 收藏 | 用户已登录,作品存在 | 收藏作品 | 收藏成功 | {"code": 200, "message": "操作成功", "data": "ok"} | PASS | - | POST /wishlist/add | -| USER-005B | 普通用户 | 收藏 | 作品已收藏 | 查询收藏状态 | 返回已收藏 | {"code": 200, "message": "操作成功", "data": true} | PASS | - | GET /wishlist/check | -| USER-005C | 普通用户 | 购物车 | 用户已登录,作品存在 | 加入购物车 | 购物车新增该作品,供结算/下单使用 | {"code": 200, "message": "操作成功", "data": null} | PASS | - | POST /cart/add | -| USER-005D | 普通用户 | 购物车 | 作品已加入购物车 | 查询购物车列表 | 列表包含新建作品及可预约设计师 | {"code": 200, "message": "操作成功", "data": [{"id": "322364873650909184", "productId": "322364872862380032", "shopId": "322364862611501056", "productTitle": "fd0608212248 主链路款式", "productImage": null, "price": 128.0, "quantity": 1, "totalPrice": 128.0, "tags": "法式,测试", "tagNames": "", "approximateDuration": "60分钟", "bookableArtists": "322364865383936000", "availableBookableArtistCount": 1, "bookableArtistRestricted": true, "availableArtists": [{"id": "322364865383936000", "name": "fd0608212248 artistone", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "userType": 3, "roleLabel": "美甲师", "participateProduction": false}]}]} | PASS | - | GET /cart/list | -| USER-006 | 普通用户 | 结算预览 | 用户已登录,作品可预约 | checkout-preview | 返回金额和可用优惠信息 | {"code": 200, "message": "操作成功", "data": {"subtotalAmount": 128.0, "savedAmount": 0.0, "payableAmount": 128.0, "bestCoupon": null, "availableCoupons": [], "unavailableCoupons": [{"id": "322364862628278272", "couponId": "322364862628278272", "userCouponId": null, "sourceType": "SYSTEM_VIP", "couponName": "青铜VIP自动95折券", "couponType": 1, "couponTypeName": "折扣券", "discountValue": 9.5, "minAmount": 0.0, "reduceAmount": 0.0, "discountAmount": 0.0, "available": false, "best": false, "vipAuto": true, "displayText": "VIP自动优惠:青铜VIP自动95折券,9.5折", "savingText": null, "unavailableReason": "本单商品暂不适用", "startTime": "2026-06-08T21:22:52", "endTime": "2099-12-31T23:59:59"}, {"id": "322364862640861184", "couponId": "322364862640861184", "userCouponId": null, "sourceType": "SYSTEM_VIP", "couponName": "白银VIP自动92折券", "couponType": 1, "couponTypeName": "折扣券", "discountValue": 9.2, "minAmount": 0.0, "reduceAmount": 0.0, "discountAmount": 0.0, "available": false, "best": false, "vipAuto": true, "displayText": "VIP自动优惠:白银VIP自动92折券,9.2折", "savingText": null, "unavailableReason": "本单商品暂不适用", "startTime": "2026-06-08T21:22:52", "endTime": "2099-12-31T23:59:59"}, {"id": "322364862653444096", "couponId": "322364862653444096", "userCouponId": null, "sourceType": "SYSTEM_VIP", "couponName": "黄金VIP自动90折券", "couponType": 1, "couponTypeName": "折扣券", "discountValue": 9.0, "minAmount": 0.0, "reduceAmount": 0.0, "discountAmount": 0.0, "available": false, "best": false, "vipAuto": true, "displayText": "VIP自动优惠:黄金VIP自动90折券,9折", "savingText": null, "unavailableReason": "本单商品暂不适用", "startTime": "2026-06-08T21:22:52" | PASS | - | POST /order/checkout-preview | -| USER-007 | 普通用户 | 下单 | 用户已登录,作品/设计师/排班可用 | 创建订单 | 返回订单、订单项,DB 生成 t_order/t_order_item | {"code": 200, "message": "操作成功", "data": {"id": "322364874066145281", "orderNo": "ORD322364874066145280", "userId": "322364866830970880", "shopId": "322364862611501056", "shopName": "fd0608212248 normal shop edited", "totalAmount": 128.0, "actualAmount": 128.0, "couponId": null, "userCouponId": null, "couponSourceType": null, "couponName": null, "paymentStatus": "UNPAID", "payAmount": 128.0, "paidAmount": 0, "payTime": null, "paymentMethod": null, "paymentOrderNo": null, "refundStatus": null, "customerRemark": "fd0608212248", "quoteStatus": "CONFIRMING", "quoteStatusText": "确认价格中", "quoteUserConfirmed": false, "quoteShopConfirmed": false, "quoteExpireTime": "2026-06-09T21:22:55.2273918", "quoteConfirmedTime": null, "quoteMessages": [{"id": "322364874087116800", "orderId": "322364874066145281", "actorId": "322364866830970880", "actorType": "USER", "actorTypeText": "用户", "action": "CREATE", "actionText": "发起询价预约", "remark": "fd0608212248", "items": [{"orderItemId": "322364874070339584", "productId": "322364872862380032", "productTitle": "fd0608212248 主链路款式", "quantity": 1, "referencePrice": 128.0, "quotedPrice": null, "confirmedPrice": null}], "createTime": "2026-06-08T21:22:55"}], "customerNickname": "fd0608212248 customer", "customerPhoneMasked": "191****0004", "artistOrderSource": null, "artistOrderSourceText": null, "status": 0, "statusText": "确认价格中", "createTime": null, "items": [{"id": "322364874070339584", "productId": "322364872862380032", "productTitle": "fd0608212248 主链路款式", "productImage": null, "quantity": 1, "price": 128.0, "referencePrice": 128.0, "quotedPrice": | PASS | - | POST /order/create | -| USER-007B | 普通用户 | DB核验 | 订单创建成功 | 查询 t_order/t_order_item | 订单项设计师和预约时间一致 | {"status": 0, "quote_status": "CONFIRMING", "artist_id": 322364865383936000, "appointment_time": "2026-06-10 10:00:00"} | PASS | P0 | DB t_order + t_order_item | -| EDGE-001A | 普通用户 | 预约冲突 | 首单已创建且购物车已被清空 | 重新加入同作品以验证重复预约冲突 | 加购成功,下一步应进入预约冲突校验 | {"code": 200, "message": "操作成功", "data": null} | PASS | - | POST /cart/add | -| EDGE-001 | 普通用户 | 预约冲突 | 已有同设计师同时间订单占用 | 重复提交同时间预约 | 应拦截重复占用/冲突或操作幂等保护 | {"code": 200, "message": "操作成功", "data": {"id": "322364874519130113", "orderNo": "ORD322364874519130112", "userId": "322364866830970880", "shopId": "322364862611501056", "shopName": "fd0608212248 normal shop edited", "totalAmount": 128.0, "actualAmount": 128.0, "couponId": null, "userCouponId": null, "couponSourceType": null, "couponName": null, "paymentStatus": "UNPAID", "payAmount": 128.0, "paidAmount": 0, "payTime": null, "paymentMethod": null, "paymentOrderNo": null, "refundStatus": null, "customerRemark": "fd0608212248", "quoteStatus": "CONFIRMING", "quoteStatusText": "确认价格中", "quoteUserConfirmed": false, "quoteShopConfirmed": false, "quoteExpireTime": "2026-06-09T21:22:55.3353326", "quoteConfirmedTime": null, "quoteMessages": [{"id": "322364874540101632", "orderId": "322364874519130113", "actorId": "322364866830970880", "actorType": "USER", "actorTypeText": "用户", "action": "CREATE", "actionText": "发起询价预约", "remark": "fd0608212248", "items": [{"orderItemId": "322364874523324416", "productId": "322364872862380032", "productTitle": "fd0608212248 主链路款式", "quantity": 1, "referencePrice": 128.0, "quotedPrice": null, "confirmedPrice": null}], "createTime": "2026-06-08T21:22:55"}], "customerNickname": "fd0608212248 customer", "customerPhoneMasked": "191****0004", "artistOrderSource": null, "artistOrderSourceText": null, "status": 0, "statusText": "确认价格中", "createTime": null, "items": [{"id": "322364874523324416", "productId": "322364872862380032", "productTitle": "fd0608212248 主链路款式", "productImage": null, "quantity": 1, "price": 128.0, "referencePrice": 128.0, "quotedPrice": | FAIL | P0 | POST /order/create duplicate | -| LINK-001 | 店长 | 报价联动 | 用户订单已创建 | 店长提交报价 | 订单 quote_status 更新为 WAIT_USER/PROCESSING | {"code": 200, "message": "操作成功", "data": {"id": "322364874066145281", "orderNo": "ORD322364874066145280", "userId": "322364866830970880", "shopId": "322364862611501056", "shopName": "fd0608212248 normal shop edited", "totalAmount": 128.0, "actualAmount": 128.0, "couponId": "0", "userCouponId": null, "couponSourceType": null, "couponName": null, "paymentStatus": "UNPAID", "payAmount": 128.0, "paidAmount": 0.0, "payTime": null, "paymentMethod": null, "paymentOrderNo": null, "refundStatus": "NONE", "customerRemark": "fd0608212248", "quoteStatus": "CONFIRMING", "quoteStatusText": "确认价格中", "quoteUserConfirmed": false, "quoteShopConfirmed": true, "quoteExpireTime": "2026-06-09T21:22:55", "quoteConfirmedTime": null, "quoteMessages": [{"id": "322364874087116800", "orderId": "322364874066145281", "actorId": "322364866830970880", "actorType": "USER", "actorTypeText": "用户", "action": "CREATE", "actionText": "发起询价预约", "remark": "fd0608212248", "items": [{"orderItemId": "322364874070339584", "productId": "322364872862380032", "productTitle": "fd0608212248 主链路款式", "quantity": 1, "referencePrice": 128.0, "quotedPrice": 138.0, "confirmedPrice": null}], "createTime": "2026-06-08T21:22:55"}, {"id": "322364874913394688", "orderId": "322364874066145281", "actorId": "322364864406663168", "actorType": "SHOP", "actorTypeText": "门店", "action": "SHOP_QUOTE", "actionText": "门店报价", "remark": "店长报价", "items": [{"orderItemId": "322364874070339584", "productId": "322364872862380032", "productTitle": "fd0608212248 主链路款式", "quantity": 1, "referencePrice": 128.0, "quotedPrice": 138.0, "confirmedPrice": nul | PASS | - | POST /admin/order/322364874066145281/quote | -| LINK-002 | 店长 | 报价联动 | 店长已提交报价 | 店长确认报价 | 订单 quote_shop_confirmed=1 | {"code": 200, "message": "操作成功", "data": {"id": "322364874066145281", "orderNo": "ORD322364874066145280", "userId": "322364866830970880", "shopId": "322364862611501056", "shopName": "fd0608212248 normal shop edited", "totalAmount": 128.0, "actualAmount": 128.0, "couponId": "0", "userCouponId": null, "couponSourceType": null, "couponName": null, "paymentStatus": "UNPAID", "payAmount": 128.0, "paidAmount": 0.0, "payTime": null, "paymentMethod": null, "paymentOrderNo": null, "refundStatus": "NONE", "customerRemark": "fd0608212248", "quoteStatus": "CONFIRMING", "quoteStatusText": "确认价格中", "quoteUserConfirmed": false, "quoteShopConfirmed": true, "quoteExpireTime": "2026-06-09T21:22:55", "quoteConfirmedTime": null, "quoteMessages": [{"id": "322364874087116800", "orderId": "322364874066145281", "actorId": "322364866830970880", "actorType": "USER", "actorTypeText": "用户", "action": "CREATE", "actionText": "发起询价预约", "remark": "fd0608212248", "items": [{"orderItemId": "322364874070339584", "productId": "322364872862380032", "productTitle": "fd0608212248 主链路款式", "quantity": 1, "referencePrice": 128.0, "quotedPrice": 138.0, "confirmedPrice": null}], "createTime": "2026-06-08T21:22:55"}, {"id": "322364874913394688", "orderId": "322364874066145281", "actorId": "322364864406663168", "actorType": "SHOP", "actorTypeText": "门店", "action": "SHOP_QUOTE", "actionText": "门店报价", "remark": "店长报价", "items": [{"orderItemId": "322364874070339584", "productId": "322364872862380032", "productTitle": "fd0608212248 主链路款式", "quantity": 1, "referencePrice": 128.0, "quotedPrice": 138.0, "confirmedPrice": nul | PASS | - | PUT /admin/order/322364874066145281/quote/confirm | -| LINK-003 | 普通用户 | 报价联动 | 店长已确认报价 | 用户确认报价 | 订单 quote_user_confirmed=1,并生成预约占用 | {"code": 200, "message": "操作成功", "data": {"id": "322364874066145281", "orderNo": "ORD322364874066145280", "userId": "322364866830970880", "shopId": "322364862611501056", "shopName": "fd0608212248 normal shop edited", "totalAmount": 138.0, "actualAmount": 138.0, "couponId": "0", "userCouponId": null, "couponSourceType": null, "couponName": null, "paymentStatus": "UNPAID", "payAmount": 138.0, "paidAmount": 0.0, "payTime": null, "paymentMethod": null, "paymentOrderNo": null, "refundStatus": "NONE", "customerRemark": "fd0608212248", "quoteStatus": "CONFIRMED", "quoteStatusText": "价格已确认", "quoteUserConfirmed": true, "quoteShopConfirmed": true, "quoteExpireTime": "2026-06-09T21:22:55", "quoteConfirmedTime": "2026-06-08T21:22:56", "quoteMessages": [{"id": "322364874087116800", "orderId": "322364874066145281", "actorId": "322364866830970880", "actorType": "USER", "actorTypeText": "用户", "action": "CREATE", "actionText": "发起询价预约", "remark": "fd0608212248", "items": [{"orderItemId": "322364874070339584", "productId": "322364872862380032", "productTitle": "fd0608212248 主链路款式", "quantity": 1, "referencePrice": 128.0, "quotedPrice": 138.0, "confirmedPrice": 138.0}], "createTime": "2026-06-08T21:22:55"}, {"id": "322364874913394688", "orderId": "322364874066145281", "actorId": "322364864406663168", "actorType": "SHOP", "actorTypeText": "门店", "action": "SHOP_QUOTE", "actionText": "门店报价", "remark": "店长报价", "items": [{"orderItemId": "322364874070339584", "productId": "322364872862380032", "productTitle": "fd0608212248 主链路款式", "quantity": 1, "referencePrice": 128.0, "quotedPrice": 138.0, "conf | PASS | - | PUT /order/322364874066145281/quote/confirm | -| LINK-003B | 普通用户/店长 | DB联动 | 用户确认报价后 | 查询订单项和预约占用 | 报价确认、预约占用生成且时间/设计师一致 | {"quote_status": "CONFIRMED", "quote_user_confirmed": 1, "quote_shop_confirmed": 1, "confirmed_price": "138.00", "ar_status": "CONFIRMED", "artist_id": 322364865383936000, "appointment_start_time": "2026-06-10 10:00:00", "appointment_end_time": "2026-06-10 11:00:00"} | PASS | P0 | DB t_order/t_order_item/t_appointment_reservation | -| MANAGER-002 | 指尖管理师 | 日/周/月规划 | 订单已确认报价并生成占用 | 查询 planning calendar 日视图 | 返回包含该预约/单量 | {"code": 200, "message": "操作成功", "data": {"businessStartTime": "09:00", "businessEndTime": "21:00", "slotMinutes": 30, "artists": [{"id": "322364865383936000", "name": "fd0608212248 artistone", "shortName": "F", "phone": "19100000002", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "color": "#D7A86E", "status": 1, "statusText": "可预约", "workStartTime": "09:00", "workEndTime": "21:00", "rangeCount": 2}], "schedules": [{"id": "322364871461482496", "artistId": "322364865383936000", "artistName": "fd0608212248 artistone", "date": "2026-06-10", "startTime": "09:00", "endTime": "21:00", "capacity": 1, "status": 1, "statusText": "可预约", "remark": "fd0608212248"}], "appointments": [{"orderId": "322364874066145281", "orderNo": "ORD322364874066145280", "orderItemId": "322364874070339584", "customerId": "322364866830970880", "customerName": "fd0608212248 customer", "customerPhone": "19100000004", "productId": "322364872862380032", "productTitle": "fd0608212248 主链路款式", "artistId": "322364865383936000", "artistName": "fd0608212248 artistone", "artistColor": "#D7A86E", "date": "2026-06-10", "startTime": "2026-06-10 10:00:00", "endTime": "2026-06-10 11:00:00", "startMinute": 600, "durationMinutes": 60, "status": 1, "statusText": "已确认", "amount": 138.0, "remark": "fd0608212248"}, {"orderId": "322364874519130113", "orderNo": "ORD322364874519130112", "orderItemId": "322364874523324416", "customerId": "322364866830970880", "customerName": "fd0608212248 customer", "customerPhone": "19100000004", "productId": "322364872862380032", "productTitle": "fd0608212248 主链 | PASS | P0 | GET /admin/planning/calendar | -| MANAGER-003 | 指尖管理师 | 改时间/改派 | 订单预约已存在 | 改派到 artisttwo 并改到 11:00 | 订单项和预约占用同步更新 | {"code": 200, "message": "操作成功", "data": {"orderId": "322364874066145281", "orderNo": "ORD322364874066145280", "orderItemId": "322364874070339584", "customerId": "322364866830970880", "customerName": "fd0608212248 customer", "customerPhone": "19100000004", "productId": "322364872862380032", "productTitle": "fd0608212248 主链路款式", "artistId": "322364866101161984", "artistName": "fd0608212248 artisttwo", "artistColor": "#D7A86E", "date": "2026-06-10", "startTime": "2026-06-10 11:00:00", "endTime": "2026-06-10 12:00:00", "startMinute": 660, "durationMinutes": 60, "status": 1, "statusText": "已确认", "amount": 138.0, "remark": "fd0608212248"}} | PASS | - | PUT /admin/planning/appointments/322364874070339584/time-artist | -| MANAGER-003B | 指尖管理师 | DB联动 | 改派接口已执行 | 查询订单项/预约占用 | artist_id 和 appointment_time 均同步为新值 | {"artist_id": 322364866101161984, "appointment_time": "2026-06-10 11:00:00", "ar_artist": 322364866101161984, "appointment_start_time": "2026-06-10 11:00:00"} | PASS | P0 | DB t_order_item/t_appointment_reservation | -| ARTIST-002 | 设计师/美甲师 | 本人订单 | 订单已改派到 artisttwo | artistone 查询本人订单列表 | 不能看到已改派给他人的订单 | {"code": 200, "message": "操作成功", "data": {"list": [{"id": "322364874519130113", "orderNo": "ORD322364874519130112", "userId": "322364866830970880", "shopId": "322364862611501056", "shopName": "fd0608212248 normal shop edited", "totalAmount": 128.0, "actualAmount": 128.0, "couponId": "0", "userCouponId": null, "couponSourceType": null, "couponName": null, "paymentStatus": "UNPAID", "payAmount": 128.0, "paidAmount": 0.0, "payTime": null, "paymentMethod": null, "paymentOrderNo": null, "refundStatus": "NONE", "customerRemark": "fd0608212248", "quoteStatus": "CONFIRMING", "quoteStatusText": "确认价格中", "quoteUserConfirmed": false, "quoteShopConfirmed": false, "quoteExpireTime": "2026-06-09T21:22:55", "quoteConfirmedTime": null, "quoteMessages": [{"id": "322364874540101632", "orderId": "322364874519130113", "actorId": "322364866830970880", "actorType": "USER", "actorTypeText": "用户", "action": "CREATE", "actionText": "发起询价预约", "remark": "fd0608212248", "items": [{"orderItemId": "322364874523324416", "productId": "322364872862380032", "productTitle": "fd0608212248 主链路款式", "quantity": 1, "referencePrice": 128.0, "quotedPrice": null, "confirmedPrice": null}], "createTime": "2026-06-08T21:22:55"}], "customerNickname": "fd0608212248 customer", "customerPhoneMasked": "191****0004", "artistOrderSource": null, "artistOrderSourceText": null, "status": 0, "statusText": "确认价格中", "createTime": "2026-06-08T21:22:55", "items": [{"id": "322364874523324416", "productId": "322364872862380032", "productTitle": "fd0608212248 主链路款式", "productImage": null, "quantity": 1, "price": 128.0, "referencePrice": | PASS | P0 | GET /admin/order/list as artistone | -| LINK-004 | 指尖管理师 | 新建预约联动 | 客户/作品/设计师存在 | 规划端新建预约 | 后台订单、订单项、预约占用同步生成 | {"code": 200, "message": "操作成功", "data": {"orderId": "322364876758888449", "orderNo": "ORD322364876758888448", "orderItemId": "322364876767277056", "customerId": "322364866830970880", "customerName": "fd0608212248 customer", "customerPhone": "19100000004", "productId": "322364872862380032", "productTitle": "fd0608212248 主链路款式", "artistId": "322364865383936000", "artistName": "fd0608212248 artistone", "artistColor": "#D7A86E", "date": "2026-06-11", "startTime": "2026-06-11 14:00:00", "endTime": "2026-06-11 15:00:00", "startMinute": 840, "durationMinutes": 60, "status": 1, "statusText": "已确认", "amount": 128.0, "remark": "fd0608212248 planning"}} | PASS | - | POST /admin/planning/appointments | -| LINK-004B | 指尖管理师/后台 | DB联动 | 规划端新建预约成功 | 查询 t_order/t_order_item/t_appointment_reservation | 三表同步生成且有关联 | {"order_id": 322364876758888449, "item_id": 322364876767277056, "reservation_id": 322364876784054272, "status": "CONFIRMED"} | PASS | P0 | DB order/item/reservation | -| LINK-005 | 后台店长 | 取消联动 | 规划端预约已生成 | 用户端取消订单 | 预约占用释放/状态变更 | {"code": 200, "message": "操作成功", "data": null} | PASS | - | PUT /order/cancel/322364876758888449 | -| LINK-005B | 后台/管理师 | DB联动 | 取消接口已执行 | 查询订单和预约占用 | 订单取消且预约不再 active | {"status": 3, "ar_status": "RELEASED", "ar_deleted": 1} | PASS | P0 | DB t_order/t_appointment_reservation | -| PERM-001 | 后台店长 | 跨店隔离 | other 店长登录 other 门店 | 请求 normal 门店作品列表 | 应无权查看或返回本店空列表,不泄露 normal 数据 | {"code": 200, "message": "操作成功", "data": {"list": [], "total": "0", "page": 1, "size": 20}} | PASS | P0 | GET /admin/product/list?shopId=normal as other manager | -| EDGE-002 | 平台管理员 | 停用店铺 | disabled 门店为停用 | 尝试给停用店铺创建店长 | 应拦截并提示店铺不可用/冻结 | {"code": 500, "message": "所属店铺不存在或已失效", "data": null} | PASS | P1 | POST /admin/user/create disabled shop | -| EDGE-003 | 未登录用户 | 鉴权健壮性 | 无 token | 直接调用写接口下单 | 返回 401,不创建订单 | {"code": 401, "message": "未提供认证Token"} | PASS | P0 | POST /order/create without token | -| EDGE-004 | 过期/错误 token | 鉴权健壮性 | 错误 token | 调用需登录 GET 接口 | 返回 401/403 | HTTP 401, {"code":401,"message":"Token无效或已过期"} | PASS | P0 | GET /order/list with invalid token | -| PASS-010 | 全角色 | 数据一致性 | 主链路执行后 | 核验核心表计数、孤儿预约、重复占用 | 无孤儿预约、无重复 active 占用 | counts={'t_user': 6, 't_shop': 4, 't_user_shop_binding': 5, 't_nail_artist_info': 2, 't_artist_schedule': 3, 't_product': 1, 't_order': 3, 't_order_item': 3, 't_appointment_reservation': 2, 't_user_agreement_consent': 2}, orphan=0, duplicate=0 | PASS | P0 | DB consistency | -| UI-002 | 小程序端 | 微信开发者工具页面测试 | 当前会话未暴露微信开发者工具自动化入口 | 执行管理师/用户/设计师小程序页面真实点击 | 页面可交互、布局不遮挡 | 工具阻塞:未发现可调用微信开发者工具/小程序 MCP;API+DB 联动已执行 | BLOCKED | P3 | tool unavailable | - -## 失败 / 阻塞项 - -| 用例编号 | 等级 | 状态 | 复现/证据 | -|---|---|---|---| -| ENV-002 | P3 | BLOCKED | HTTP 500 / Nacos dev host reachable; secrets redacted | -| EDGE-001 | P0 | FAIL | {"code": 200, "message": "操作成功", "data": {"id": "322364874519130113", "orderNo": "ORD322364874519130112", "userId": "322364866830970880", "shopId": "322364862611501056", "shopName": "fd0608212248 normal shop edited", "totalAmount": 128.0, "actualAmount": 128.0, "couponId": null, "userCouponId": null, "couponSourceType": null, "couponName": null, "paymentStatus": "UNPAID", "payAmount": 128.0, "paidAmount": 0, "payTime": null, "paymentMethod": null, "paymentOrderNo": null, "refundStatus": null, "customerRemark": "fd0608212248", "quoteStatus": "CONFIRMING", "quoteStatusText": "确认价格中", "quoteUserConfirmed": false, "quoteShopConfirmed": false, "quoteExpireTime": "2026-06-09T21:22:55.3353326", "quoteConfirmedTime": null, "quoteMessages": [{"id": "322364874540101632", "orderId": "322364874519130113", "actorId": "322364866830970880", "actorType": "USER", "actorTypeText": "用户", "action": "CREATE", "actionText": "发起询价预约", "remark": "fd0608212248", "items": [{"orderItemId": "322364874523324416", "productId": "322364872862380032", "productTitle": "fd0608212248 主链路款式", "quantity": 1, "referencePrice": 128.0, "quotedPrice": null, "confirmedPrice": null}], "createTime": "2026-06-08T21:22:55"}], "customerNickname": "fd0608212248 customer", "customerPhoneMasked": "191****0004", "artistOrderSource": null, "artistOrderSourceText": null, "status": 0, "statusText": "确认价格中", "createTime": null, "items": [{"id": "322364874523324416", "productId": "322364872862380032", "productTitle": "fd0608212248 主链路款式", "productImage": null, "quantity": 1, "price": 128.0, "referencePrice": 128.0, "quotedPrice": / POST /order/create duplicate | -| UI-002 | P3 | BLOCKED | 工具阻塞:未发现可调用微信开发者工具/小程序 MCP;API+DB 联动已执行 / tool unavailable | diff --git a/artifacts/full-regression/core_proxy_81.js b/artifacts/full-regression/core_proxy_81.js deleted file mode 100644 index 38611ff8..00000000 --- a/artifacts/full-regression/core_proxy_81.js +++ /dev/null @@ -1,35 +0,0 @@ -const http = require('http'); -const { URL } = require('url'); - -const listenPort = Number(process.env.PROXY_LISTEN_PORT || 81); -const target = new URL(process.env.PROXY_TARGET || 'http://127.0.0.1:18081'); - -const server = http.createServer((clientReq, clientRes) => { - const options = { - protocol: target.protocol, - hostname: target.hostname, - port: target.port, - method: clientReq.method, - path: clientReq.url, - headers: { - ...clientReq.headers, - host: target.host - } - }; - - const proxyReq = http.request(options, proxyRes => { - clientRes.writeHead(proxyRes.statusCode || 502, proxyRes.headers); - proxyRes.pipe(clientRes); - }); - - proxyReq.on('error', error => { - clientRes.writeHead(502, { 'content-type': 'application/json; charset=utf-8' }); - clientRes.end(JSON.stringify({ code: 502, message: error.message })); - }); - - clientReq.pipe(proxyReq); -}); - -server.listen(listenPort, '127.0.0.1', () => { - console.log(`proxy http://127.0.0.1:${listenPort} -> ${target.origin}`); -}); diff --git a/artifacts/full-regression/env_init_fd0608202858.json b/artifacts/full-regression/env_init_fd0608202858.json deleted file mode 100644 index 7c066e9f..00000000 --- a/artifacts/full-regression/env_init_fd0608202858.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "runId": "fd0608202858", - "steps": [], - "mysql": { - "v": "5.7.44", - "ro": 0, - "sro": 0 - }, - "backup": "E:\\yuminail\\artifacts\\full-regression\\nailart_backup_fd0608202858.sql", - "initStatements": 387, - "initErrors": [ - { - "idx": 243, - "error": "ProgrammingError(1064, \"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'expired rows release pending_key for a new request.\\n-- EXPIRED\\n\\n-- =============' at line 1\")", - "sql": "expired rows release pending_key for a new request.\n-- EXPIRED\n\n-- ========================================\n-- vNext operations schema: schedule / reservation / payment / after sale / inventory / campaign / growth\n-- ========================================\n\nCALL sp_add_column_if_not_exists('t_order', 'payment_status', 'varchar(20) NOT NULL DEFAULT ''UNPAID'' COMMENT ''支付状态:UNPAID/PAYING/PAID/REFUNDED''')" - } - ] -} \ No newline at end of file diff --git a/artifacts/full-regression/env_init_fd0608203005.json b/artifacts/full-regression/env_init_fd0608203005.json deleted file mode 100644 index b397e2b3..00000000 --- a/artifacts/full-regression/env_init_fd0608203005.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "runId": "fd0608203005", - "initStatements": 386, - "initErrors": [ - { - "idx": 242, - "error": "ProgrammingError(1064, \"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'expired rows release pending_key for a new request.\\n-- EXPIRED\\n\\n-- =============' at line 1\")", - "sql": "expired rows release pending_key for a new request.\n-- EXPIRED\n\n-- ========================================\n-- vNext operations schema: schedule / reservation / payment / after sale / inventory / campaign / growth\n-- ========================================\n\nCALL sp_add_column_if_not_exists('t_order', 'payment_status', 'varchar(20) NOT NULL DEFAULT ''UNPAID'' COMMENT ''支付状态:UNPAID/PAYING/PAID/REFUNDED''')" - } - ] -} \ No newline at end of file diff --git a/artifacts/full-regression/env_init_fd0608203103.json b/artifacts/full-regression/env_init_fd0608203103.json deleted file mode 100644 index 1966298f..00000000 --- a/artifacts/full-regression/env_init_fd0608203103.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "runId": "fd0608203103", - "initStatements": 386, - "initErrors": [], - "counts": { - "t_user": 1, - "t_shop": 0, - "t_permission": 77, - "t_product": 0, - "t_order": 0, - "t_order_item": 0, - "t_appointment_reservation": 0, - "t_artist_schedule": 0, - "t_nail_artist_info": 0 - } -} \ No newline at end of file diff --git a/artifacts/full-regression/run_full_regression.py b/artifacts/full-regression/run_full_regression.py deleted file mode 100644 index dcf90b16..00000000 --- a/artifacts/full-regression/run_full_regression.py +++ /dev/null @@ -1,1438 +0,0 @@ -import hashlib -import hmac -import json -import random -import re -import sys -import time -import uuid -from datetime import date, datetime, timedelta -from pathlib import Path - -PYDEPS = Path(r"C:\Users\win-2697\AppData\Local\Temp\codex-yuminail-pydeps") -sys.path.insert(0, str(PYDEPS)) - -import openpyxl -import pymysql -import requests - -ROOT = Path(r"E:\yuminail") -ART = ROOT / "artifacts" / "full-regression" -ART.mkdir(parents=True, exist_ok=True) -CORE = "http://127.0.0.1:18081" -RUN_ID = "fd" + datetime.now().strftime("%m%d%H%M%S") -SQL_PATH = ROOT / "YumiNail-Core" / "src" / "main" / "resources" / "files" / "YumiNail.sql" - -CASES = [] -STATE = {"runId": RUN_ID, "baseUrl": CORE, "ids": {}, "tokens": {}, "db": {}} - - -def gen_id(): - return int(time.time() * 1000) * 100000 + random.randint(1000, 99999) - - -def mask_text(text, max_len=900): - if text is None: - return "" - value = str(text) - value = re.sub(r"Bearer\s+[A-Za-z0-9._\-]+", "Bearer ***", value) - value = re.sub( - r'("(?:accessToken|refreshToken|token|password|secret|accessKey|secretKey)"\s*:\s*")[^"]+', - r"\1***", - value, - flags=re.I, - ) - value = re.sub(r"(password=)[^&\s]+", r"\1***", value, flags=re.I) - return value[:max_len] - - -def add_case(cid, role, module, pre, steps, expected, actual, status, priority="-", evidence=""): - CASES.append( - { - "id": cid, - "role": role, - "module": module, - "precondition": pre, - "steps": steps, - "expected": expected, - "actual": mask_text(actual, 1600), - "status": status, - "priority": priority, - "evidence": mask_text(evidence, 1600), - } - ) - - -def read_env(): - workbook_path = "E:\\codex\\docs\\\u5f00\u53d1\u73af\u5883\u670d\u52a1\u4fe1\u606f\u8868.xlsx" - workbook = openpyxl.load_workbook(workbook_path, data_only=True, read_only=True) - env = {} - for sheet in workbook.worksheets: - for row in sheet.iter_rows(values_only=True): - cells = [str(cell).strip() if cell is not None else "" for cell in row] - if len(cells) < 7: - continue - kind = cells[6] - if cells[2] == "192.168.5.15" and cells[3] == "3306" and cells[4] == "root": - env["mysql"] = { - "host": cells[2], - "port": int(cells[3]), - "user": cells[4], - "password": cells[5], - } - elif kind == "redis" and cells[2] == "192.168.5.15": - env["redis"] = {"host": cells[2], "port": int(cells[3]), "password": cells[5]} - elif kind == "mq" and cells[2] == "192.168.5.15": - env["mq"] = {"host": cells[2], "user": cells[4], "password": cells[5]} - elif kind == "minio" and cells[2] == "192.168.5.15": - env["minio"] = {"host": cells[2], "user": cells[4], "password": cells[5]} - elif "nacos" in kind and cells[2].startswith("192.168.5."): - env.setdefault("nacos", []).append( - {"host": cells[2], "port": cells[3], "user": cells[4], "password": cells[5]} - ) - if "mysql" not in env: - raise RuntimeError("dev mysql not found in workbook") - return env - - -ENV = read_env() - - -def mysql_conn(db="nailart"): - return pymysql.connect( - host=ENV["mysql"]["host"], - port=ENV["mysql"]["port"], - user=ENV["mysql"]["user"], - password=ENV["mysql"]["password"], - database=db, - charset="utf8mb4", - autocommit=False, - cursorclass=pymysql.cursors.DictCursor, - ) - - -def mysql_server_conn(): - return pymysql.connect( - host=ENV["mysql"]["host"], - port=ENV["mysql"]["port"], - user=ENV["mysql"]["user"], - password=ENV["mysql"]["password"], - charset="utf8mb4", - autocommit=True, - cursorclass=pymysql.cursors.DictCursor, - ) - - -def split_sql_script(text): - statements = [] - current = [] - delimiter = ";" - for raw_line in text.splitlines(): - line = raw_line.rstrip("\n") - stripped = line.strip() - if not stripped or stripped.startswith("--") or stripped.startswith("#"): - continue - if stripped.upper().startswith("DELIMITER"): - parts = stripped.split() - delimiter = parts[1] if len(parts) > 1 else ";" - continue - current.append(line) - joined = "\n".join(current) - if delimiter == ";": - if stripped.endswith(";"): - statement = joined[:-1].strip() - if statement: - statements.append(statement) - current = [] - elif joined.rstrip().endswith(delimiter): - statement = joined.rstrip()[: -len(delimiter)].strip() - if statement: - statements.append(statement) - current = [] - tail = "\n".join(current).strip() - if tail: - statements.append(tail) - return statements - - -def reset_db(): - sql_text = SQL_PATH.read_text(encoding="utf-8-sig") - statements = split_sql_script(sql_text) - with mysql_server_conn() as conn: - with conn.cursor() as cur: - cur.execute("DROP DATABASE IF EXISTS nailart") - cur.execute("CREATE DATABASE nailart DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci") - errors = [] - with mysql_conn("nailart") as conn: - with conn.cursor() as cur: - for index, statement in enumerate(statements, 1): - try: - cur.execute(statement) - except Exception as exc: - errors.append({"index": index, "sql": statement[:240], "error": str(exc)}) - if len(errors) > 20: - break - if errors: - conn.rollback() - raise RuntimeError(json.dumps(errors[:5], ensure_ascii=False)) - conn.commit() - return len(statements) - - -def db_one(sql, args=None): - with mysql_conn() as conn: - with conn.cursor() as cur: - cur.execute(sql, args or ()) - return cur.fetchone() - - -def db_all(sql, args=None): - with mysql_conn() as conn: - with conn.cursor() as cur: - cur.execute(sql, args or ()) - return cur.fetchall() - - -def db_exec(sql, args=None): - with mysql_conn() as conn: - with conn.cursor() as cur: - cur.execute(sql, args or ()) - lastrowid = cur.lastrowid - conn.commit() - return lastrowid - - -def json_bytes(obj): - if obj is None: - return b"" - return json.dumps(obj, ensure_ascii=False, separators=(",", ":")).encode("utf-8") - - -def canonical_query(params): - if not params: - return "" - pairs = [] - for key in sorted(params.keys()): - value = params[key] - if isinstance(value, (list, tuple)): - values = sorted("" if item is None else str(item) for item in value) - pairs.append(str(key) + "=" + ",".join(values)) - else: - pairs.append(str(key) + "=" + ("" if value is None else str(value))) - return "&".join(pairs) - - -def sign_headers(method, path, token, body_obj=None, params=None): - timestamp = str(int(time.time() * 1000)) - nonce = uuid.uuid4().hex - if body_obj is not None: - payload = json_bytes(body_obj) - elif params: - payload = canonical_query(params).encode("utf-8") - else: - payload = b"" - body_hash = hashlib.sha256(payload).hexdigest() - canonical = "\n".join([method.upper(), path, timestamp, nonce, body_hash]) - signature = hmac.new(token.encode("utf-8"), canonical.encode("utf-8"), hashlib.sha256).hexdigest() - return { - "Authorization": "Bearer " + token, - "X-Timestamp": timestamp, - "X-Nonce": nonce, - "X-Sign-Version": "v1", - "X-Signature": signature, - } - - -def request(method, path, token=None, body=None, params=None, timeout=18): - headers = {} - kwargs = {"timeout": timeout} - if params: - kwargs["params"] = params - if body is not None: - kwargs["data"] = json_bytes(body) - headers["Content-Type"] = "application/json;charset=UTF-8" - if token: - headers.update(sign_headers(method, path, token, body, params)) - kwargs["headers"] = headers - try: - response = requests.request(method, CORE + path, **kwargs) - try: - parsed = response.json() - except Exception: - parsed = {"raw": response.text} - return {"http": response.status_code, "json": parsed, "text": response.text} - except Exception as exc: - return {"http": 0, "json": {"error": str(exc)}, "text": str(exc)} - - -def ok(resp): - return resp.get("http") == 200 and isinstance(resp.get("json"), dict) and resp["json"].get("code") == 200 - - -def data(resp): - return resp.get("json", {}).get("data") if isinstance(resp.get("json"), dict) else None - - -def id_data(resp): - value = data(resp) - if isinstance(value, dict) and "id" in value: - return int(value["id"]) - return int(value) - - -def api_case(cid, role, module, pre, steps, expected, method, path, token=None, body=None, params=None, priority="P1", evidence=""): - resp = request(method, path, token=token, body=body, params=params) - status = "PASS" if ok(resp) else "FAIL" - add_case( - cid, - role, - module, - pre, - steps, - expected, - json.dumps(resp["json"], ensure_ascii=False, default=str), - status, - "-" if status == "PASS" else priority, - evidence or (method + " " + path), - ) - return resp - - -def create_shop(admin_token, suffix, status=1, start_delta=-1, days=30): - start = (date.today() + timedelta(days=start_delta)).isoformat() - expire = (datetime.now() + timedelta(days=start_delta + days)).strftime("%Y-%m-%dT%H:%M:%S") - payload = { - "shopName": f"{RUN_ID} {suffix} shop", - "description": f"{suffix} dev shop", - "address": f"{RUN_ID} road {suffix}", - "businessHours": "09:00-21:00", - "status": status, - "authorizationStartDate": start, - "authorizationDays": days, - "authorizationExpireTime": expire, - "themePrimaryColor": "#1677ff", - "themeSecondaryColor": "#f5f5f5", - "themeAccentColor": "#ff7a45", - "themePageBgColor": "#ffffff", - "themeCardBgColor": "#ffffff", - } - return api_case( - "ADMIN-002-" + suffix, - "平台管理员", - "店铺管理", - "平台管理员已登录", - f"创建{suffix}门店", - "返回门店ID且 t_shop 可查", - "POST", - "/admin/shops/create", - admin_token, - body=payload, - priority="P1", - ) - - -def create_user(admin_token, role_key, shop_id, user_type, phone_suffix, wechat=True): - payload = { - "shopId": shop_id, - "shopIds": [shop_id], - "nickname": f"{RUN_ID} {role_key}", - "account": f"{RUN_ID}{role_key}", - "password": "Aa888888!", - "type": user_type, - "phone": "19" + phone_suffix[-9:], - "contactPhone": "19" + phone_suffix[-9:], - "signature": f"{RUN_ID} signature", - } - if wechat: - payload["wechatId"] = f"wx{RUN_ID}{role_key}" - return api_case( - "ADMIN-007-" + role_key, - "平台管理员", - "账号管理", - "门店已创建", - f"创建{role_key} type={user_type}", - "返回用户ID、默认权限和门店绑定写入", - "POST", - "/admin/user/create", - admin_token, - body=payload, - priority="P1", - ) - - -def try_create_service_user(admin_token, role_key, shop_id, user_type, phone_suffix): - payload = { - "shopId": shop_id, - "shopIds": [shop_id], - "nickname": f"{RUN_ID} {role_key}", - "account": f"{RUN_ID}{role_key}", - "password": "Aa888888!", - "type": user_type, - "phone": "19" + phone_suffix[-9:], - "contactPhone": "19" + phone_suffix[-9:], - "wechatId": f"wx{RUN_ID}{role_key}", - } - return request("POST", "/admin/user/create", token=admin_token, body=payload) - - -def login_admin(account, password, shop_id=None): - body = {"account": account, "password": password, "rememberMe": True} - if shop_id is not None: - body["shopId"] = shop_id - return request("POST", "/admin/auth/login", body=body) - - -def login_user(account, password, shop_id, versions): - body = { - "account": account, - "password": password, - "rememberMe": True, - "shopId": shop_id, - "agreementAccepted": True, - "agreementVersions": versions, - "clientType": "TEST", - } - return request("POST", "/user/login", body=body) - - -def extract_token(resp): - payload = data(resp) or {} - return payload.get("accessToken"), payload.get("userInfo") or {} - - -def assign_all_permissions(user_id): - permissions = db_all("select id from t_permission where is_delete=0") - with mysql_conn() as conn: - with conn.cursor() as cur: - for permission in permissions: - cur.execute( - "select id from t_user_permission where user_id=%s and permission_id=%s limit 1", - (user_id, permission["id"]), - ) - if cur.fetchone(): - continue - cur.execute( - """insert into t_user_permission - (id,user_id,permission_id,create_time,update_time,create_by,update_by,is_delete) - values(%s,%s,%s,NOW(),NOW(),0,0,0)""", - (gen_id(), user_id, permission["id"]), - ) - conn.commit() - - -def seed_nail_artist(user_id, status=1, participate=1): - existing = db_one("select id from t_nail_artist_info where user_id=%s and is_delete=0", (user_id,)) - if existing: - db_exec( - """update t_nail_artist_info - set status=%s, participate_production=%s, work_start_time=%s, work_end_time=%s - where user_id=%s""", - (status, participate, "09:00:00", "21:00:00", user_id), - ) - return existing["id"] - new_id = gen_id() - db_exec( - """insert into t_nail_artist_info - (id,user_id,identity,experience,skills,rating,status,participate_production,work_start_time,work_end_time,portfolio,create_time,update_time,is_delete) - values(%s,%s,%s,3,%s,4.8,%s,%s,%s,%s,%s,NOW(),NOW(),0)""", - (new_id, user_id, "高级设计师", "法式,通勤,延长", status, participate, "09:00:00", "21:00:00", ""), - ) - return new_id - - -def db_counts(): - tables = [ - "t_user", - "t_shop", - "t_user_shop_binding", - "t_nail_artist_info", - "t_artist_schedule", - "t_product", - "t_order", - "t_order_item", - "t_appointment_reservation", - "t_user_agreement_consent", - ] - output = {} - for table in tables: - try: - output[table] = db_one("select count(*) c from " + table)["c"] - except Exception as exc: - output[table] = "ERR " + str(exc) - return output - - -def cell(value): - return str(value).replace("|", "/").replace("\n", "
")[:900] - - -def main(): - try: - health = requests.get(CORE + "/shop/list/simple", timeout=6) - add_case( - "ENV-001", - "环境", - "Core 健康检查", - "Core 18081 已启动", - "GET /shop/list/simple", - "HTTP 200", - f"HTTP {health.status_code}, {mask_text(health.text, 300)}", - "PASS" if health.status_code == 200 else "FAIL", - "P0", - "http://127.0.0.1:18081", - ) - except Exception as exc: - add_case( - "ENV-001", - "环境", - "Core 健康检查", - "Core 18081 已启动", - "GET /shop/list/simple", - "HTTP 200", - str(exc), - "FAIL", - "P0", - "http://127.0.0.1:18081", - ) - - if ENV.get("nacos"): - nacos = ENV["nacos"][0] - try: - response = requests.post( - f"http://{nacos['host']}:{nacos['port']}/nacos/v1/auth/login", - data={"username": nacos["user"].split("/")[0], "password": nacos["password"]}, - timeout=5, - ) - nacos_actual = f"HTTP {response.status_code}" - nacos_status = "PASS" if response.status_code == 200 else "BLOCKED" - except Exception as exc: - nacos_actual = type(exc).__name__ - nacos_status = "BLOCKED" - add_case( - "ENV-002", - "环境", - "Nacos Dev 命名空间", - "仅读开发 Nacos", - "登录 Nacos 读取 YumiNail-Dev", - "成功读取或记录阻塞", - nacos_actual, - nacos_status, - "P3", - "Nacos dev host reachable; secrets redacted", - ) - - statement_count = reset_db() - STATE["db"]["initStatements"] = statement_count - add_case( - "ENV-003", - "环境", - "数据库重建", - "已有备份 nailart_backup_fd0608202858.sql", - "DROP/CREATE nailart 并执行 YumiNail.sql", - "初始化成功且基础权限/管理员存在", - f"初始化语句 {statement_count}, counts={db_counts()}", - "PASS", - "-", - "YumiNail-Core/src/main/resources/files/YumiNail.sql", - ) - - admin_resp = login_admin("xiaowang", "888888") - admin_token, admin_user = extract_token(admin_resp) - STATE["tokens"]["platformAdmin"] = "***" if admin_token else None - add_case( - "ADMIN-001", - "平台管理员", - "登录", - "默认管理员 xiaowang", - "账号密码登录后台", - "返回 type=4 accessToken", - json.dumps(admin_resp["json"], ensure_ascii=False, default=str), - "PASS" if admin_token and admin_user.get("type") == 4 else "FAIL", - "P0", - "POST /admin/auth/login", - ) - if not admin_token: - raise RuntimeError("platform admin login failed") - - normal_id = id_data(create_shop(admin_token, "normal", 1, -1, 30)) - expired_id = id_data(create_shop(admin_token, "expired", 1, -60, 1)) - disabled_id = id_data(create_shop(admin_token, "disabled", 0, -1, 30)) - other_id = id_data(create_shop(admin_token, "other", 1, -1, 30)) - STATE["ids"].update( - {"normalShop": normal_id, "expiredShop": expired_id, "disabledShop": disabled_id, "otherShop": other_id} - ) - - update_payload = { - "shopName": f"{RUN_ID} normal shop edited", - "description": "normal edited", - "address": "Dev 1", - "businessHours": "09:00-21:00", - "status": 1, - "authorizationStartDate": (date.today() - timedelta(days=1)).isoformat(), - "authorizationDays": 45, - "authorizationExpireTime": (datetime.now() + timedelta(days=45)).strftime("%Y-%m-%dT%H:%M:%S"), - "themePrimaryColor": "#1677ff", - "themeSecondaryColor": "#f5f5f5", - "themeAccentColor": "#ff7a45", - "themePageBgColor": "#ffffff", - "themeCardBgColor": "#ffffff", - } - api_case( - "ADMIN-003", - "平台管理员", - "店铺管理", - "normal 门店存在", - "编辑门店资料后查询详情", - "更新成功且详情为新值", - "PUT", - f"/admin/shops/update/{normal_id}", - admin_token, - body=update_payload, - priority="P1", - ) - api_case( - "ADMIN-003B", - "平台管理员", - "店铺管理", - "normal 门店存在", - "查询门店详情", - "返回 normal 门店详情", - "GET", - f"/admin/shops/{normal_id}", - admin_token, - priority="P1", - ) - status_resp = api_case( - "ADMIN-004", - "平台管理员", - "店铺启停", - "disabled 门店存在", - "JSON body 修改门店状态为启用", - "状态更新成功", - "PUT", - f"/admin/shops/status/{disabled_id}", - admin_token, - body={"status": 1}, - priority="P1", - ) - if ok(status_resp): - api_case( - "ADMIN-004B", - "平台管理员", - "店铺启停", - "disabled 门店已启用", - "JSON body 修改门店状态为停用", - "状态更新成功", - "PUT", - f"/admin/shops/status/{disabled_id}", - admin_token, - body={"status": 0}, - priority="P1", - ) - - manager_id = id_data(create_user(admin_token, "manager", normal_id, 2, "100000001", wechat=True)) - artist1_id = id_data(create_user(admin_token, "artistone", normal_id, 3, "100000002", wechat=True)) - artist2_id = id_data(create_user(admin_token, "artisttwo", normal_id, 3, "100000003", wechat=True)) - customer_id = id_data(create_user(admin_token, "customer", normal_id, 0, "100000004", wechat=False)) - other_manager_id = id_data(create_user(admin_token, "othermgr", other_id, 2, "100000005", wechat=True)) - STATE["ids"].update( - { - "manager": manager_id, - "artist1": artist1_id, - "artist2": artist2_id, - "customer": customer_id, - "otherManager": other_manager_id, - } - ) - expired_resp = create_user(admin_token, "expiredmgr", expired_id, 2, "100000006", wechat=True) - expired_text = json.dumps(expired_resp["json"], ensure_ascii=False) - expired_status = "PASS" if (not ok(expired_resp) and ("冻结" in expired_text or "授权" in expired_text)) else "FAIL" - CASES[-1]["status"] = expired_status - CASES[-1]["expected"] = "过期/冻结门店禁止创建可登录店长,返回明确错误" - CASES[-1]["priority"] = "-" if expired_status == "PASS" else "P1" - - for user_id in [manager_id, other_manager_id, artist1_id, artist2_id]: - assign_all_permissions(user_id) - for user_id in [artist1_id, artist2_id]: - seed_nail_artist(user_id, 1, 1) - - manager_resp = login_admin(f"{RUN_ID}manager", "Aa888888!", normal_id) - manager_token, manager_info = extract_token(manager_resp) - add_case( - "MANAGER-001", - "指尖管理师/店长", - "登录", - "manager 账号绑定 normal 门店", - "后台/管理师账号登录并选择门店", - "返回 type=2 shopId=normal", - json.dumps(manager_resp["json"], ensure_ascii=False, default=str), - "PASS" - if manager_token and manager_info.get("type") == 2 and int(manager_info.get("shopId") or 0) == normal_id - else "FAIL", - "P0", - "POST /admin/auth/login", - ) - other_manager_resp = login_admin(f"{RUN_ID}othermgr", "Aa888888!", other_id) - other_manager_token, _ = extract_token(other_manager_resp) - artist_resp = login_admin(f"{RUN_ID}artistone", "Aa888888!", normal_id) - artist_token, artist_info = extract_token(artist_resp) - add_case( - "ARTIST-001", - "设计师/美甲师", - "登录", - "artistone 账号绑定 normal 门店", - "设计师账号登录", - "返回 type=3 shopId=normal", - json.dumps(artist_resp["json"], ensure_ascii=False, default=str), - "PASS" if artist_token and artist_info.get("type") == 3 else "FAIL", - "P0", - "POST /admin/auth/login", - ) - - artist_save = { - "userId": artist1_id, - "identity": "首席设计师", - "experience": 5, - "skills": "法式,渐变,手绘", - "rating": 4.9, - "status": 1, - "participateProduction": 1, - "workStartTime": "09:00:00", - "workEndTime": "21:00:00", - "userType": 3, - "portfolio": "", - "nickname": f"{RUN_ID} artistone", - "shopId": normal_id, - "signature": "detail", - } - api_case( - "ADMIN-008", - "店长", - "设计师资料", - "设计师账号存在", - "保存设计师资料", - "返回保存后的设计师资料", - "POST", - "/admin/nail-artist/save", - manager_token, - body=artist_save, - priority="P1", - ) - appointment_date = (date.today() + timedelta(days=2)).isoformat() - schedule = { - "shopId": normal_id, - "artistId": artist1_id, - "workDate": appointment_date, - "startTime": "09:00:00", - "endTime": "21:00:00", - "slotMinutes": 60, - "capacity": 1, - "status": 1, - "remark": RUN_ID, - } - api_case( - "ADMIN-011", - "店长", - "排班", - "设计师可用", - "保存设计师排班", - "t_artist_schedule 生成记录", - "POST", - "/admin/artist-schedule/save", - manager_token, - body=schedule, - priority="P1", - ) - plan_date = (date.today() + timedelta(days=3)).isoformat() - schedule_plan = dict(schedule) - schedule_plan["workDate"] = plan_date - schedule_plan["remark"] = RUN_ID + "-planning" - api_case( - "ADMIN-011B", - "店长", - "排班", - "规划端新建预约目标日", - "补充规划端目标日期排班", - "t_artist_schedule 生成第二天排班", - "POST", - "/admin/artist-schedule/save", - manager_token, - body=schedule_plan, - priority="P1", - ) - schedule_artist2 = dict(schedule) - schedule_artist2["artistId"] = artist2_id - schedule_artist2["remark"] = RUN_ID + "-move-target" - api_case( - "ADMIN-011C", - "店长", - "排班", - "改派目标设计师", - "给 artisttwo 补充同日排班", - "改派目标日有可用容量", - "POST", - "/admin/artist-schedule/save", - manager_token, - body=schedule_artist2, - priority="P1", - ) - - agreements = request("GET", "/legal-agreement/current") - versions = {} - if ok(agreements): - for item in data(agreements) or []: - versions[item.get("agreementType")] = item.get("version") - add_case( - "USER-001", - "普通用户", - "协议", - "匿名可访问", - "读取当前用户协议版本", - "返回 USER_TERMS 和 PRIVACY_POLICY", - json.dumps(agreements["json"], ensure_ascii=False, default=str), - "PASS" if ok(agreements) and len(versions) >= 2 else "FAIL", - "P0", - "GET /legal-agreement/current", - ) - user_resp = login_user(f"{RUN_ID}customer", "Aa888888!", normal_id, versions) - user_token, user_info = extract_token(user_resp) - add_case( - "USER-003", - "普通用户", - "登录", - "普通用户账号已创建并提交当前协议版本", - "账号密码登录用户端", - "返回 accessToken 并写入协议同意记录", - json.dumps(user_resp["json"], ensure_ascii=False, default=str), - "PASS" if user_token and user_info.get("type") == 0 else "FAIL", - "P0", - "POST /user/login", - ) - consent_count = db_one("select count(*) c from t_user_agreement_consent where user_id=%s", (customer_id,))["c"] - add_case( - "USER-003B", - "普通用户", - "协议留痕", - "用户登录成功", - "查询 t_user_agreement_consent", - "至少 2 条同意记录", - f"consent_count={consent_count}", - "PASS" if consent_count >= 2 else "FAIL", - "P1", - "DB t_user_agreement_consent", - ) - - product_payload = { - "shopId": normal_id, - "title": f"{RUN_ID} 主链路款式", - "description": "全链路测试作品", - "targetAudience": "通勤", - "precautions": "无", - "imageFileIds": "", - "price": "128.00", - "tags": "法式,测试", - "approximateDuration": "60分钟", - "bookableArtists": str(artist1_id), - "availableCoupons": "", - } - product_resp = api_case( - "ADMIN-012", - "店长", - "作品管理", - "normal 门店和设计师可用", - "创建可预约作品", - "返回 productId 且用户端可见", - "POST", - "/admin/product/create", - manager_token, - body=product_payload, - priority="P1", - ) - product_id = id_data(product_resp) if ok(product_resp) else None - STATE["ids"]["product"] = product_id - if product_id: - api_case( - "USER-004", - "普通用户", - "浏览", - "作品已上架", - "匿名查询作品详情", - "详情返回数据", - "GET", - f"/product/get/{product_id}", - priority="P1", - ) - product_list = request("GET", f"/product/list/shop/{normal_id}") - add_case( - "USER-004B", - "普通用户", - "浏览", - "作品已上架", - "匿名查询门店作品列表", - "列表包含新建作品", - json.dumps(product_list["json"], ensure_ascii=False, default=str), - "PASS" if ok(product_list) and str(product_id) in json.dumps(data(product_list), ensure_ascii=False) else "FAIL", - "P1", - f"GET /product/list/shop/{normal_id}", - ) - - order_id = None - order_item_id = None - if user_token and product_id: - api_case( - "USER-005", - "普通用户", - "收藏", - "用户已登录,作品存在", - "收藏作品", - "收藏成功", - "POST", - "/wishlist/add", - user_token, - body={"productId": product_id}, - priority="P2", - ) - api_case( - "USER-005B", - "普通用户", - "收藏", - "作品已收藏", - "查询收藏状态", - "返回已收藏", - "GET", - "/wishlist/check", - user_token, - params={"productId": product_id}, - priority="P2", - ) - api_case( - "USER-005C", - "普通用户", - "购物车", - "用户已登录,作品存在", - "加入购物车", - "购物车新增该作品,供结算/下单使用", - "POST", - "/cart/add", - user_token, - body={"productId": product_id, "quantity": 1}, - priority="P0", - ) - api_case( - "USER-005D", - "普通用户", - "购物车", - "作品已加入购物车", - "查询购物车列表", - "列表包含新建作品及可预约设计师", - "GET", - "/cart/list", - user_token, - priority="P1", - ) - appointment_time = datetime.combine( - date.today() + timedelta(days=2), datetime.strptime("10:00:00", "%H:%M:%S").time() - ).strftime("%Y-%m-%d %H:%M:%S") - order_body = { - "couponSourceType": "NONE", - "remark": RUN_ID, - "items": [ - { - "productId": product_id, - "quantity": 1, - "artistId": artist1_id, - "appointmentTime": appointment_time, - } - ], - } - api_case( - "USER-006", - "普通用户", - "结算预览", - "用户已登录,作品可预约", - "checkout-preview", - "返回金额和可用优惠信息", - "POST", - "/order/checkout-preview", - user_token, - body=order_body, - priority="P1", - ) - order_resp = api_case( - "USER-007", - "普通用户", - "下单", - "用户已登录,作品/设计师/排班可用", - "创建订单", - "返回订单、订单项,DB 生成 t_order/t_order_item", - "POST", - "/order/create", - user_token, - body=order_body, - priority="P0", - ) - if ok(order_resp): - order_payload = data(order_resp) or {} - order_id = int(order_payload.get("id")) - items = order_payload.get("items") or [] - if items: - order_item_id = int(items[0]["id"]) - else: - order_item_id = int(db_one("select id from t_order_item where order_id=%s", (order_id,))["id"]) - STATE["ids"].update({"order": order_id, "orderItem": order_item_id}) - order_row = db_one( - """select o.status,o.quote_status,oi.artist_id,oi.appointment_time - from t_order o join t_order_item oi on oi.order_id=o.id where o.id=%s""", - (order_id,), - ) - add_case( - "USER-007B", - "普通用户", - "DB核验", - "订单创建成功", - "查询 t_order/t_order_item", - "订单项设计师和预约时间一致", - json.dumps(order_row, ensure_ascii=False, default=str), - "PASS" if order_row and int(order_row["artist_id"]) == artist1_id else "FAIL", - "P0", - "DB t_order + t_order_item", - ) - api_case( - "EDGE-001A", - "普通用户", - "预约冲突", - "首单已创建且购物车已被清空", - "重新加入同作品以验证重复预约冲突", - "加购成功,下一步应进入预约冲突校验", - "POST", - "/cart/add", - user_token, - body={"productId": product_id, "quantity": 1}, - priority="P0", - ) - conflict_resp = request("POST", "/order/create", user_token, body=order_body) - conflict_text = json.dumps(conflict_resp["json"], ensure_ascii=False) - add_case( - "EDGE-001", - "普通用户", - "预约冲突", - "已有同设计师同时间订单占用", - "重复提交同时间预约", - "应拦截重复占用/冲突或操作幂等保护", - conflict_text, - "PASS" - if (not ok(conflict_resp) and any(key in conflict_text for key in ["冲突", "重复", "已被预约", "预约"])) - else "FAIL", - "P0", - "POST /order/create duplicate", - ) - quote_body = {"remark": "店长报价", "items": [{"orderItemId": order_item_id, "quotedPrice": "138.00"}]} - api_case( - "LINK-001", - "店长", - "报价联动", - "用户订单已创建", - "店长提交报价", - "订单 quote_status 更新为 WAIT_USER/PROCESSING", - "POST", - f"/admin/order/{order_id}/quote", - manager_token, - body=quote_body, - priority="P0", - ) - api_case( - "LINK-002", - "店长", - "报价联动", - "店长已提交报价", - "店长确认报价", - "订单 quote_shop_confirmed=1", - "PUT", - f"/admin/order/{order_id}/quote/confirm", - manager_token, - priority="P0", - ) - api_case( - "LINK-003", - "普通用户", - "报价联动", - "店长已确认报价", - "用户确认报价", - "订单 quote_user_confirmed=1,并生成预约占用", - "PUT", - f"/order/{order_id}/quote/confirm", - user_token, - priority="P0", - ) - quote_row = db_one( - """select o.quote_status,o.quote_user_confirmed,o.quote_shop_confirmed,oi.confirmed_price, - ar.status ar_status,ar.artist_id,ar.appointment_start_time,ar.appointment_end_time - from t_order o - join t_order_item oi on oi.order_id=o.id - left join t_appointment_reservation ar on ar.order_item_id=oi.id and ar.is_delete=0 - where o.id=%s""", - (order_id,), - ) - add_case( - "LINK-003B", - "普通用户/店长", - "DB联动", - "用户确认报价后", - "查询订单项和预约占用", - "报价确认、预约占用生成且时间/设计师一致", - json.dumps(quote_row, ensure_ascii=False, default=str), - "PASS" if quote_row and quote_row["ar_status"] is not None and int(quote_row["artist_id"]) == artist1_id else "FAIL", - "P0", - "DB t_order/t_order_item/t_appointment_reservation", - ) - calendar_resp = request( - "GET", - "/admin/planning/calendar", - manager_token, - params={"startDate": appointment_date, "endDate": appointment_date, "artistId": artist1_id}, - ) - calendar_text = json.dumps(data(calendar_resp), ensure_ascii=False, default=str) - add_case( - "MANAGER-002", - "指尖管理师", - "日/周/月规划", - "订单已确认报价并生成占用", - "查询 planning calendar 日视图", - "返回包含该预约/单量", - json.dumps(calendar_resp["json"], ensure_ascii=False, default=str), - "PASS" if ok(calendar_resp) and (str(order_id) in calendar_text or str(order_item_id) in calendar_text) else "FAIL", - "P0", - "GET /admin/planning/calendar", - ) - move_date = (date.today() + timedelta(days=2)).isoformat() - move_body = { - "artistId": artist2_id, - "appointmentDate": move_date, - "appointmentTime": "11:00", - "appointmentStartTime": f"{move_date} 11:00:00", - "durationMinutes": 60, - } - api_case( - "MANAGER-003", - "指尖管理师", - "改时间/改派", - "订单预约已存在", - "改派到 artisttwo 并改到 11:00", - "订单项和预约占用同步更新", - "PUT", - f"/admin/planning/appointments/{order_item_id}/time-artist", - manager_token, - body=move_body, - priority="P0", - ) - move_row = db_one( - """select oi.artist_id,oi.appointment_time,ar.artist_id ar_artist,ar.appointment_start_time - from t_order_item oi - left join t_appointment_reservation ar on ar.order_item_id=oi.id and ar.is_delete=0 - where oi.id=%s""", - (order_item_id,), - ) - add_case( - "MANAGER-003B", - "指尖管理师", - "DB联动", - "改派接口已执行", - "查询订单项/预约占用", - "artist_id 和 appointment_time 均同步为新值", - json.dumps(move_row, ensure_ascii=False, default=str), - "PASS" - if move_row and int(move_row["artist_id"]) == artist2_id and int(move_row["ar_artist"]) == artist2_id - else "FAIL", - "P0", - "DB t_order_item/t_appointment_reservation", - ) - artist_list = request("GET", "/admin/order/list", artist_token, params={"page": 1, "size": 20}) if artist_token else {"json": {}} - add_case( - "ARTIST-002", - "设计师/美甲师", - "本人订单", - "订单已改派到 artisttwo", - "artistone 查询本人订单列表", - "不能看到已改派给他人的订单", - json.dumps(artist_list["json"], ensure_ascii=False, default=str), - "PASS" if ok(artist_list) and str(order_id) not in json.dumps(data(artist_list), ensure_ascii=False) else "FAIL", - "P0", - "GET /admin/order/list as artistone", - ) - - if manager_token and product_id: - plan_body = { - "customerUserId": customer_id, - "customerName": f"{RUN_ID} customer", - "phone": "19100000004", - "productId": product_id, - "quantity": 1, - "artistId": artist1_id, - "appointmentDate": plan_date, - "appointmentTime": "14:00", - "appointmentStartTime": f"{plan_date} 14:00:00", - "durationMinutes": 60, - "remark": RUN_ID + " planning", - } - plan_resp = api_case( - "LINK-004", - "指尖管理师", - "新建预约联动", - "客户/作品/设计师存在", - "规划端新建预约", - "后台订单、订单项、预约占用同步生成", - "POST", - "/admin/planning/appointments", - manager_token, - body=plan_body, - priority="P0", - ) - plan_order = None - plan_item = None - if ok(plan_resp): - plan_payload = data(plan_resp) or {} - if isinstance(plan_payload, dict): - raw_item = plan_payload.get("orderItemId") or plan_payload.get("id") or 0 - plan_item = int(raw_item) if raw_item else None - row = db_one("select order_id,id from t_order_item where id=%s", (plan_item,)) if plan_item else None - if not row: - row = db_one( - """select oi.order_id,oi.id - from t_order_item oi join t_order o on o.id=oi.order_id - where o.customer_remark like %s order by oi.create_time desc limit 1""", - ("%" + RUN_ID + " planning%",), - ) - if row: - plan_order = int(row["order_id"]) - plan_item = int(row["id"]) - planning_row = ( - db_one( - """select o.id order_id,oi.id item_id,ar.id reservation_id,ar.status - from t_order o - join t_order_item oi on oi.order_id=o.id - left join t_appointment_reservation ar on ar.order_item_id=oi.id and ar.is_delete=0 - where o.id=%s""", - (plan_order,), - ) - if plan_order - else None - ) - add_case( - "LINK-004B", - "指尖管理师/后台", - "DB联动", - "规划端新建预约成功", - "查询 t_order/t_order_item/t_appointment_reservation", - "三表同步生成且有关联", - json.dumps(planning_row, ensure_ascii=False, default=str), - "PASS" if planning_row and planning_row.get("reservation_id") else "FAIL", - "P0", - "DB order/item/reservation", - ) - if plan_order and user_token: - api_case( - "LINK-005", - "后台店长", - "取消联动", - "规划端预约已生成", - "用户端取消订单", - "预约占用释放/状态变更", - "PUT", - f"/order/cancel/{plan_order}", - user_token, - priority="P0", - ) - cancel_row = db_one( - """select o.status, ar.status ar_status, ar.is_delete ar_deleted - from t_order o left join t_appointment_reservation ar on ar.order_id=o.id - where o.id=%s""", - (plan_order,), - ) - add_case( - "LINK-005B", - "后台/管理师", - "DB联动", - "取消接口已执行", - "查询订单和预约占用", - "订单取消且预约不再 active", - json.dumps(cancel_row, ensure_ascii=False, default=str), - "PASS" - if cancel_row - and int(cancel_row["status"]) == 3 - and (cancel_row.get("ar_status") is None or str(cancel_row["ar_status"]).upper() != "CONFIRMED") - else "FAIL", - "P0", - "DB t_order/t_appointment_reservation", - ) - - if other_manager_token: - other_product_list = request( - "GET", "/admin/product/list", other_manager_token, params={"page": 1, "size": 20, "shopId": normal_id} - ) - other_text = json.dumps(other_product_list["json"], ensure_ascii=False, default=str) - add_case( - "PERM-001", - "后台店长", - "跨店隔离", - "other 店长登录 other 门店", - "请求 normal 门店作品列表", - "应无权查看或返回本店空列表,不泄露 normal 数据", - other_text, - "PASS" if (not ok(other_product_list) or (product_id and str(product_id) not in other_text)) else "FAIL", - "P0", - "GET /admin/product/list?shopId=normal as other manager", - ) - - disabled_manager_resp = try_create_service_user(admin_token, "disabledmgr", disabled_id, 2, "100000007") - disabled_text = json.dumps(disabled_manager_resp["json"], ensure_ascii=False, default=str) - add_case( - "EDGE-002", - "平台管理员", - "停用店铺", - "disabled 门店为停用", - "尝试给停用店铺创建店长", - "应拦截并提示店铺不可用/冻结", - disabled_text, - "PASS" if not ok(disabled_manager_resp) else "FAIL", - "P1", - "POST /admin/user/create disabled shop", - ) - anon_write = request("POST", "/order/create", body={"items": []}) - add_case( - "EDGE-003", - "未登录用户", - "鉴权健壮性", - "无 token", - "直接调用写接口下单", - "返回 401,不创建订单", - json.dumps(anon_write["json"], ensure_ascii=False, default=str), - "PASS" if anon_write["http"] in [401, 403] or anon_write["json"].get("code") in [401, 403] else "FAIL", - "P0", - "POST /order/create without token", - ) - bad_token = requests.get(CORE + "/order/list", headers={"Authorization": "Bearer invalid.token.value"}, timeout=8) - add_case( - "EDGE-004", - "过期/错误 token", - "鉴权健壮性", - "错误 token", - "调用需登录 GET 接口", - "返回 401/403", - f"HTTP {bad_token.status_code}, {mask_text(bad_token.text, 300)}", - "PASS" if bad_token.status_code in [401, 403] else "FAIL", - "P0", - "GET /order/list with invalid token", - ) - - counts = db_counts() - orphan = db_one( - """select count(*) c - from t_appointment_reservation ar - left join t_order_item oi on oi.id=ar.order_item_id - where ar.is_delete=0 and oi.id is null""" - )["c"] - duplicate = db_one( - """select count(*) c from ( - select artist_id, appointment_start_time, appointment_end_time, count(*) n - from t_appointment_reservation - where is_delete=0 and status=1 - group by artist_id, appointment_start_time, appointment_end_time - having n>1 - ) x""" - )["c"] - add_case( - "PASS-010", - "全角色", - "数据一致性", - "主链路执行后", - "核验核心表计数、孤儿预约、重复占用", - "无孤儿预约、无重复 active 占用", - f"counts={counts}, orphan={orphan}, duplicate={duplicate}", - "PASS" if orphan == 0 and duplicate == 0 else "FAIL", - "P0", - "DB consistency", - ) - add_case( - "UI-002", - "小程序端", - "微信开发者工具页面测试", - "当前会话未暴露微信开发者工具自动化入口", - "执行管理师/用户/设计师小程序页面真实点击", - "页面可交互、布局不遮挡", - "工具阻塞:未发现可调用微信开发者工具/小程序 MCP;API+DB 联动已执行", - "BLOCKED", - "P3", - "tool unavailable", - ) - - -def write_reports(): - summary = {"PASS": 0, "FAIL": 0, "BLOCKED": 0} - for case in CASES: - summary[case["status"]] = summary.get(case["status"], 0) + 1 - result = { - "runId": RUN_ID, - "executedAt": datetime.now().isoformat(timespec="seconds"), - "summary": summary, - "state": STATE, - "cases": CASES, - "counts": db_counts(), - } - json_path = ART / f"acceptance_{RUN_ID}.json" - md_path = ART / f"acceptance_{RUN_ID}.md" - json_path.write_text(json.dumps(result, ensure_ascii=False, indent=2, default=str), encoding="utf-8") - - lines = [ - f"# Fingertip Designer 全链路用户视角验收清单 - {RUN_ID}", - "", - f"- 执行时间:{result['executedAt']}", - "- 环境:开发 MySQL 192.168.5.15 / 本地 Core http://127.0.0.1:18081", - "- 数据策略:执行前已重建 nailart,本轮数据均带 runId 前缀;密钥和密码不写入报告。", - "", - "## 汇总", - "", - f"- PASS: {summary.get('PASS', 0)}", - f"- FAIL: {summary.get('FAIL', 0)}", - f"- BLOCKED: {summary.get('BLOCKED', 0)}", - f"- DB counts: {result['counts']}", - "", - "## 验收清单", - "", - "| 用例编号 | 角色 | 模块 | 前置数据 | 操作步骤 | 预期结果 | 实际结果 | 状态 | 缺陷等级 | 证据 |", - "|---|---|---|---|---|---|---|---|---|---|", - ] - for case in CASES: - lines.append( - "| " - + " | ".join( - cell(case[key]) - for key in [ - "id", - "role", - "module", - "precondition", - "steps", - "expected", - "actual", - "status", - "priority", - "evidence", - ] - ) - + " |" - ) - lines.extend(["", "## 失败 / 阻塞项", "", "| 用例编号 | 等级 | 状态 | 复现/证据 |", "|---|---|---|---|"]) - for case in CASES: - if case["status"] != "PASS": - lines.append( - f"| {case['id']} | {case['priority']} | {case['status']} | {cell(case['actual'])} / {cell(case['evidence'])} |" - ) - md_path.write_text("\n".join(lines), encoding="utf-8") - print(json.dumps({"runId": RUN_ID, "summary": summary, "json": str(json_path), "md": str(md_path), "counts": result["counts"]}, ensure_ascii=False, default=str)) - - -if __name__ == "__main__": - try: - main() - finally: - write_reports() diff --git a/artifacts/full-regression/run_web_smoke.ps1 b/artifacts/full-regression/run_web_smoke.ps1 deleted file mode 100644 index eb83e4ed..00000000 --- a/artifacts/full-regression/run_web_smoke.ps1 +++ /dev/null @@ -1,8 +0,0 @@ -$playwrightTemp = "C:\Users\win-2697\AppData\Local\Temp\codex-playwright-smoke" -New-Item -ItemType Directory -Force -Path $playwrightTemp | Out-Null -npm install --prefix $playwrightTemp playwright@latest -if ($LASTEXITCODE -ne 0) { - exit $LASTEXITCODE -} -$env:NODE_PATH = Join-Path $playwrightTemp "node_modules" -node "E:\yuminail\artifacts\full-regression\web_admin_smoke.js" diff --git a/artifacts/full-regression/start_frontend.ps1 b/artifacts/full-regression/start_frontend.ps1 deleted file mode 100644 index ee5ab122..00000000 --- a/artifacts/full-regression/start_frontend.ps1 +++ /dev/null @@ -1,12 +0,0 @@ -$env:VITE_DEV_PROXY_TARGET = "http://127.0.0.1:81" -Remove-Item Env:\VITE_API_BASE_URL -ErrorAction SilentlyContinue -Remove-Item Env:\VITE_ADMIN_API_BASE_URL -ErrorAction SilentlyContinue -$process = Start-Process ` - -FilePath "npm.cmd" ` - -ArgumentList @("run", "dev", "--", "--host", "127.0.0.1", "--port", "3000") ` - -WorkingDirectory "E:\yuminail\YumiNail-Frontend" ` - -RedirectStandardOutput "E:\yuminail\artifacts\full-regression\frontend-3000.out.log" ` - -RedirectStandardError "E:\yuminail\artifacts\full-regression\frontend-3000.err.log" ` - -PassThru ` - -WindowStyle Hidden -$process.Id diff --git a/artifacts/full-regression/web_admin_dashboard_fd0608212248.png b/artifacts/full-regression/web_admin_dashboard_fd0608212248.png deleted file mode 100644 index 8ce03d27..00000000 Binary files a/artifacts/full-regression/web_admin_dashboard_fd0608212248.png and /dev/null differ diff --git a/artifacts/full-regression/web_admin_login_fd0608212248.png b/artifacts/full-regression/web_admin_login_fd0608212248.png deleted file mode 100644 index 5098a1aa..00000000 Binary files a/artifacts/full-regression/web_admin_login_fd0608212248.png and /dev/null differ diff --git a/artifacts/full-regression/web_admin_smoke.js b/artifacts/full-regression/web_admin_smoke.js deleted file mode 100644 index 28237209..00000000 --- a/artifacts/full-regression/web_admin_smoke.js +++ /dev/null @@ -1,84 +0,0 @@ -const fs = require('fs'); -const path = require('path'); - -async function main() { - let chromium; - try { - ({ chromium } = require('playwright')); - } catch (error) { - ({ chromium } = require('@playwright/test')); - } - - const artifactDir = 'E:/yuminail/artifacts/full-regression'; - const runId = 'fd0608212248'; - const resultPath = path.join(artifactDir, `web_smoke_${runId}.json`); - const loginShot = path.join(artifactDir, `web_admin_login_${runId}.png`); - const dashboardShot = path.join(artifactDir, `web_admin_dashboard_${runId}.png`); - const result = { - runId, - url: 'http://127.0.0.1:3000/admin/login', - startedAt: new Date().toISOString(), - status: 'BLOCKED', - screenshots: [], - checks: [], - error: null - }; - - const browser = await chromium.launch({ headless: true }); - const page = await browser.newPage({ viewport: { width: 1366, height: 768 } }); - try { - await page.goto(result.url, { waitUntil: 'networkidle', timeout: 30000 }); - await page.screenshot({ path: loginShot, fullPage: true }); - result.screenshots.push(loginShot); - const loginText = await page.locator('body').innerText({ timeout: 5000 }).catch(() => ''); - result.checks.push({ - name: 'login-page-text', - pass: /登录|账号|密码|Fingertip Designer|后台/.test(loginText), - detail: loginText.slice(0, 1000) - }); - - const inputs = await page.locator('input').count(); - result.checks.push({ name: 'login-input-count', pass: inputs >= 2, detail: `inputs=${inputs}` }); - if (inputs >= 2) { - await page.locator('input').nth(0).fill(`${runId}manager`); - await page.locator('input').nth(1).fill('Aa888888!'); - await page.waitForTimeout(1200); - } - const buttons = await page.locator('button').count(); - result.checks.push({ name: 'login-button-count', pass: buttons >= 1, detail: `buttons=${buttons}` }); - if (buttons >= 1) { - await page.locator('button').filter({ hasText: /登录|Sign/i }).first().click().catch(async () => { - await page.locator('button').first().click(); - }); - } - await page.waitForTimeout(3000); - await page.screenshot({ path: dashboardShot, fullPage: true }); - result.screenshots.push(dashboardShot); - const afterUrl = page.url(); - const dashboardText = await page.locator('body').innerText({ timeout: 5000 }).catch(() => ''); - result.checks.push({ - name: 'after-login-route', - pass: /\/admin(\/|$)|\/dashboard/.test(afterUrl) && !/\/admin\/login$/.test(afterUrl), - detail: afterUrl - }); - result.checks.push({ - name: 'admin-page-content', - pass: /店铺|订单|用户|作品|今日|后台|管理/.test(dashboardText), - detail: dashboardText.slice(0, 1200) - }); - result.status = result.checks.every(check => check.pass) ? 'PASS' : 'FAIL'; - } catch (error) { - result.status = 'BLOCKED'; - result.error = error.stack || String(error); - } finally { - await browser.close(); - result.finishedAt = new Date().toISOString(); - fs.writeFileSync(resultPath, JSON.stringify(result, null, 2), 'utf8'); - console.log(JSON.stringify(result, null, 2)); - } -} - -main().catch(error => { - console.error(error); - process.exit(1); -}); diff --git a/artifacts/full-regression/web_smoke_fd0608212248.json b/artifacts/full-regression/web_smoke_fd0608212248.json deleted file mode 100644 index 4bd11aae..00000000 --- a/artifacts/full-regression/web_smoke_fd0608212248.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "runId": "fd0608212248", - "url": "http://127.0.0.1:3000/admin/login", - "startedAt": "2026-06-08T13:36:38.008Z", - "status": "PASS", - "screenshots": [ - "E:\\yuminail\\artifacts\\full-regression\\web_admin_login_fd0608212248.png", - "E:\\yuminail\\artifacts\\full-regression\\web_admin_dashboard_fd0608212248.png" - ], - "checks": [ - { - "name": "login-page-text", - "pass": true, - "detail": "后台管理系统\n\n欢迎回来,请登录您的账户\n\n用户名\n密码\n登录店铺\n请先输入账号\n登 录\n返回前台" - }, - { - "name": "login-input-count", - "pass": true, - "detail": "inputs=3" - }, - { - "name": "login-button-count", - "pass": true, - "detail": "buttons=1" - }, - { - "name": "after-login-route", - "pass": true, - "detail": "http://127.0.0.1:3000/admin/dashboard" - }, - { - "name": "admin-page-content", - "pass": true, - "detail": "指尖设计师管理台\n首页\n仪表盘\n用户管理\n作品管理\n优惠券管理\n评论管理\n店铺管理\n权限管理\n标签管理\n订单管理\n排班管理\n售后处理\n库存管理\n活动管理\n美甲师管理\n消息发布\n公告管理\nVIP充值配置\nfd0608212248 normal shop edited\nfd0608212248 manager\n仪表盘\n当前店铺:fd0608212248 normal shop edited\n订单总额\n394.00元\n今日订单额\n394.00元\n客户数量\n1\n美甲师数量\n2\n浏览量\n0\n收藏量\n1\n加购量\n0\n下单量\n3\n支付订单\n0\n完成订单\n0\n评价数\n0\n复购数\n0\n经营概览\n近 7 日订单额\n¥394.00\n今日订单数\n3\n近 7 日新增订单\n3\n待处理订单\n2\n已完成订单\n0\n今日新增客户\n1\n近 7 日新增客户\n1\n作品数量\n1\n快捷跳转\n订单管理\n用户管理\n作品管理\n优惠券管理\n消息发布\n美甲师管理\n热门作品\nfd0608212248 主链路款式\n点赞 0 · 收藏 1\n¥128.00\n最近动态\n\n新品上架\n\n新品\"fd0608212248 主链路款式\"已上架\n\n14 分钟前\n\n新用户注册\n\n用户\"fd0608212248 customer\"注册成功\n\n14 分钟前\n\n新用户注册\n\n用户\"fd0608212248 artisttwo\"注册成功\n\n14 分钟前\n\n新用户注册\n\n用户\"fd0608212248 manager\"注册成功\n\n14 分钟前" - } - ], - "error": null, - "finishedAt": "2026-06-08T13:37:16.997Z" -} \ No newline at end of file diff --git a/artifacts/maven/.gitkeep b/artifacts/maven/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/artifacts/planning-month-blocks.png b/artifacts/planning-month-blocks.png deleted file mode 100644 index f32209a1..00000000 Binary files a/artifacts/planning-month-blocks.png and /dev/null differ diff --git a/artifacts/planning-month-count.png b/artifacts/planning-month-count.png deleted file mode 100644 index ba69d6dd..00000000 Binary files a/artifacts/planning-month-count.png and /dev/null differ diff --git a/artifacts/planning-month-rows.png b/artifacts/planning-month-rows.png deleted file mode 100644 index b560dab2..00000000 Binary files a/artifacts/planning-month-rows.png and /dev/null differ diff --git a/artifacts/profile-page-debug.png b/artifacts/profile-page-debug.png deleted file mode 100644 index d9dbf8e1..00000000 Binary files a/artifacts/profile-page-debug.png and /dev/null differ diff --git a/artifacts/real-upload-signed-preview.png b/artifacts/real-upload-signed-preview.png deleted file mode 100644 index 3f739cc2..00000000 Binary files a/artifacts/real-upload-signed-preview.png and /dev/null differ diff --git a/artifacts/schedule-setting.png b/artifacts/schedule-setting.png deleted file mode 100644 index 0a23f455..00000000 Binary files a/artifacts/schedule-setting.png and /dev/null differ