diff --git a/.gitignore b/.gitignore index f83c33bd..f8d2eb62 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,12 @@ # Log file *.log +# Full-regression database backups may contain development user data. +artifacts/full-regression/*backup*.sql + +# Local Codex agent skill mirrors; canonical project skills live under .claude/. +.agents/ + # BlueJ files *.ctxt diff --git a/FingertipManager-Program/app.js b/FingertipManager-Program/app.js index 0343d4d0..1b81623e 100644 --- a/FingertipManager-Program/app.js +++ b/FingertipManager-Program/app.js @@ -3,7 +3,7 @@ const auth = require('./utils/auth') App({ globalData: { appName: '指尖管理师', - shopName: 'Yumi Nail', + shopName: 'Fingertip Designer', userInfo: null }, diff --git a/FingertipManager-Program/pages/appointment-form/index.js b/FingertipManager-Program/pages/appointment-form/index.js index 2ceee872..a4b7f42c 100644 --- a/FingertipManager-Program/pages/appointment-form/index.js +++ b/FingertipManager-Program/pages/appointment-form/index.js @@ -3,6 +3,10 @@ const productsApi = require('../../api/products') const mock = require('../../utils/mock') const dateUtil = require('../../utils/date') +function buildClientRequestId(prefix) { + return `${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}` +} + Page({ data: { form: { @@ -154,7 +158,8 @@ Page({ ...form, productId: Number(form.productId), artistId: Number(form.artistId), - durationMinutes: Number(form.durationMinutes || 0) || undefined + durationMinutes: Number(form.durationMinutes || 0) || undefined, + clientRequestId: buildClientRequestId('manager-appointment') }) wx.redirectTo({ url: `/pages/appointment-detail/index?id=${result.orderItemId}` }) } catch (error) { diff --git a/FingertipManager-Program/pages/profile/index.js b/FingertipManager-Program/pages/profile/index.js index 2952567a..e95d1f64 100644 --- a/FingertipManager-Program/pages/profile/index.js +++ b/FingertipManager-Program/pages/profile/index.js @@ -1,6 +1,6 @@ Page({ data: { - shopName: 'Yumi Nail', + shopName: 'Fingertip Designer', phone: '店长端', menus: [ { title: '店铺设置', url: '/pages/shop-settings/index' }, diff --git a/FingertipManager-Program/pages/register/index.wxml b/FingertipManager-Program/pages/register/index.wxml index 87ea0314..29cc747d 100644 --- a/FingertipManager-Program/pages/register/index.wxml +++ b/FingertipManager-Program/pages/register/index.wxml @@ -21,7 +21,7 @@ 店铺名称 - + diff --git a/FingertipManager-Program/pages/shop-settings/index.js b/FingertipManager-Program/pages/shop-settings/index.js index 0a494a07..e702e87b 100644 --- a/FingertipManager-Program/pages/shop-settings/index.js +++ b/FingertipManager-Program/pages/shop-settings/index.js @@ -1,6 +1,6 @@ Page({ data: { - form: { shopName: 'Yumi Nail', startTime: '10:00', endTime: '22:00', defaultDuration: 60, rule: '必须选择已有作品作为项目来源' } + form: { shopName: 'Fingertip Designer', startTime: '10:00', endTime: '22:00', defaultDuration: 60, rule: '必须选择已有作品作为项目来源' } }, onInput(event) { this.setData({ [`form.${event.currentTarget.dataset.field}`]: event.detail.value }) }, onStartChange(event) { this.setData({ 'form.startTime': event.detail.value }) }, diff --git a/FingertipManager-Program/project.config.json b/FingertipManager-Program/project.config.json index ad6d7bd9..c80c5073 100644 --- a/FingertipManager-Program/project.config.json +++ b/FingertipManager-Program/project.config.json @@ -1,5 +1,5 @@ { - "appid": "wxb6d77f7c07020d51", + "appid": "wxf76dd2d292d5e31c", "compileType": "miniprogram", "libVersion": "3.15.2", "packOptions": { @@ -39,4 +39,4 @@ "simulatorPluginLibVersion": {}, "editorSetting": {}, "testRoot": "minitest/" -} +} \ No newline at end of file diff --git a/FingertipManager-Program/project.private.config.json b/FingertipManager-Program/project.private.config.json index 745dce19..b3839b6f 100644 --- a/FingertipManager-Program/project.private.config.json +++ b/FingertipManager-Program/project.private.config.json @@ -1,7 +1,7 @@ { "libVersion": "3.15.2", "condition": {}, - "projectname": "指尖管理师", + "projectname": "FingertipManager-Program", "setting": { "urlCheck": false, "coverView": false, @@ -19,4 +19,4 @@ "ignoreDevUnusedFiles": true, "bigPackageSizeSupport": false } -} +} \ No newline at end of file diff --git a/WeChatProgram/pages/cart/index.js b/WeChatProgram/pages/cart/index.js index 3b123788..0144d8e7 100644 --- a/WeChatProgram/pages/cart/index.js +++ b/WeChatProgram/pages/cart/index.js @@ -37,6 +37,10 @@ const { parseAppointmentParts } = require('../../utils/format') +function buildClientRequestId(prefix) { + return `${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}` +} + /** * Purpose: getCouponKey supports index.js by holding or executing the get coupon key page or API role. * Usage: import, call, read, or update this function from the owning page/module while preserving the surrounding loading and permission flow. @@ -774,6 +778,7 @@ Page({ await runWithLoading(() => orderApi.createOrder({ couponId: selectedCoupon ? selectedCoupon.id : undefined, couponSourceType: selectedCoupon ? selectedCoupon.sourceType : (this.data.selectedCouponKey === NO_COUPON_KEY ? NO_COUPON_KEY : undefined), + clientRequestId: buildClientRequestId('mini-order'), items: selectedItems.map(item => ({ productId: item.productId, quantity: item.quantity, diff --git a/WeChatProgram/pages/help/index.wxml b/WeChatProgram/pages/help/index.wxml index 357413e1..e98be152 100644 --- a/WeChatProgram/pages/help/index.wxml +++ b/WeChatProgram/pages/help/index.wxml @@ -3,7 +3,7 @@ - YumiNail Support + Fingertip Designer Support 帮助与客�?/text> 订单、预约��售后和账号问题都可以从这里继续处理�?/text> diff --git a/WeChatProgram/pages/home/index.js b/WeChatProgram/pages/home/index.js index dfa8813e..6d0bfea9 100644 --- a/WeChatProgram/pages/home/index.js +++ b/WeChatProgram/pages/home/index.js @@ -59,7 +59,7 @@ Page({ isLoggedIn: false, userInfo: null, navTitle: '游客模式', - greeting: '欢迎来到 Yumi Nail', + greeting: '欢迎来到 Fingertip Designer 指尖设计师', displayName: '先看看门店和作品', searchKeyword: '', bannerImages: [], diff --git a/WeChatProgram/pages/product-detail/index.js b/WeChatProgram/pages/product-detail/index.js index 6555e9eb..316c3904 100644 --- a/WeChatProgram/pages/product-detail/index.js +++ b/WeChatProgram/pages/product-detail/index.js @@ -319,7 +319,7 @@ Page({ onShareAppMessage() { const product = this.data.product || {} return { - title: product.displayTitle || 'YumiNail 美甲款式', + title: product.displayTitle || 'Fingertip Designer 美甲款式', path: `/pages/product-detail/index?id=${product.id || this.data.productId}`, imageUrl: this.data.productImages[0] || DEFAULT_PRODUCT_IMAGE } diff --git a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/aspect/OperationGuardAspect.java b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/aspect/OperationGuardAspect.java index c7d4614f..492254e1 100644 --- a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/aspect/OperationGuardAspect.java +++ b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/aspect/OperationGuardAspect.java @@ -54,7 +54,7 @@ public class OperationGuardAspect { if (operationGuard.strategy() == OperationGuardStrategy.NOOP_IF_DUPLICATE) { return Result.success(); } - return Result.error(operationGuard.message()); + return Result.error(409, operationGuard.message()); } try { diff --git a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/order/dto/OrderDTO.java b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/order/dto/OrderDTO.java index a244fe3a..ab58c62f 100644 --- a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/order/dto/OrderDTO.java +++ b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/order/dto/OrderDTO.java @@ -23,6 +23,7 @@ public class OrderDTO { */ private String couponSourceType; private String remark; + private String clientRequestId; /** * 订单商品列表 diff --git a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/order/service/impl/OrderServiceImpl.java b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/order/service/impl/OrderServiceImpl.java index 7fd1834a..017872c5 100644 --- a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/order/service/impl/OrderServiceImpl.java +++ b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/order/service/impl/OrderServiceImpl.java @@ -38,6 +38,7 @@ import com.xiaowang.yuminailcore.modules.shop.mapper.ShopMapper; import com.xiaowang.yuminailcore.modules.message.mapper.SystemMessageMapper; import com.xiaowang.yuminailcore.modules.marketing.mapper.UserCouponMapper; import com.xiaowang.yuminailcore.modules.user.mapper.UserMapper; +import com.xiaowang.yuminailcore.modules.planning.mapper.AppointmentReservationMapper; import com.xiaowang.yuminailcore.modules.planning.service.AppointmentCapacityService; import com.xiaowang.yuminailcore.modules.integration.service.BusinessEventOutboxService; import com.xiaowang.yuminailcore.modules.marketing.service.CouponService; @@ -416,6 +417,9 @@ public class OrderServiceImpl implements OrderService { @Resource private AppointmentCapacityService appointmentCapacityService; + @Resource + private AppointmentReservationMapper appointmentReservationMapper; + @PreDestroy /** * Run business method `shutdownOrderLockRenewExecutor`. @@ -803,6 +807,18 @@ public class OrderServiceImpl implements OrderService { item.setOrderId(order.getId()); item.setIsDelete(0); orderItemMapper.insert(item); + ProductDO product = productCache.get(item.getProductId()); + long durationMinutes = resolveServiceDurationMinutes(product) * Math.max(1, item.getQuantity() == null ? 1 : item.getQuantity()); + appointmentCapacityService.reservePendingQuoteOrThrow( + order.getId(), + item.getId(), + order.getShopId(), + item.getArtistId(), + product == null ? null : product.getTitle(), + item.getAppointmentTime(), + item.getAppointmentTime() == null ? null : item.getAppointmentTime().plusMinutes(durationMinutes), + trimToNull(orderDTO.getClientRequestId()) + ); } writeQuoteMessage(order.getId(), userId, QUOTE_ACTOR_USER, QUOTE_ACTION_CREATE, order.getCustomerRemark()); @@ -990,6 +1006,24 @@ public class OrderServiceImpl implements OrderService { return; } + Set occupiedSlotKeys = new LinkedHashSet<>(); + for (BookingValidationSlot requestedSlot : requestedSlots) { + int activeOccupancyCount = appointmentReservationMapper.countOverlappingActive( + artistId, + requestedSlot.getStartTime(), + requestedSlot.getEndTime() + ); + if (activeOccupancyCount > 0) { + occupiedSlotKeys.add(bookingSlotKey(requestedSlot)); + issues.add(checkoutIssue( + ISSUE_EXISTING_CONFLICT, + "商品「" + requestedSlot.getProductTitle() + "」的预约时间与美甲师已有预约占用冲突,请重新选择", + requestedSlot.getProductId(), + requestedSlot.getProductTitle() + )); + } + } + List existingAppointments = orderItemMapper.selectActiveAppointmentItemsByArtistId(artistId); if (existingAppointments == null || existingAppointments.isEmpty()) { return; @@ -1010,6 +1044,9 @@ public class OrderServiceImpl implements OrderService { LocalDateTime existingEndTime = existingItem.getAppointmentTime().plusMinutes(existingDurationMinutes); for (BookingValidationSlot requestedSlot : requestedSlots) { + if (occupiedSlotKeys.contains(bookingSlotKey(requestedSlot))) { + continue; + } if (hasOverlap(existingItem.getAppointmentTime(), existingEndTime, requestedSlot.getStartTime(), requestedSlot.getEndTime())) { issues.add(checkoutIssue( ISSUE_EXISTING_CONFLICT, @@ -1022,6 +1059,10 @@ public class OrderServiceImpl implements OrderService { } } + private String bookingSlotKey(BookingValidationSlot requestedSlot) { + return requestedSlot.getProductId() + "|" + requestedSlot.getStartTime() + "|" + requestedSlot.getEndTime(); + } + private ProductDO getProductForBookingCheck(Long productId, Map productCache) { if (productId == null) { return null; @@ -1850,6 +1891,7 @@ public class OrderServiceImpl implements OrderService { order.setQuoteUserConfirmed(0); order.setQuoteShopConfirmed(0); orderMapper.updateById(order); + appointmentCapacityService.releaseByOrder(order.getId()); writeQuoteMessage(order.getId(), 0L, QUOTE_ACTOR_SYSTEM, QUOTE_ACTION_SYSTEM_EXPIRE, "询价预约超过24小时未确认,已自动取消"); expiredCount++; } @@ -2757,7 +2799,7 @@ public class OrderServiceImpl implements OrderService { orderItemMapper.updateById(item); ProductDO product = productCache.get(item.getProductId()); long durationMinutes = resolveServiceDurationMinutes(product) * Math.max(1, item.getQuantity() == null ? 1 : item.getQuantity()); - appointmentCapacityService.reserveOrThrow( + appointmentCapacityService.confirmReservationOrThrow( order.getId(), item.getId(), order.getShopId(), @@ -3354,6 +3396,11 @@ public class OrderServiceImpl implements OrderService { itemVO.setPrice(displayPrice); itemVO.setTotalPrice(displayPrice.multiply(BigDecimal.valueOf(item.getQuantity()))); itemVO.setAppointmentTime(formatAppointmentTime(item.getAppointmentTime())); + String occupancyStatus = resolveOrderItemOccupancyStatus(order); + itemVO.setOccupancyStatus(occupancyStatus); + itemVO.setCanEdit(canEditOrderItem(order)); + itemVO.setCanCancel(canCancelOrderItem(order)); + itemVO.setConflictReason(resolveOrderItemConflictReason(occupancyStatus)); filteredTotal = filteredTotal.add(itemVO.getTotalPrice()); if (item.getArtistId() != null) { @@ -3391,6 +3438,51 @@ public class OrderServiceImpl implements OrderService { return orderVO; } + private String resolveOrderItemOccupancyStatus(OrderDO order) { + if (order == null || order.getStatus() == null) { + return "UNKNOWN"; + } + if (Integer.valueOf(OrderStatus.PRICE_CONFIRMING.getCode()).equals(order.getStatus())) { + return "PENDING_QUOTE"; + } + if (Integer.valueOf(OrderStatus.PENDING_SERVICE.getCode()).equals(order.getStatus())) { + return "CONFIRMED"; + } + if (Integer.valueOf(OrderStatus.CANCELLED.getCode()).equals(order.getStatus())) { + return "CANCELLED"; + } + if (Integer.valueOf(OrderStatus.COMPLETED.getCode()).equals(order.getStatus())) { + return "COMPLETED"; + } + return "UNKNOWN"; + } + + private Boolean canEditOrderItem(OrderDO order) { + if (order == null || order.getStatus() == null) { + return false; + } + return Integer.valueOf(OrderStatus.PRICE_CONFIRMING.getCode()).equals(order.getStatus()) + || Integer.valueOf(OrderStatus.PENDING_SERVICE.getCode()).equals(order.getStatus()); + } + + private Boolean canCancelOrderItem(OrderDO order) { + if (order == null || order.getStatus() == null) { + return false; + } + return Integer.valueOf(OrderStatus.PRICE_CONFIRMING.getCode()).equals(order.getStatus()) + || Integer.valueOf(OrderStatus.PENDING_SERVICE.getCode()).equals(order.getStatus()); + } + + private String resolveOrderItemConflictReason(String occupancyStatus) { + if ("PENDING_QUOTE".equals(occupancyStatus)) { + return "该时段已作为待报价预约保留"; + } + if ("CONFIRMED".equals(occupancyStatus)) { + return "该时段已确认占用"; + } + return null; + } + /** * Run business method `buildRequestedQuantityMap`. * Call guide: pass the named parameters below from the controller or caller; the method validates them and returns the business result. @@ -3931,6 +4023,17 @@ public class OrderServiceImpl implements OrderService { return; } + for (AppointmentSlot requestedSlot : requestedSlots) { + int activeOccupancyCount = appointmentReservationMapper.countOverlappingActive( + artistId, + requestedSlot.getStartTime(), + requestedSlot.getEndTime() + ); + if (activeOccupancyCount > 0) { + throw new RuntimeException("商品「" + requestedSlot.getProductTitle() + "」的预约时间与美甲师已有预约占用冲突,请重新选择"); + } + } + List existingAppointments = orderItemMapper.selectActiveAppointmentItemsByArtistId(artistId); if (existingAppointments == null || existingAppointments.isEmpty()) { return; diff --git a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/order/vo/OrderItemVO.java b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/order/vo/OrderItemVO.java index 397734ee..a2512def 100644 --- a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/order/vo/OrderItemVO.java +++ b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/order/vo/OrderItemVO.java @@ -57,6 +57,10 @@ public class OrderItemVO { * Field `appointmentTime` (String): data variable carried by this DTO/VO/entity. Check controller/service usage to see when it is filled. */ private String appointmentTime; + private String occupancyStatus; + private Boolean canEdit; + private Boolean canCancel; + private String conflictReason; /** * Purpose: pendingReview supports OrderItemVO.java by holding or executing the pending review business role. * Usage: reference this field from the owning layer and pass validated inputs before reading or updating related state. diff --git a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/dto/PlanningAppointmentCreateDTO.java b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/dto/PlanningAppointmentCreateDTO.java index 84acaccb..f139e07d 100644 --- a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/dto/PlanningAppointmentCreateDTO.java +++ b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/dto/PlanningAppointmentCreateDTO.java @@ -15,4 +15,5 @@ public class PlanningAppointmentCreateDTO { private String appointmentStartTime; private Integer durationMinutes; private String remark; + private String clientRequestId; } diff --git a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/dto/PlanningAppointmentMoveDTO.java b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/dto/PlanningAppointmentMoveDTO.java index 6a7b0564..a0a01cb6 100644 --- a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/dto/PlanningAppointmentMoveDTO.java +++ b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/dto/PlanningAppointmentMoveDTO.java @@ -9,4 +9,5 @@ public class PlanningAppointmentMoveDTO { private String appointmentTime; private String appointmentStartTime; private Integer durationMinutes; + private String clientRequestId; } diff --git a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/entity/AppointmentReservationDO.java b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/entity/AppointmentReservationDO.java index 0160572d..9c69bdeb 100644 --- a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/entity/AppointmentReservationDO.java +++ b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/entity/AppointmentReservationDO.java @@ -29,6 +29,8 @@ public class AppointmentReservationDO extends BaseEntity { private LocalDateTime appointmentEndTime; @TableField("status") private String status; + @TableField("client_request_id") + private String clientRequestId; @TableField("is_delete") @TableLogic private Integer isDelete; diff --git a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/mapper/AppointmentReservationMapper.java b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/mapper/AppointmentReservationMapper.java index 9d77006c..b0e89b53 100644 --- a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/mapper/AppointmentReservationMapper.java +++ b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/mapper/AppointmentReservationMapper.java @@ -11,15 +11,17 @@ import java.time.LocalDateTime; @Mapper public interface AppointmentReservationMapper extends BaseMapper { + String ACTIVE_STATUS_SQL = "('LOCKED','PENDING_QUOTE','CONFIRMED')"; + @Select("SELECT COUNT(*) FROM t_appointment_reservation WHERE artist_id = #{artistId} " + - "AND status IN ('LOCKED','CONFIRMED') AND is_delete = 0 " + + "AND status IN " + ACTIVE_STATUS_SQL + " AND is_delete = 0 " + "AND appointment_start_time < #{endTime} AND appointment_end_time > #{startTime} FOR UPDATE") int countOverlappingActiveForUpdate(@Param("artistId") Long artistId, @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime); @Select("SELECT COUNT(*) FROM t_appointment_reservation WHERE artist_id = #{artistId} " + - "AND order_item_id <> #{orderItemId} AND status IN ('LOCKED','CONFIRMED') AND is_delete = 0 " + + "AND order_item_id <> #{orderItemId} AND status IN " + ACTIVE_STATUS_SQL + " AND is_delete = 0 " + "AND appointment_start_time < #{endTime} AND appointment_end_time > #{startTime} FOR UPDATE") int countOverlappingActiveForUpdateExcludingOrderItem(@Param("artistId") Long artistId, @Param("orderItemId") Long orderItemId, @@ -27,7 +29,7 @@ public interface AppointmentReservationMapper extends BaseMapper #{startTime}") int countOverlappingActive(@Param("artistId") Long artistId, @Param("startTime") LocalDateTime startTime, @@ -54,4 +56,19 @@ public interface AppointmentReservationMapper extends BaseMapper 0) { + return; + } AppointmentReservationDO reservation = new AppointmentReservationDO(); reservation.setOrderId(orderId); reservation.setOrderItemId(orderItemId); @@ -40,7 +86,8 @@ public class AppointmentCapacityServiceImpl implements AppointmentCapacityServic reservation.setProductTitle(productTitle); reservation.setAppointmentStartTime(startTime); reservation.setAppointmentEndTime(endTime); - reservation.setStatus(STATUS_CONFIRMED); + reservation.setStatus(status); + reservation.setClientRequestId(clientRequestId); reservation.setIsDelete(0); reservationMapper.insert(reservation); } diff --git a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/service/impl/PlanningServiceImpl.java b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/service/impl/PlanningServiceImpl.java index addce612..0d26a5a2 100644 --- a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/service/impl/PlanningServiceImpl.java +++ b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/service/impl/PlanningServiceImpl.java @@ -63,8 +63,9 @@ public class PlanningServiceImpl implements PlanningService { private static final int DEFAULT_SLOT_MINUTES = 30; private static final int DEFAULT_DURATION_MINUTES = 60; + private static final String RESERVATION_PENDING_QUOTE = "PENDING_QUOTE"; private static final String RESERVATION_CONFIRMED = "CONFIRMED"; - private static final List ACTIVE_RESERVATION_STATUS = List.of("LOCKED", RESERVATION_CONFIRMED); + private static final List ACTIVE_RESERVATION_STATUS = List.of("LOCKED", RESERVATION_PENDING_QUOTE, RESERVATION_CONFIRMED); private static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); private static final List ARTIST_COLORS = List.of( "#7BA7C7", "#8FB89A", "#A894C7", "#D7A86E", "#D98DA5", "#79A6A3", "#B9A16B", "#9BA9C8" @@ -176,14 +177,15 @@ public class PlanningServiceImpl implements PlanningService { item.setIsDelete(0); orderItemMapper.insert(item); - appointmentCapacityService.reserveOrThrow( + appointmentCapacityService.reserveConfirmedOrThrow( order.getId(), item.getId(), shopId, artist.getId(), product.getTitle(), startTime, - endTime + endTime, + trimToNull(dto.getClientRequestId()) ); return getAppointment(currentUser, item.getId()); @@ -485,6 +487,11 @@ public class PlanningServiceImpl implements PlanningService { vo.setDurationMinutes(start == null || end == null ? durationMinutes : Math.toIntExact(Duration.between(start, end).toMinutes())); vo.setStatus(order == null ? null : order.getStatus()); vo.setStatusText(statusText(order == null ? null : order.getStatus())); + String occupancyStatus = resolveOccupancyStatus(reservation, order); + vo.setOccupancyStatus(occupancyStatus); + vo.setCanEdit(canEditAppointment(order, occupancyStatus)); + vo.setCanCancel(canCancelAppointment(order, occupancyStatus)); + vo.setConflictReason(resolveAppointmentConflictReason(occupancyStatus)); vo.setAmount(order == null ? null : order.getActualAmount()); vo.setRemark(order == null ? null : order.getCustomerRemark()); return vo; @@ -738,6 +745,49 @@ public class PlanningServiceImpl implements PlanningService { return "未知"; } + private String resolveOccupancyStatus(AppointmentReservationDO reservation, OrderDO order) { + if (reservation != null && hasText(reservation.getStatus())) { + return reservation.getStatus(); + } + if (order != null && Integer.valueOf(OrderStatus.PRICE_CONFIRMING.getCode()).equals(order.getStatus())) { + return RESERVATION_PENDING_QUOTE; + } + if (order != null && Integer.valueOf(OrderStatus.PENDING_SERVICE.getCode()).equals(order.getStatus())) { + return RESERVATION_CONFIRMED; + } + if (order != null && Integer.valueOf(OrderStatus.CANCELLED.getCode()).equals(order.getStatus())) { + return "CANCELLED"; + } + if (order != null && Integer.valueOf(OrderStatus.COMPLETED.getCode()).equals(order.getStatus())) { + return "COMPLETED"; + } + return "UNKNOWN"; + } + + private Boolean canEditAppointment(OrderDO order, String occupancyStatus) { + return order != null + && (RESERVATION_PENDING_QUOTE.equals(occupancyStatus) || RESERVATION_CONFIRMED.equals(occupancyStatus)) + && !Integer.valueOf(OrderStatus.COMPLETED.getCode()).equals(order.getStatus()) + && !Integer.valueOf(OrderStatus.CANCELLED.getCode()).equals(order.getStatus()); + } + + private Boolean canCancelAppointment(OrderDO order, String occupancyStatus) { + return order != null + && (RESERVATION_PENDING_QUOTE.equals(occupancyStatus) || RESERVATION_CONFIRMED.equals(occupancyStatus)) + && !Integer.valueOf(OrderStatus.COMPLETED.getCode()).equals(order.getStatus()) + && !Integer.valueOf(OrderStatus.CANCELLED.getCode()).equals(order.getStatus()); + } + + private String resolveAppointmentConflictReason(String occupancyStatus) { + if (RESERVATION_PENDING_QUOTE.equals(occupancyStatus)) { + return "该时段已有待报价预约占用"; + } + if (RESERVATION_CONFIRMED.equals(occupancyStatus)) { + return "该时段已有已确认预约占用"; + } + return null; + } + private List safeList(List list) { return list == null ? List.of() : list; } diff --git a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/vo/PlanningAppointmentVO.java b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/vo/PlanningAppointmentVO.java index 336f3ca9..0efd5d31 100644 --- a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/vo/PlanningAppointmentVO.java +++ b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/planning/vo/PlanningAppointmentVO.java @@ -24,6 +24,10 @@ public class PlanningAppointmentVO { private Integer durationMinutes; private Integer status; private String statusText; + private String occupancyStatus; + private Boolean canEdit; + private Boolean canCancel; + private String conflictReason; private BigDecimal amount; private String remark; } diff --git a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/security/support/AdminScopeHelper.java b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/security/support/AdminScopeHelper.java index a859c667..f2aa5a84 100644 --- a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/security/support/AdminScopeHelper.java +++ b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/security/support/AdminScopeHelper.java @@ -1,5 +1,6 @@ package com.xiaowang.yuminailcore.modules.security.support; +import com.xiaowang.yuminailcore.common.BusinessException; import com.xiaowang.yuminailcore.modules.user.entity.UserDO; import com.xiaowang.yuminailcore.modules.user.service.UserService; import lombok.RequiredArgsConstructor; @@ -128,7 +129,7 @@ public class AdminScopeHelper { public void ensureShopAccessible(UserDO currentUser, Long targetShopId, String message) { Long managedShopId = getManagedShopId(currentUser); if (managedShopId != null && !managedShopId.equals(targetShopId)) { - throw new RuntimeException(message); + throw new BusinessException(403, message); } } @@ -145,7 +146,7 @@ public class AdminScopeHelper { } Long managedShopId = getManagedShopId(currentUser); if (!userShopBindingSupport.isUserAccessibleInShop(targetUserId, managedShopId)) { - throw new RuntimeException(message); + throw new BusinessException(403, message); } } diff --git a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/system/support/AdminDefaultPasswordSupport.java b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/system/support/AdminDefaultPasswordSupport.java index 83ce7805..1f13cc2e 100644 --- a/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/system/support/AdminDefaultPasswordSupport.java +++ b/YumiNail-Core/src/main/java/com/xiaowang/yuminailcore/modules/system/support/AdminDefaultPasswordSupport.java @@ -8,7 +8,7 @@ public final class AdminDefaultPasswordSupport { public static final String CONFIG_GROUP = "USER"; public static final String CONFIG_KEY = "DEFAULT_PASSWORD"; - public static final String FALLBACK_DEFAULT_PASSWORD = "YumiNail@123"; + public static final String FALLBACK_DEFAULT_PASSWORD = "Fingertip@123"; private AdminDefaultPasswordSupport() { } diff --git a/YumiNail-Core/src/main/resources/files/YumiNail.sql b/YumiNail-Core/src/main/resources/files/YumiNail.sql index 7a632b43..6a971b50 100644 --- a/YumiNail-Core/src/main/resources/files/YumiNail.sql +++ b/YumiNail-Core/src/main/resources/files/YumiNail.sql @@ -1,4 +1,4 @@ --- YumiNail 最小运行初始化 SQL +-- Fingertip Designer 最小运行初始化 SQL -- 说明: -- 1. 首次部署空库时,只需要执行本文件即可完成基础建表、结构补丁、权限种子、基础参数、协议、MessageHub、VIP 规则与管理员初始化。 -- 2. 2026-03-20_user_asset_vip_coupon_permission_patch.sql、2026-03-25_user_shop_binding_and_shop_status_patch.sql、 @@ -1498,7 +1498,8 @@ CREATE TABLE IF NOT EXISTS t_appointment_reservation product_title varchar(200) NULL COMMENT '预约作品标题快照', appointment_start_time datetime NOT NULL COMMENT '预约开始时间', appointment_end_time datetime NOT NULL COMMENT '预约结束时间', - status varchar(20) NOT NULL DEFAULT 'LOCKED' COMMENT '状态:LOCKED/CONFIRMED/RELEASED/CANCELLED', + status varchar(20) NOT NULL DEFAULT 'LOCKED' COMMENT '状态:LOCKED/PENDING_QUOTE/CONFIRMED/RELEASED/CANCELLED/EXPIRED', + client_request_id varchar(80) NULL COMMENT '客户端幂等请求ID', create_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', update_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', is_delete tinyint unsigned DEFAULT 0 NULL COMMENT '逻辑删除:0-未删,1-已删', @@ -1662,7 +1663,9 @@ CREATE TABLE IF NOT EXISTS t_user_growth_record CALL sp_add_unique_index_if_not_exists('t_artist_schedule', 'uk_t_artist_schedule_slot', '(`shop_id`, `artist_id`, `work_date`, `start_time`, `is_delete`)'); CALL sp_add_index_if_not_exists('t_artist_schedule', 'idx_t_artist_schedule_artist_date', '(`artist_id`, `work_date`, `status`, `is_delete`)'); CALL sp_add_index_if_not_exists('t_artist_schedule', 'idx_t_artist_schedule_shop_date', '(`shop_id`, `work_date`, `status`, `is_delete`)'); +CALL sp_add_column_if_not_exists('t_appointment_reservation', 'client_request_id', 'varchar(80) NULL COMMENT ''客户端幂等请求ID'''); CALL sp_add_unique_index_if_not_exists('t_appointment_reservation', 'uk_t_appointment_reservation_item', '(`order_item_id`, `is_delete`)'); +CALL sp_add_unique_index_if_not_exists('t_appointment_reservation', 'uk_t_appointment_reservation_client_request', '(`shop_id`, `artist_id`, `client_request_id`, `is_delete`)'); CALL sp_add_index_if_not_exists('t_appointment_reservation', 'idx_t_appointment_reservation_artist_time', '(`artist_id`, `status`, `appointment_start_time`, `appointment_end_time`, `is_delete`)'); CALL sp_add_index_if_not_exists('t_appointment_reservation', 'idx_t_appointment_reservation_order', '(`order_id`, `status`, `is_delete`)'); CALL sp_add_index_if_not_exists('t_appointment_reservation', 'idx_t_appointment_reservation_shop_time', '(`shop_id`, `appointment_start_time`, `status`, `is_delete`)'); @@ -1767,7 +1770,7 @@ CREATE TABLE IF NOT EXISTS `t_messagehub_push_config` ( PRIMARY KEY (`id`), UNIQUE KEY `uk_messagehub_push_config_scene` (`scene_code`), KEY `idx_messagehub_push_config_enabled` (`enabled`, `is_delete`) -) COMMENT='YumiNail按业务场景投递MessageHub的配置'; +) COMMENT='Fingertip Designer按业务场景投递MessageHub的配置'; DROP PROCEDURE IF EXISTS sp_add_column_if_not_exists; DROP PROCEDURE IF EXISTS sp_add_index_if_not_exists; @@ -2431,8 +2434,8 @@ DEALLOCATE PREPARE stmt_system_parameter_enabled; INSERT INTO t_legal_agreement (id, agreement_type, title, version, content, status, effective_time, create_time, update_time, is_delete) VALUES - (313931273555138001, 'USER_TERMS', '用户协议', '2026.05.18', '欢迎使用 YumiNail。请在使用账号、预约、订单、会员、消息等功能前仔细阅读本协议。继续登录或注册即表示你已理解并同意平台基础服务规则、账号安全要求、订单预约规则和依法合规使用要求。', 1, NOW(), NOW(), NOW(), 0), - (313931273555138002, 'PRIVACY_POLICY', '隐私政策', '2026.05.18', 'YumiNail 会在提供登录注册、预约下单、会员余额、消息通知和客户服务时处理必要的手机号、昵称、门店归属、订单与设备信息。我们仅在业务需要和法律允许范围内使用这些信息,并采取访问控制、脱敏展示和审计记录等措施保护数据安全。', 1, NOW(), NOW(), NOW(), 0) + (313931273555138001, 'USER_TERMS', '用户协议', '2026.05.18', '欢迎使用 Fingertip Designer 指尖设计师。请在使用账号、预约、订单、会员、消息等功能前仔细阅读本协议。继续登录或注册即表示你已理解并同意平台基础服务规则、账号安全要求、订单预约规则和依法合规使用要求。', 1, NOW(), NOW(), NOW(), 0), + (313931273555138002, 'PRIVACY_POLICY', '隐私政策', '2026.05.18', 'Fingertip Designer 指尖设计师会在提供登录注册、预约下单、会员余额、消息通知和客户服务时处理必要的手机号、昵称、门店归属、订单与设备信息。我们仅在业务需要和法律允许范围内使用这些信息,并采取访问控制、脱敏展示和审计记录等措施保护数据安全。', 1, NOW(), NOW(), NOW(), 0) ON DUPLICATE KEY UPDATE title = VALUES(title), content = VALUES(content), @@ -2459,7 +2462,7 @@ VALUES (313931273555139001, 'MAP', 'TENCENT_MAP_KEY', '腾讯 Web Key', '', 0, '用于后台腾讯地图选点和 Web 展示;请在后台参数管理中填入真实 Key 后启用', NOW(), NOW(), 0), (313931273555139002, 'MAP', 'AMAP_WEB_KEY', '高德 Web Key', '', 0, '用于后台高德地图选点和 Web 展示;Web 端 Key 与小程序 Key 分开维护', NOW(), NOW(), 0), (313931273555139003, 'MAP', 'AMAP_MINI_KEY', '高德小程序 Key', '', 0, '用于后续小程序端高德 SDK/API 调用;不要与 Web Key 混用', NOW(), NOW(), 0), - (313931273555139004, 'USER', 'DEFAULT_PASSWORD', '后台新增用户默认密码', 'YumiNail@123', 1, '后台新增用户不填写密码时使用;需满足 8-32 位且至少包含数字、小写字母、大写字母、特殊符号中的 3 类', NOW(), NOW(), 0) + (313931273555139004, 'USER', 'DEFAULT_PASSWORD', '后台新增用户默认密码', 'Fingertip@123', 1, '后台新增用户不填写密码时使用;需满足 8-32 位且至少包含数字、小写字母、大写字母、特殊符号中的 3 类', NOW(), NOW(), 0) ON DUPLICATE KEY UPDATE config_name = VALUES(config_name), remark = VALUES(remark), diff --git a/YumiNail-Core/src/test/java/com/xiaowang/yuminailcore/modules/order/service/impl/OrderServiceImplCheckoutPreviewTest.java b/YumiNail-Core/src/test/java/com/xiaowang/yuminailcore/modules/order/service/impl/OrderServiceImplCheckoutPreviewTest.java index b48f3e61..2030275e 100644 --- a/YumiNail-Core/src/test/java/com/xiaowang/yuminailcore/modules/order/service/impl/OrderServiceImplCheckoutPreviewTest.java +++ b/YumiNail-Core/src/test/java/com/xiaowang/yuminailcore/modules/order/service/impl/OrderServiceImplCheckoutPreviewTest.java @@ -14,6 +14,7 @@ import com.xiaowang.yuminailcore.modules.order.mapper.OrderItemMapper; import com.xiaowang.yuminailcore.modules.product.mapper.ProductMapper; import com.xiaowang.yuminailcore.modules.shop.mapper.ShopMapper; import com.xiaowang.yuminailcore.modules.user.mapper.UserMapper; +import com.xiaowang.yuminailcore.modules.planning.mapper.AppointmentReservationMapper; import com.xiaowang.yuminailcore.modules.planning.service.AppointmentCapacityService; import com.xiaowang.yuminailcore.modules.marketing.service.CouponService; import com.xiaowang.yuminailcore.modules.artist.support.BookableArtistSupport; @@ -58,6 +59,8 @@ class OrderServiceImplCheckoutPreviewTest { private UserShopBindingSupport userShopBindingSupport; @Mock private AppointmentCapacityService appointmentCapacityService; + @Mock + private AppointmentReservationMapper appointmentReservationMapper; private OrderServiceImpl service; @@ -75,6 +78,7 @@ class OrderServiceImplCheckoutPreviewTest { ReflectionTestUtils.setField(service, "bookableArtistSupport", bookableArtistSupport); ReflectionTestUtils.setField(service, "userShopBindingSupport", userShopBindingSupport); ReflectionTestUtils.setField(service, "appointmentCapacityService", appointmentCapacityService); + ReflectionTestUtils.setField(service, "appointmentReservationMapper", appointmentReservationMapper); } @Test @@ -153,6 +157,41 @@ class OrderServiceImplCheckoutPreviewTest { verifyNoInteractions(appointmentCapacityService); } + @Test + void checkoutPreviewReportsReservationOccupancyConflict() { + ProductDO product = product(100L, "Classic", "regular", new BigDecimal("80.00")); + product.setApproximateDuration("60"); + product.setBookableArtists("77"); + CartDO cartItem = cartItem(100L, 1); + LocalDateTime appointmentTime = LocalDateTime.now().plusDays(1) + .withHour(10) + .withMinute(0) + .withSecond(0) + .withNano(0); + LocalDateTime appointmentEndTime = appointmentTime.plusHours(1); + + when(productMapper.selectById(100L)).thenReturn(product); + when(cartMapper.selectByUserIdAndProductId(20L, 100L)).thenReturn(cartItem); + when(userMapper.selectById(77L)).thenReturn(artist(77L)); + when(bookableArtistSupport.isBookableServiceUser(any(UserDO.class))).thenReturn(true); + when(userShopBindingSupport.canUserAccessShop(20L, 9L, false, null)).thenReturn(true); + when(userShopBindingSupport.isUserAccessibleInShop(77L, 9L)).thenReturn(true); + when(shopMapper.selectById(9L)).thenReturn(shop("09:00-18:00")); + when(appointmentReservationMapper.countOverlappingActive(77L, appointmentTime, appointmentEndTime)).thenReturn(1); + when(couponService.getAvailableCoupons(20L, "regular", 80.0, 9L)).thenReturn(List.of()); + when(couponMapper.selectList(any())).thenReturn(List.of()); + + CheckoutPreviewVO preview = service.checkoutPreview(20L, order(100L, 1, 77L, appointmentTime)); + + assertThat(ReflectionTestUtils.getField(preview, "bookingAvailable")).isEqualTo(false); + List bookingIssues = (List) ReflectionTestUtils.getField(preview, "bookingIssues"); + assertThat(bookingIssues).hasSize(1); + Object issue = bookingIssues.get(0); + assertThat(ReflectionTestUtils.getField(issue, "code")).isEqualTo("EXISTING_CONFLICT"); + assertThat(ReflectionTestUtils.getField(issue, "productId")).isEqualTo(100L); + verifyNoInteractions(appointmentCapacityService); + } + @Test void createOrderReturnsBusinessCodeForBookingValidationBeforeLocking() { assertThatThrownBy(() -> service.createOrder(20L, null)) diff --git a/YumiNail-Core/src/test/java/com/xiaowang/yuminailcore/modules/planning/service/impl/AppointmentCapacityServiceImplTest.java b/YumiNail-Core/src/test/java/com/xiaowang/yuminailcore/modules/planning/service/impl/AppointmentCapacityServiceImplTest.java index dc207e98..a2d3bdcf 100644 --- a/YumiNail-Core/src/test/java/com/xiaowang/yuminailcore/modules/planning/service/impl/AppointmentCapacityServiceImplTest.java +++ b/YumiNail-Core/src/test/java/com/xiaowang/yuminailcore/modules/planning/service/impl/AppointmentCapacityServiceImplTest.java @@ -66,6 +66,39 @@ class AppointmentCapacityServiceImplTest { assertThat(reservation.getStatus()).isEqualTo("CONFIRMED"); } + @Test + void reservePendingQuoteCreatesPendingReservationWithClientRequestId() { + LocalDateTime start = LocalDateTime.of(2026, 6, 1, 10, 0); + LocalDateTime end = start.plusHours(1); + when(scheduleMapper.selectCoveringSchedule(9L, 30L, start.toLocalDate(), start.toLocalTime(), end.toLocalTime())) + .thenReturn(schedule(2)); + when(reservationMapper.countOverlappingActiveForUpdate(30L, start, end)).thenReturn(0); + + service.reservePendingQuoteOrThrow(1L, 10L, 9L, 30L, "French", start, end, "req-1"); + + ArgumentCaptor captor = ArgumentCaptor.forClass(AppointmentReservationDO.class); + verify(reservationMapper).insert(captor.capture()); + AppointmentReservationDO reservation = captor.getValue(); + assertThat(reservation.getStatus()).isEqualTo("PENDING_QUOTE"); + assertThat(reservation.getClientRequestId()).isEqualTo("req-1"); + } + + @Test + void confirmReservationUpgradesExistingPendingReservationWithoutSelfConflict() { + LocalDateTime start = LocalDateTime.of(2026, 6, 1, 10, 0); + LocalDateTime end = start.plusHours(1); + when(scheduleMapper.selectCoveringSchedule(9L, 30L, start.toLocalDate(), start.toLocalTime(), end.toLocalTime())) + .thenReturn(schedule(2)); + when(reservationMapper.countOverlappingActiveForUpdateExcludingOrderItem(30L, 10L, start, end)).thenReturn(0); + when(reservationMapper.updateActiveReservationForOrderItemWithClientRequest(10L, 1L, 9L, 30L, "French", start, end, "CONFIRMED", null)) + .thenReturn(1); + + service.confirmReservationOrThrow(1L, 10L, 9L, 30L, "French", start, end); + + verify(reservationMapper).updateActiveReservationForOrderItemWithClientRequest(10L, 1L, 9L, 30L, "French", start, end, "CONFIRMED", null); + verify(reservationMapper, never()).insert(org.mockito.ArgumentMatchers.any(AppointmentReservationDO.class)); + } + @Test void reserveRejectsWhenNoCoveringScheduleExists() { LocalDateTime start = LocalDateTime.of(2026, 6, 2, 10, 0); diff --git a/YumiNail-Frontend/index.html b/YumiNail-Frontend/index.html index 30f3597b..5f7bb741 100644 --- a/YumiNail-Frontend/index.html +++ b/YumiNail-Frontend/index.html @@ -4,7 +4,7 @@ - YumiNail Frontend + Fingertip Designer 指尖设计师
diff --git a/YumiNail-Frontend/public/yuminail-icon.svg b/YumiNail-Frontend/public/yuminail-icon.svg index 89b6d91d..aebebf3e 100644 --- a/YumiNail-Frontend/public/yuminail-icon.svg +++ b/YumiNail-Frontend/public/yuminail-icon.svg @@ -1,4 +1,4 @@ - + diff --git a/YumiNail-Frontend/src/api/order.ts b/YumiNail-Frontend/src/api/order.ts index eb656830..bae13765 100644 --- a/YumiNail-Frontend/src/api/order.ts +++ b/YumiNail-Frontend/src/api/order.ts @@ -24,6 +24,7 @@ export interface CreateOrderRequest { couponId?: IdType couponSourceType?: string remark?: string + clientRequestId?: string items: OrderItem[] } diff --git a/YumiNail-Frontend/src/views/CartView.vue b/YumiNail-Frontend/src/views/CartView.vue index 7c0ce7de..e3cb8a3f 100644 --- a/YumiNail-Frontend/src/views/CartView.vue +++ b/YumiNail-Frontend/src/views/CartView.vue @@ -1155,6 +1155,13 @@ const openCheckoutRecovery = (error: unknown) => { }) } +const buildClientRequestId = () => { + if (typeof globalThis.crypto?.randomUUID === 'function') { + return `web-order-${Date.now()}-${globalThis.crypto.randomUUID()}` + } + return `web-order-${Date.now()}-${Math.random().toString(36).slice(2, 12)}` +} + /** checkout is an async page action. Trigger it from the template or lifecycle hook, then await the result. */ const checkout = async () => { if (submittingOrder.value) { @@ -1178,6 +1185,7 @@ const checkout = async () => { couponId: selectedCoupon.value?.id, couponSourceType: selectedCoupon.value?.sourceType || (couponSelectionTouched.value && !selectedCoupon.value ? NO_COUPON_KEY : undefined), remark: quoteRemark.value.trim() || undefined, + clientRequestId: buildClientRequestId(), items: items.map(item => ({ productId: item.productId, quantity: item.quantity, diff --git a/YumiNail-Frontend/src/views/admin/LegalAgreementsView.vue b/YumiNail-Frontend/src/views/admin/LegalAgreementsView.vue index f6956425..14c73af2 100644 --- a/YumiNail-Frontend/src/views/admin/LegalAgreementsView.vue +++ b/YumiNail-Frontend/src/views/admin/LegalAgreementsView.vue @@ -39,7 +39,7 @@ - + diff --git a/YumiNail-Frontend/src/views/admin/MessageHubPushConfigsView.vue b/YumiNail-Frontend/src/views/admin/MessageHubPushConfigsView.vue index bc14e057..75d8fb10 100644 --- a/YumiNail-Frontend/src/views/admin/MessageHubPushConfigsView.vue +++ b/YumiNail-Frontend/src/views/admin/MessageHubPushConfigsView.vue @@ -230,7 +230,7 @@ const defaultPasswordForm = reactive({ configGroup: 'USER', configKey: 'DEFAULT_PASSWORD', configName: '后台新增用户默认密码', - configValue: 'YumiNail@123', + configValue: 'Fingertip@123', enabled: 1, remark: '后台新增用户不填写密码时使用;需满足 8-32 位且至少包含数字、小写字母、大写字母、特殊符号中的 3 类' }) diff --git a/YumiNail-Frontend/src/views/admin/ShopsView.vue b/YumiNail-Frontend/src/views/admin/ShopsView.vue index e2fa1de4..0ea528fb 100644 --- a/YumiNail-Frontend/src/views/admin/ShopsView.vue +++ b/YumiNail-Frontend/src/views/admin/ShopsView.vue @@ -412,7 +412,7 @@
- Yumi Nail + Fingertip Designer 店铺前台预览

按钮、标签和柔和渐变都会围绕主色延展。

diff --git a/YumiNail-Frontend/src/views/admin/UsersView.vue b/YumiNail-Frontend/src/views/admin/UsersView.vue index d2e8d21c..a9c09adf 100644 --- a/YumiNail-Frontend/src/views/admin/UsersView.vue +++ b/YumiNail-Frontend/src/views/admin/UsersView.vue @@ -586,7 +586,7 @@ import AdminResponsiveModal from '@/components/admin/AdminResponsiveModal.vue' const { hasPermission, hasAnyPermission, loadUserPermissions } = usePermission() const { isMobile } = useAdminViewport() -const FALLBACK_ADMIN_DEFAULT_PASSWORD = 'YumiNail@123' +const FALLBACK_ADMIN_DEFAULT_PASSWORD = 'Fingertip@123' /** currentUserInfo is a local helper used by this page script. */ const currentUserInfo = (() => { diff --git a/YumiNail-Gateway/src/main/java/com/xiaowang/yumitailgateway/YumiNailGatewayApplication.java b/YumiNail-Gateway/src/main/java/com/xiaowang/yumitailgateway/YumiNailGatewayApplication.java index 9570fc9b..66e6df7e 100644 --- a/YumiNail-Gateway/src/main/java/com/xiaowang/yumitailgateway/YumiNailGatewayApplication.java +++ b/YumiNail-Gateway/src/main/java/com/xiaowang/yumitailgateway/YumiNailGatewayApplication.java @@ -5,7 +5,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; /** - * YumiNail 网关启动类 + * Fingertip Designer 网关启动类 * * @author xiaowang * @date 2026-02-12 diff --git a/YumiNail-Gateway/src/main/java/com/xiaowang/yumitailgateway/controller/HealthController.java b/YumiNail-Gateway/src/main/java/com/xiaowang/yumitailgateway/controller/HealthController.java index 694c4b0e..be9ef1a0 100644 --- a/YumiNail-Gateway/src/main/java/com/xiaowang/yumitailgateway/controller/HealthController.java +++ b/YumiNail-Gateway/src/main/java/com/xiaowang/yumitailgateway/controller/HealthController.java @@ -24,7 +24,7 @@ public class HealthController { public Map check() { Map result = new LinkedHashMap<>(); result.put("code", 200); - result.put("message", "YumiNail-Gateway is running"); + result.put("message", "Fingertip Designer gateway is running"); result.put("data", diagnosticsPayload()); return result; } diff --git a/artifacts/full-regression/acceptance_fd0608205715.json b/artifacts/full-regression/acceptance_fd0608205715.json new file mode 100644 index 00000000..d5c222a3 --- /dev/null +++ b/artifacts/full-regression/acceptance_fd0608205715.json @@ -0,0 +1,275 @@ +{ + "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 new file mode 100644 index 00000000..cc3ffc6c --- /dev/null +++ b/artifacts/full-regression/acceptance_fd0608205715.md @@ -0,0 +1,48 @@ +# 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 new file mode 100644 index 00000000..ac541f32 --- /dev/null +++ b/artifacts/full-regression/acceptance_fd0608211949.json @@ -0,0 +1,513 @@ +{ + "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 new file mode 100644 index 00000000..bb7c66e5 --- /dev/null +++ b/artifacts/full-regression/acceptance_fd0608211949.md @@ -0,0 +1,66 @@ +# 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 new file mode 100644 index 00000000..966b5af4 --- /dev/null +++ b/artifacts/full-regression/acceptance_fd0608212143.json @@ -0,0 +1,623 @@ +{ + "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 new file mode 100644 index 00000000..1e37ec23 --- /dev/null +++ b/artifacts/full-regression/acceptance_fd0608212143.md @@ -0,0 +1,75 @@ +# 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 new file mode 100644 index 00000000..310d5c80 --- /dev/null +++ b/artifacts/full-regression/acceptance_fd0608212248.json @@ -0,0 +1,755 @@ +{ + "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 new file mode 100644 index 00000000..eeb9a45b --- /dev/null +++ b/artifacts/full-regression/acceptance_fd0608212248.md @@ -0,0 +1,83 @@ +# 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 new file mode 100644 index 00000000..38611ff8 --- /dev/null +++ b/artifacts/full-regression/core_proxy_81.js @@ -0,0 +1,35 @@ +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 new file mode 100644 index 00000000..7c066e9f --- /dev/null +++ b/artifacts/full-regression/env_init_fd0608202858.json @@ -0,0 +1,18 @@ +{ + "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 new file mode 100644 index 00000000..b397e2b3 --- /dev/null +++ b/artifacts/full-regression/env_init_fd0608203005.json @@ -0,0 +1,11 @@ +{ + "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 new file mode 100644 index 00000000..1966298f --- /dev/null +++ b/artifacts/full-regression/env_init_fd0608203103.json @@ -0,0 +1,16 @@ +{ + "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 new file mode 100644 index 00000000..dcf90b16 --- /dev/null +++ b/artifacts/full-regression/run_full_regression.py @@ -0,0 +1,1438 @@ +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 new file mode 100644 index 00000000..eb83e4ed --- /dev/null +++ b/artifacts/full-regression/run_web_smoke.ps1 @@ -0,0 +1,8 @@ +$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 new file mode 100644 index 00000000..ee5ab122 --- /dev/null +++ b/artifacts/full-regression/start_frontend.ps1 @@ -0,0 +1,12 @@ +$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 new file mode 100644 index 00000000..8ce03d27 Binary files /dev/null and b/artifacts/full-regression/web_admin_dashboard_fd0608212248.png differ diff --git a/artifacts/full-regression/web_admin_login_fd0608212248.png b/artifacts/full-regression/web_admin_login_fd0608212248.png new file mode 100644 index 00000000..5098a1aa Binary files /dev/null and b/artifacts/full-regression/web_admin_login_fd0608212248.png differ diff --git a/artifacts/full-regression/web_admin_smoke.js b/artifacts/full-regression/web_admin_smoke.js new file mode 100644 index 00000000..28237209 --- /dev/null +++ b/artifacts/full-regression/web_admin_smoke.js @@ -0,0 +1,84 @@ +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 new file mode 100644 index 00000000..4bd11aae --- /dev/null +++ b/artifacts/full-regression/web_smoke_fd0608212248.json @@ -0,0 +1,39 @@ +{ + "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/docx/MEMORY.md b/docx/MEMORY.md index 3616cef6..0ccf397e 100644 --- a/docx/MEMORY.md +++ b/docx/MEMORY.md @@ -4,6 +4,16 @@ 本文件汇总清理前的项目记忆文件内容,后续新的记忆更新继续写入本文件。 +## 2026-06-10 当前记忆更新 + +- 平台名已从 `YumiNail` 更新为 `Fingertip Designer`,中文平台名为“指尖设计师”。本轮已覆盖 Web 管理端、小程序端、网关提示、文档、SQL 初始化与构建产物中的主要品牌露出。 +- 已完成一次开发环境用户视角全链路验收,覆盖平台管理员、后台店长、普通用户、指尖管理师、设计师/美甲师,以及订单、报价、预约、改派、取消、完成、评价等多端联动路径。交付物集中在 `artifacts/full-regression/`。 +- 已按“安全与交互优化路线图”落地第一批 P0/P1 改造:下单和管理师预约链路增加 `clientRequestId`,订单创建阶段写入 `PENDING_QUOTE` 预约占用,报价确认升级为确认占用,取消/过期释放占用;预约容量写入统一收敛到 `AppointmentCapacityService`;前端和小程序提交链路生成防重请求号。 +- 预约/订单 VO 增加 `occupancyStatus`、`canEdit`、`canCancel`、`conflictReason` 等面向端侧的状态字段;跨店访问从静默空列表优化为 403 业务异常;重复操作防护返回 409;预约冲突优先返回明确原因。 +- 已补充后端单元测试,覆盖预约冲突预览、待报价占用创建、待报价占用确认升级等关键路径。 +- 最近验证结果:`YumiNail-Core` 下 `rtk mvn test` 通过 133 个测试;`rtk mvn -DskipTests package` 通过;`YumiNail-Frontend` 使用 Node 22 直接运行 `vue-tsc -b` 通过,`vite build` 通过,仅有 chunk 体积提示;`rtk git diff --check` 通过。 +- 后续仍建议继续推进:后台 HttpOnly Cookie 会话迁移、刷新令牌轮换与撤销、业务审计面板、报价/改派/取消后的消息或轮询刷新、Nacos dev 命名空间健康检查、微信开发者工具真实页面自动化回归。 + ## PROJECT_MEMORY.md # YumiNail 项目记忆文件 diff --git a/docx/README.md b/docx/README.md index 7ae862e5..6a2d8383 100644 --- a/docx/README.md +++ b/docx/README.md @@ -1,6 +1,6 @@ -# YumiNail 功能介绍 +# Fingertip Designer 指尖设计师功能介绍 -YumiNail 是一个面向美甲门店经营的全链路业务系统,覆盖用户浏览、预约下单、订单履约、评价反馈、门店管理、权限控制、消息通知和运营配置等流程。 +Fingertip Designer 指尖设计师是一个面向美甲门店经营的全链路业务系统,覆盖用户浏览、预约下单、订单履约、评价反馈、门店管理、权限控制、消息通知和运营配置等流程。 ## 端侧组成 diff --git a/docx/handoff/CURRENT-STATE.md b/docx/handoff/CURRENT-STATE.md index 627a5247..3ca992bc 100644 --- a/docx/handoff/CURRENT-STATE.md +++ b/docx/handoff/CURRENT-STATE.md @@ -1,5 +1,12 @@ # Current State +## 2026-06-10 工作区状态补充 + +- 最新未提交主题:平台更名为 `Fingertip Designer`(指尖设计师)、开发环境全链路验收、预约/订单一致性加固、权限与失败体验优化。 +- 预约链路已引入 `clientRequestId` 与 `PENDING_QUOTE` 占用:用户下单先锁定待报价占用,报价确认升级,取消/过期释放;管理师新建预约也走统一容量服务。 +- 测试报告与证据集中在 `artifacts/full-regression/`。本轮后端单测、后端打包、前端类型检查、前端构建和 `git diff --check` 已通过。 +- 下方 2026-06-05 的 OSS/Nacos/生产配置记录仍可作为运维背景参考,但不再代表当前最新开发任务。 + 更新时间:2026-06-05 用途:记录当前真实状态。继续当前任务或做运维/联调前读本文件。 diff --git a/docx/handoff/HANDOFF-BOOT.md b/docx/handoff/HANDOFF-BOOT.md index 3c7683e2..67bded02 100644 --- a/docx/handoff/HANDOFF-BOOT.md +++ b/docx/handoff/HANDOFF-BOOT.md @@ -1,12 +1,12 @@ -# YumiNail Handoff Boot +# Fingertip Designer Handoff Boot -更新时间:2026-06-05 +更新时间:2026-06-10 用途:新会话只需先读 `AGENTS.md` 和本文件,即可建立最小项目上下文。不要把旧的 `docx/README.md`、`docx/MEMORY.md` 当首读资料,它们有乱码且信息过长。 ## 1. 项目一句话 -`E:\code\xiaowang` 是 YumiNail 美甲业务系统主仓库,包含 Web 前后台、用户微信小程序、指尖管理师小程序、Spring Cloud Gateway、Spring Boot Core、SQL 初始化和项目文档。 +`E:\yuminail` 是 Fingertip Designer 指尖设计师美甲业务系统主仓库,包含 Web 前后台、用户微信小程序、指尖管理师小程序、Spring Cloud Gateway、Spring Boot Core、SQL 初始化和项目文档。 主链路: @@ -32,7 +32,7 @@ Web / WeChatProgram / FingertipManager-Program ## 3. 最高优先级规则 - 修改函数、类、方法前,先按 `AGENTS.md` 做 GitNexus upstream impact;提交前做 GitNexus detect_changes。 -- 不要回滚未提交改动。当前工作区有大量 OSS 备份相关改动,先读 `CURRENT-STATE.md`。 +- 不要回滚未提交改动。当前工作区可能包含品牌更名、全链路验收、预约一致性、OSS 运维等并行上下文,先读 `CURRENT-STATE.md`。 - 手动编辑文件优先用 `apply_patch`。 - 搜索优先 `rg` / `rg --files`。 - 后端 SQL 结构、补列、索引、权限种子集中维护在 `YumiNail-Core/src/main/resources/files/YumiNail.sql`,同时关注 `scripts/sql/init/YumiNail.sql`。 @@ -43,12 +43,12 @@ Web / WeChatProgram / FingertipManager-Program 详细见 `CURRENT-STATE.md`。最重要的几条: -- 工作区未提交:文件存储新增阿里云 OSS 备份链路,涉及 `modules/file`、`RabbitMQConfig`、SQL 和测试。 -- OSS 备份代码已在本地,但 Nacos 中 `aliyun.oss.enabled=false`,缺阿里云 endpoint、region、AK、SK。 -- 真实上传/签名预览已通过 MinIO,预览产物在 `artifacts/real-upload-signed-preview.png`。 -- 2026-06-05 已修 Nacos 命名问题:`yuminail-gateway.yaml`、`rabbitmq.yaml`、`yuminail-core` 已补齐。 -- Core/Gateway 生产服务已启动:`yumi-nail-core` 3 个健康实例,`yuminail-gateway` 3 个健康实例,均注册 80 端口。 -- datasource 临时直连 `mysql02:3306`,因为 `mysql-writer:3308` JDBC 握手失败;长期应修复 HA writer 后切回。 +- 本轮最新主线是 `Fingertip Designer` 平台更名、开发环境全链路验收,以及预约/订单一致性与权限边界加固。旧平台名 `YumiNail` 仍作为部分目录、服务名、历史脚本和数据库文件名存在,不代表端侧品牌露出。 +- 预约占用模型已开始统一:用户下单创建 `PENDING_QUOTE` 占用,报价确认升级为确认占用,管理师新建预约走同一容量服务,取消和报价过期释放占用。活跃占用状态目前包含 `LOCKED`、`PENDING_QUOTE`、`CONFIRMED`。 +- 请求防重已接入订单创建和管理师规划新建预约:Web 购物车、用户小程序、管理师小程序都会生成并提交 `clientRequestId`,后端将其保存到订单、订单项和预约占用链路中。 +- 权限与失败体验已增强:跨店访问统一抛 403 业务异常,重复操作防护返回 409,订单/预约相关 VO 增加 `occupancyStatus`、`canEdit`、`canCancel`、`conflictReason` 供端侧展示。 +- 本轮全链路测试与阶段报告在 `artifacts/full-regression/`;历史 OSS/Nacos/生产配置排障信息仍可参考 `CURRENT-STATE.md` 中 2026-06-05 记录,但它不是当前最新开发任务状态。 +- 最近验证:`YumiNail-Core` 的 `rtk mvn test` 通过 133 个测试,`rtk mvn -DskipTests package` 通过;`YumiNail-Frontend` 使用 Node 22 直接执行 `vue-tsc -b` 和 `vite build` 均通过,Vite 仅提示 chunk 体积较大;`rtk git diff --check` 通过。 ## 5. 常用验证命令 @@ -81,7 +81,8 @@ rtk powershell -NoProfile -Command '& { Get-ChildItem -LiteralPath "WeChatProgra ## 6. 下一步读取策略 -- 继续当前 OSS/文件上传任务:读 `CURRENT-STATE.md`、`CORE-MODULES.md` 的 `file` 部分、`TASK-PLAYBOOKS.md` 的真实上传联调。 +- 继续当前预约/订单一致性任务:读 `CURRENT-STATE.md`、`CORE-MODULES.md` 的订单、预约、planning 部分,以及 `TASK-PLAYBOOKS.md`。 +- 继续历史 OSS/文件上传任务:读 `CURRENT-STATE.md` 中 2026-06-05 记录、`CORE-MODULES.md` 的 `file` 部分、`TASK-PLAYBOOKS.md` 的真实上传联调。 - 改后端接口:读 `CORE-MODULES.md` 和 `TASK-PLAYBOOKS.md`。 - 改前端或小程序:读 `PROJECT-MAP.md` 和 `TASK-PLAYBOOKS.md`。 - 改 SQL、Nacos、生产服务:读 `CURRENT-STATE.md`、`RISK-REGISTER.md`。 diff --git a/docx/testing/yuminail-full-regression-test-cases.md b/docx/testing/yuminail-full-regression-test-cases.md index e2f74000..2da5606f 100644 --- a/docx/testing/yuminail-full-regression-test-cases.md +++ b/docx/testing/yuminail-full-regression-test-cases.md @@ -1,8 +1,8 @@ -# YumiNail 全链路测试案例 +# Fingertip Designer 指尖设计师全链路测试案例 ## 测试目标与范围 -本文用于初始化数据库后的全链路验收测试,覆盖 YumiNail 后台管理员、后台店长、前台普通用户、指尖管理师,以及 YumiNail 与指尖管理师之间的预约联动。 +本文用于初始化数据库后的全链路验收测试,覆盖 Fingertip Designer 指尖设计师后台管理员、后台店长、前台普通用户、指尖管理师,以及 Fingertip Designer 与指尖管理师之间的预约联动。 本轮测试只验证核心业务闭环,不覆盖复杂营销运营、库存精细化盘点、财务对账扩展报表等非核心能力。 @@ -15,17 +15,17 @@ | DATA-001 | 初始化数据库 | 在空库环境执行 `YumiNail-Core/src/main/resources/files/YumiNail.sql`,完成基础表、菜单、权限、系统参数和默认数据初始化 | 检查数据库表结构、默认角色、默认菜单和系统参数是否存在;使用默认平台管理员账号尝试登录 | 数据库初始化无报错,默认平台管理员可登录,后台基础菜单可正常展示 | 已完成 | | DATA-002 | 默认平台管理员 | 保留并验证初始化 SQL 中的默认平台管理员账号,补充至少 4 个额外平台管理员账号,总数不少于 5 个 | 分别登录 5 个平台管理员账号,检查后台菜单和全局数据访问能力 | 每个管理员均可进入后台,并拥有店铺、账号、授权、订单、作品等平台级管理入口 | 已完成 | | DATA-003 | 店铺基础数据 | 创建不少于 5 个店铺,分别覆盖正常授权、未授权、授权过期、停用、待补充资料 5 类状态 | 在后台店铺列表筛选并逐条打开详情,核对状态、营业时间、地址、授权信息 | 5 类店铺状态均存在,且状态变化能影响前台预约和后台访问表现 | 已完成 | -| DATA-004 | 店铺授权数据 | 为不同店铺设置授权开始时间、授权天数、到期时间、停用状态,并保留至少 1 个指尖管理师注册产生的未授权店铺 | 使用平台管理员查看授权配置;分别用对应店长账号登录 YumiNail 和指尖管理师 | 正常授权店铺可完整使用;过期、未授权、停用店铺按业务规则受限;指尖管理师未授权店铺可独立进入规划能力 | 已完成 | +| DATA-004 | 店铺授权数据 | 为不同店铺设置授权开始时间、授权天数、到期时间、停用状态,并保留至少 1 个指尖管理师注册产生的未授权店铺 | 使用平台管理员查看授权配置;分别用对应店长账号登录 Fingertip Designer 和指尖管理师 | 正常授权店铺可完整使用;过期、未授权、停用店铺按业务规则受限;指尖管理师未授权店铺可独立进入规划能力 | 已完成 | | DATA-005 | 店长账号数据 | 为每个测试店铺至少创建 1 个店长账号,并额外准备指尖管理师注册店长账号,总店长类账号不少于 5 个 | 使用不同店长账号登录后台,检查店铺绑定关系和数据范围 | 店长只能查看和维护本店数据,不能访问其他店铺客户、作品、美甲师、订单和排班 | 已完成 | | DATA-006 | 美甲师账号数据 | 创建不少于 5 个美甲师账号,分布在至少 2 个店铺中,包含启用、停用、请假、可预约、不可预约等状态 | 后台查看美甲师列表;前台预约和指尖管理师员工页检查可选状态 | 美甲师资料完整,可参与作品绑定、排班设置、预约选择和员工统计 | 已完成 | | DATA-007 | 普通用户数据 | 创建不少于 5 个普通用户账号,覆盖新注册用户、有收藏用户、有历史订单用户、有取消订单用户、有评价用户 | 使用普通用户登录前台,查看个人信息、收藏、订单和评价记录 | 普通用户能完成浏览、收藏、预约、取消、评价等前台链路验证 | 已完成 | -| DATA-008 | 指尖管理师注册店长数据 | 通过指尖管理师注册流程创建不少于 5 个店长账号和对应店铺 | 注册后检查 YumiNail 用户、店长、店铺绑定关系;使用注册账号登录指尖管理师 | 注册成功后自动成为 YumiNail 店长账号,并绑定未授权店铺,可独立使用指尖管理师规划功能 | 已完成 | +| DATA-008 | 指尖管理师注册店长数据 | 通过指尖管理师注册流程创建不少于 5 个店长账号和对应店铺 | 注册后检查 Fingertip Designer 用户、店长、店铺绑定关系;使用注册账号登录指尖管理师 | 注册成功后自动成为 Fingertip Designer 店长账号,并绑定未授权店铺,可独立使用指尖管理师规划功能 | 已完成 | | DATA-009 | 作品数据 | 创建不少于 50 个作品,分布在多个店铺,覆盖不同价格、服务时长、标签、图片、上下架状态和可预约美甲师 | 后台作品列表按店铺、状态、标签筛选;前台查看作品列表和详情 | 作品总数不少于 50 个,且至少包含上架、下架、不同服务时长、不同价格区间、不同美甲师绑定场景 | 已完成 | | DATA-010 | 作品预约配置 | 为作品配置服务时长,优先覆盖 30 分钟、60 分钟、90 分钟、120 分钟、180 分钟等常见时长,并绑定可预约美甲师 | 在预约页选择不同作品,检查默认服务时长、可选美甲师和可预约时间 | 新建预约和指尖管理师手动预约均能读取作品时长;无时长作品按默认预约时长处理 | 已完成 | | DATA-011 | 美甲师排班数据 | 为至少 5 个美甲师配置未来 7 天排班,覆盖 10:00-22:00 全营业时段、半天上班、跨午休、无排班等场景 | 在后台排班设置、前台预约页、指尖管理师日视图和周视图交叉查看 | 排班能正确影响可预约时间,日视图和周视图能展示员工可用区间 | 已完成 | | DATA-012 | 请假与不可预约数据 | 为至少 3 个美甲师配置全天请假、上午请假、下午请假或指定时段不可预约 | 在前台预约页和指尖管理师新建预约页尝试选择请假时段 | 请假或不可预约时段不能被预约,并有明确提示;规划页能表现休息或不可用状态 | 已完成 | | DATA-013 | 容量与冲突数据 | 准备同一美甲师同一时段容量未满、容量已满、完全冲突、部分重叠 4 类预约场景 | 连续提交同一时段预约,并在指尖管理师改派或改时间时校验冲突提示 | 容量内预约可成功,超过容量或时间冲突时被拦截,不产生重复有效占用 | 已完成 | -| DATA-014 | 订单状态数据 | 准备待确认、已确认、待服务、已完成、已取消等状态订单,覆盖 YumiNail 下单和指尖管理师新建两种来源 | 后台订单列表、用户订单详情、指尖管理师预约详情分别查看状态 | 各状态订单均可被识别;取消订单释放预约占用;完成订单保留历史记录 | 已完成 | +| DATA-014 | 订单状态数据 | 准备待确认、已确认、待服务、已完成、已取消等状态订单,覆盖 Fingertip Designer 下单和指尖管理师新建两种来源 | 后台订单列表、用户订单详情、指尖管理师预约详情分别查看状态 | 各状态订单均可被识别;取消订单释放预约占用;完成订单保留历史记录 | 已完成 | | DATA-015 | 月视图高密度数据 | 至少准备 1 个自然月内的高密度预约数据,其中同一天包含 3 个及以上美甲师、每位美甲师 1-5 单不等 | 打开指尖管理师月视图,切换单量、展开色块、横条色块等显示模式 | 每个日期格可直接看出各美甲师单量,支持全名展示,色块和文字不遮挡 | 已完成 | | DATA-016 | 客户与历史消费数据 | 准备不少于 20 个客户记录,覆盖新客户、复购客户、高消费客户、仅取消订单客户、跨店同手机号客户 | 指尖管理师客户列表搜索手机号和姓名,打开客户详情查看历史预约 | 客户统计、最近消费时间、历史订单、累计订单数和累计消费金额显示准确 | 已完成 | | DATA-017 | 收藏与评价数据 | 为普通用户准备收藏记录、取消收藏记录、已完成后评价记录,覆盖不同作品和不同店铺 | 前台查看收藏列表、作品详情评价区和个人订单评价状态 | 收藏、取消收藏、评价数据能正常展示,并不影响预约主链路 | 已完成 | @@ -54,7 +54,7 @@ | 店长 | 5 | `testmanager01` - `testmanager05` | 本店作品、美甲师、订单、客户、排班管理 | 只能访问和维护本店数据 | 查询到 5 个 `type=2` 店长账号,且均有店铺绑定 | 已完成 | | 美甲师 | 5 | `testartist01` - `testartist05` | 查看本人订单、排班、可预约状态 | 只能访问本人相关业务数据 | 查询到 5 个 `type=3` 美甲师账号,且均有店铺绑定和美甲师资料 | 已完成 | | 普通用户 | 20 | `testcustomer01` - `testcustomer20` | 注册、浏览、收藏、预约、评价 | 只能访问自己的订单和个人数据 | 查询到 20 个 `type=0` 普通用户账号,且绑定店铺无错配 | 已完成 | -| 指尖管理师注册店长 | 5 | `testfmmanager01` - `testfmmanager05` | 验证独立注册和 YumiNail 同步 | 注册后成为 YumiNail 店长账号,并绑定未授权店铺 | 查询到 5 个指尖注册店长样本账号,且均有店铺绑定 | 已完成 | +| 指尖管理师注册店长 | 5 | `testfmmanager01` - `testfmmanager05` | 验证独立注册和 Fingertip Designer 同步 | 注册后成为 Fingertip Designer 店长账号,并绑定未授权店铺 | 查询到 5 个指尖注册店长样本账号,且均有店铺绑定 | 已完成 | 测试账号矩阵验收记录: @@ -75,7 +75,7 @@ | ADMIN-003 | 店铺编辑 | 已有正常店铺 | 修改店铺名称、地址、营业时间、主题色 | 保存成功 | 前后台展示更新后的店铺信息 | 接口 `/admin/shops/update/{id}` 保存成功,详情返回店铺名包含“编辑”,营业时间为 `09:30-21:30` | 已完成 | | ADMIN-004 | 店铺启停 | 已有正常店铺 | 将店铺状态改为停用,再改回启用 | 状态切换成功 | 停用时前台不可预约,启用后恢复 | 接口 `/admin/shops/status/{id}` 先返回停用状态 `0`,再恢复启用状态 `1` | 已完成 | | ADMIN-005 | 店铺授权 | 已有店铺 | 设置授权开始时间、授权天数、到期时间 | 授权信息保存成功 | 正常授权店铺可访问,过期店铺按规则冻结 | 编辑授权后详情返回授权到期时间 `2026-09-30T23:59:59`,符合 `2026-10-01` 本地日期边界 | 已完成 | -| ADMIN-006 | 未授权店铺 | 已有未授权店铺 | 使用该店铺店长登录后台和指尖管理师 | YumiNail 后台受授权限制,指尖管理师规划可访问 | 授权状态表现符合业务设计 | 平台管理员 `/admin/shops/list/all` 可见未授权店铺 `990000000000002`,店铺授权状态数据存在 | 已完成 | +| ADMIN-006 | 未授权店铺 | 已有未授权店铺 | 使用该店铺店长登录后台和指尖管理师 | Fingertip Designer 后台受授权限制,指尖管理师规划可访问 | 授权状态表现符合业务设计 | 平台管理员 `/admin/shops/list/all` 可见未授权店铺 `990000000000002`,店铺授权状态数据存在 | 已完成 | | ADMIN-007 | 店长账号创建 | 已有店铺 | 新建店长账号并绑定店铺 | 店长账号创建成功 | 店长能登录并只看到本店数据 | 接口 `/admin/user/create` 创建店长成功,最终轮店长 ID 为 `320547792703709184`,列表可按账号查到 | 已完成 | | ADMIN-008 | 美甲师账号创建 | 已有店铺 | 新建美甲师账号并绑定店铺 | 美甲师账号创建成功 | 美甲师可被作品和排班选择 | 接口 `/admin/user/create` 创建美甲师成功,最终轮美甲师 ID 为 `320547798638649344`,并已生成美甲师资料 | 已完成 | | ADMIN-009 | 权限隔离 | 多店铺、多店长存在 | 用平台管理员查看不同店铺数据 | 全部店铺数据可见 | 平台管理员无店铺范围限制 | 平台管理员查询 `/admin/shops/list?page=1&size=100` 可同时看到初始化店铺和新建测试店铺 | 已完成 | @@ -133,7 +133,7 @@ | USER-007 | 预约准备 | 已有上架作品和可预约美甲师 | 选择作品、美甲师、日期、时间 | 进入预约确认 | 显示服务时长、价格、预约信息 | 通过:加入购物车后读取作品 `990000003000001`、美甲师 `990000000300001` 可用时间,并对 `2026-06-09 19:00:00` 调用 `/order/checkout-preview`,`bookingAvailable=true` | 已完成 | | USER-008 | 提交预约订单 | 预约信息合法 | 提交预约订单 | 订单创建成功,进入报价/确认流程 | 订单详情展示待确认状态 | 通过:`/order/create` 创建订单 `320838858325512193`,订单项 `320838858346483712`,状态 `status=0`、`quote_status=CONFIRMING` | 已完成 | | USER-009 | 店长确认报价 | 已有待确认订单 | 店长在后台确认报价 | 订单进入待用户确认或待服务 | 订单状态流转正确 | 通过:店长 `testmanager01` 调用 `/admin/order/{id}/quote` 和 `/admin/order/{id}/quote/confirm`,订单 `320838858325512193` 回读 `quote_shop_confirmed=1` | 已完成 | -| USER-010 | 用户确认订单 | 报价已由店长确认 | 用户确认订单 | 订单进入待服务 | YumiNail 与指尖管理师均显示预约 | 通过:用户调用 `/order/320838858325512193/quote/confirm` 后订单进入 `status=1`、`quote_status=CONFIRMED`;`/admin/planning/calendar` 可见该预约 | 已完成 | +| USER-010 | 用户确认订单 | 报价已由店长确认 | 用户确认订单 | 订单进入待服务 | Fingertip Designer 与指尖管理师均显示预约 | 通过:用户调用 `/order/320838858325512193/quote/confirm` 后订单进入 `status=1`、`quote_status=CONFIRMED`;`/admin/planning/calendar` 可见该预约 | 已完成 | | USER-011 | 查看订单详情 | 已有订单 | 用户打开订单详情 | 展示作品、店铺、美甲师、预约时间、金额 | 信息与下单数据一致 | 通过:`/order/detail/320838858325512193` 返回作品 `990000003000001`、美甲师 `990000000300001`、预约时间 `2026-06-09 19:00:00`,与下单数据一致 | 已完成 | | USER-012 | 取消订单 | 已有可取消订单 | 用户取消订单 | 取消成功 | 预约占用释放,指尖管理师不再显示有效占用 | 通过:创建并确认取消订单 `320838872854581249` 后调用 `/order/cancel/{id}`,订单状态 `3`;数据库预约占用变为 `RELEASED/is_delete=1`,规划日历不再显示有效占用 | 已完成 | | USER-013 | 完成后评价 | 已完成订单 | 用户提交评价 | 评价成功 | 作品或美甲师评价数据更新 | 通过:订单 `320838877162131457` 后台流转完成后异步生成待评价 `320838896481095680`;用户提交 4.5 分评价成功,评价状态 `1` | 已完成 | @@ -159,13 +159,13 @@ | 用例编号 | 模块 | 前置条件 | 操作步骤 | 预期结果 | 通过标准 | | --- | --- | --- | --- | --- | --- | -| FM-001 | 注册 | 数据库已初始化 | 输入手机号、验证码、密码、店铺名称注册 | 注册成功 | 自动创建 YumiNail 店长账号和未授权店铺 | +| FM-001 | 注册 | 数据库已初始化 | 输入手机号、验证码、密码、店铺名称注册 | 注册成功 | 自动创建 Fingertip Designer 店长账号和未授权店铺 | | FM-002 | 登录 | 已有指尖管理师账号 | 输入账号密码登录 | 登录成功 | 进入规划页 | | FM-003 | 日视图 | 已有当天预约 | 打开规划日视图 | 展示时间轴、员工泳道、预约块 | 可看出空闲时间和预约占用 | | FM-004 | 周视图 | 已有一周预约 | 切换周视图 | 展示 7 天预约密度和员工单量 | 可识别忙闲日期和待处理预约 | | FM-005 | 月视图单量 | 已有整月预约 | 切换月视图 | 每个日期格展示各美甲师单量 | 能直接看到如“王3 / 李2”的单量 | | FM-006 | 月视图模式 | 已配置多种月历显示 | 切换单量、点阵、横条视图 | 视图切换成功 | 文案、色块、数量不遮挡 | -| FM-007 | 新建预约 | 有客户、作品、美甲师 | 创建合法预约 | 预约创建成功 | YumiNail 订单、订单项、预约占用同步存在 | +| FM-007 | 新建预约 | 有客户、作品、美甲师 | 创建合法预约 | 预约创建成功 | Fingertip Designer 订单、订单项、预约占用同步存在 | | FM-008 | 营业时间校验 | 店铺营业时间为 10:00-22:00 | 创建超出营业时间预约 | 创建失败 | 明确提示超出营业时间 | | FM-009 | 排班校验 | 美甲师休息或请假 | 为该美甲师创建预约 | 创建失败 | 明确提示不可预约 | | FM-010 | 容量冲突 | 同时段容量已满 | 再次创建预约 | 创建失败 | 明确提示冲突或已满 | @@ -185,18 +185,18 @@ | FM-024 | 修改密码 | 店长已登录 | 修改登录密码 | 修改成功 | 旧密码失效,新密码可登录 | | FM-025 | 关于系统 | 店长已登录 | 打开关于系统 | 页面正常展示 | 不空白、不报错 | -## YumiNail 与指尖管理师联动测试用例 +## Fingertip Designer 与指尖管理师联动测试用例 | 用例编号 | 模块 | 前置条件 | 操作步骤 | 预期结果 | 通过标准 | | --- | --- | --- | --- | --- | --- | -| LINK-001 | 确认订单同步 | YumiNail 有待确认预约订单 | 店长确认报价,用户确认订单 | 订单进入待服务并生成预约占用 | 指尖管理师日/周/月视图显示该预约 | -| LINK-002 | 指尖新建预约同步 | 指尖管理师创建预约 | 在 YumiNail 后台查看订单 | 订单、订单项、预约占用均存在 | 两端客户、作品、美甲师、时间一致 | -| LINK-003 | 改时间同步 | 指尖管理师修改预约时间 | 在 YumiNail 查看订单项和占用 | 时间同步更新 | 原时段释放,新时段占用 | -| LINK-004 | 改派同步 | 指尖管理师改派美甲师 | 在 YumiNail 查看订单详情 | 美甲师同步更新 | 原美甲师日历不再显示,新美甲师日历显示 | -| LINK-005 | YumiNail 取消同步 | YumiNail 取消订单 | 打开指尖管理师规划页 | 预约释放或不再显示为有效占用 | 月视图单量同步减少 | -| LINK-006 | YumiNail 完成同步 | YumiNail 完成订单 | 打开指尖管理师预约详情 | 状态同步为已完成 | 订单记录保留,日历状态正确 | -| LINK-007 | 授权状态联动 | 指尖注册产生未授权店铺 | 用该店铺进入 YumiNail 和指尖管理师 | YumiNail 按未授权限制,指尖规划可单独使用 | 双方权限表现符合设计 | -| LINK-008 | 数据一致性 | 多端连续操作 | YumiNail 下单、指尖改派、YumiNail 取消 | 数据最终一致 | 不出现重复占用、幽灵预约、错误单量 | +| LINK-001 | 确认订单同步 | Fingertip Designer 有待确认预约订单 | 店长确认报价,用户确认订单 | 订单进入待服务并生成预约占用 | 指尖管理师日/周/月视图显示该预约 | +| LINK-002 | 指尖新建预约同步 | 指尖管理师创建预约 | 在 Fingertip Designer 后台查看订单 | 订单、订单项、预约占用均存在 | 两端客户、作品、美甲师、时间一致 | +| LINK-003 | 改时间同步 | 指尖管理师修改预约时间 | 在 Fingertip Designer 查看订单项和占用 | 时间同步更新 | 原时段释放,新时段占用 | +| LINK-004 | 改派同步 | 指尖管理师改派美甲师 | 在 Fingertip Designer 查看订单详情 | 美甲师同步更新 | 原美甲师日历不再显示,新美甲师日历显示 | +| LINK-005 | Fingertip Designer 取消同步 | Fingertip Designer 取消订单 | 打开指尖管理师规划页 | 预约释放或不再显示为有效占用 | 月视图单量同步减少 | +| LINK-006 | Fingertip Designer 完成同步 | Fingertip Designer 完成订单 | 打开指尖管理师预约详情 | 状态同步为已完成 | 订单记录保留,日历状态正确 | +| LINK-007 | 授权状态联动 | 指尖注册产生未授权店铺 | 用该店铺进入 Fingertip Designer 和指尖管理师 | Fingertip Designer 按未授权限制,指尖规划可单独使用 | 双方权限表现符合设计 | +| LINK-008 | 数据一致性 | 多端连续操作 | Fingertip Designer 下单、指尖改派、Fingertip Designer 取消 | 数据最终一致 | 不出现重复占用、幽灵预约、错误单量 | ## 异常、权限、边界测试用例 @@ -224,7 +224,7 @@ | PASS-003 | 后台店长 | 本店店铺、作品、美甲师、排班、订单管理通过 | | PASS-004 | 前台用户 | 注册、登录、浏览、收藏、预约、确认、取消、评价链路通过 | | PASS-005 | 指尖管理师 | 规划、预约、客户、员工、我的全部核心页面和操作通过 | -| PASS-006 | 双端联动 | YumiNail 确认订单可进入指尖管理师,指尖预约变更可回写 YumiNail | +| PASS-006 | 双端联动 | Fingertip Designer 确认订单可进入指尖管理师,指尖预约变更可回写 Fingertip Designer | | PASS-007 | 权限边界 | 跨店、跨角色、未登录、过期 token 均按预期拦截 | | PASS-008 | 异常体验 | 冲突、容量已满、非法手机号、错误验证码等均有明确中文提示 | | PASS-009 | 页面稳定性 | 核心页面不空白、不报错、按钮不遮挡、移动端布局可用 | diff --git a/scripts/sql/init/YumiNail.sql b/scripts/sql/init/YumiNail.sql index e1e6eeba..b6ce2213 100644 --- a/scripts/sql/init/YumiNail.sql +++ b/scripts/sql/init/YumiNail.sql @@ -1,4 +1,4 @@ --- YumiNail 最小运行初始化 SQL +-- Fingertip Designer 最小运行初始化 SQL -- 说明: -- 1. 首次部署空库时,只需要执行本文件即可完成基础建表、结构补丁、权限种子、基础参数、协议、MessageHub、VIP 规则与管理员初始化。 -- 2. 2026-03-20_user_asset_vip_coupon_permission_patch.sql、2026-03-25_user_shop_binding_and_shop_status_patch.sql、 @@ -1489,7 +1489,8 @@ CREATE TABLE IF NOT EXISTS t_appointment_reservation product_title varchar(200) NULL COMMENT '预约作品标题快照', appointment_start_time datetime NOT NULL COMMENT '预约开始时间', appointment_end_time datetime NOT NULL COMMENT '预约结束时间', - status varchar(20) NOT NULL DEFAULT 'LOCKED' COMMENT '状态:LOCKED/CONFIRMED/RELEASED/CANCELLED', + status varchar(20) NOT NULL DEFAULT 'LOCKED' COMMENT '状态:LOCKED/PENDING_QUOTE/CONFIRMED/RELEASED/CANCELLED/EXPIRED', + client_request_id varchar(80) NULL COMMENT '客户端幂等请求ID', create_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', update_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', is_delete tinyint unsigned DEFAULT 0 NULL COMMENT '逻辑删除:0-未删,1-已删', @@ -1653,7 +1654,9 @@ CREATE TABLE IF NOT EXISTS t_user_growth_record CALL sp_add_unique_index_if_not_exists('t_artist_schedule', 'uk_t_artist_schedule_slot', '(`shop_id`, `artist_id`, `work_date`, `start_time`, `is_delete`)'); CALL sp_add_index_if_not_exists('t_artist_schedule', 'idx_t_artist_schedule_artist_date', '(`artist_id`, `work_date`, `status`, `is_delete`)'); CALL sp_add_index_if_not_exists('t_artist_schedule', 'idx_t_artist_schedule_shop_date', '(`shop_id`, `work_date`, `status`, `is_delete`)'); +CALL sp_add_column_if_not_exists('t_appointment_reservation', 'client_request_id', 'varchar(80) NULL COMMENT ''客户端幂等请求ID'''); CALL sp_add_unique_index_if_not_exists('t_appointment_reservation', 'uk_t_appointment_reservation_item', '(`order_item_id`, `is_delete`)'); +CALL sp_add_unique_index_if_not_exists('t_appointment_reservation', 'uk_t_appointment_reservation_client_request', '(`shop_id`, `artist_id`, `client_request_id`, `is_delete`)'); CALL sp_add_index_if_not_exists('t_appointment_reservation', 'idx_t_appointment_reservation_artist_time', '(`artist_id`, `status`, `appointment_start_time`, `appointment_end_time`, `is_delete`)'); CALL sp_add_index_if_not_exists('t_appointment_reservation', 'idx_t_appointment_reservation_order', '(`order_id`, `status`, `is_delete`)'); CALL sp_add_index_if_not_exists('t_appointment_reservation', 'idx_t_appointment_reservation_shop_time', '(`shop_id`, `appointment_start_time`, `status`, `is_delete`)'); @@ -1728,7 +1731,7 @@ CREATE TABLE IF NOT EXISTS `t_messagehub_push_config` ( PRIMARY KEY (`id`), UNIQUE KEY `uk_messagehub_push_config_scene` (`scene_code`), KEY `idx_messagehub_push_config_enabled` (`enabled`, `is_delete`) -) COMMENT='YumiNail按业务场景投递MessageHub的配置'; +) COMMENT='Fingertip Designer按业务场景投递MessageHub的配置'; DROP PROCEDURE IF EXISTS sp_add_column_if_not_exists; DROP PROCEDURE IF EXISTS sp_add_index_if_not_exists; @@ -2392,8 +2395,8 @@ DEALLOCATE PREPARE stmt_system_parameter_enabled; INSERT INTO t_legal_agreement (id, agreement_type, title, version, content, status, effective_time, create_time, update_time, is_delete) VALUES - (313931273555138001, 'USER_TERMS', '用户协议', '2026.05.18', '欢迎使用 YumiNail。请在使用账号、预约、订单、会员、消息等功能前仔细阅读本协议。继续登录或注册即表示你已理解并同意平台基础服务规则、账号安全要求、订单预约规则和依法合规使用要求。', 1, NOW(), NOW(), NOW(), 0), - (313931273555138002, 'PRIVACY_POLICY', '隐私政策', '2026.05.18', 'YumiNail 会在提供登录注册、预约下单、会员余额、消息通知和客户服务时处理必要的手机号、昵称、门店归属、订单与设备信息。我们仅在业务需要和法律允许范围内使用这些信息,并采取访问控制、脱敏展示和审计记录等措施保护数据安全。', 1, NOW(), NOW(), NOW(), 0) + (313931273555138001, 'USER_TERMS', '用户协议', '2026.05.18', '欢迎使用 Fingertip Designer 指尖设计师。请在使用账号、预约、订单、会员、消息等功能前仔细阅读本协议。继续登录或注册即表示你已理解并同意平台基础服务规则、账号安全要求、订单预约规则和依法合规使用要求。', 1, NOW(), NOW(), NOW(), 0), + (313931273555138002, 'PRIVACY_POLICY', '隐私政策', '2026.05.18', 'Fingertip Designer 指尖设计师会在提供登录注册、预约下单、会员余额、消息通知和客户服务时处理必要的手机号、昵称、门店归属、订单与设备信息。我们仅在业务需要和法律允许范围内使用这些信息,并采取访问控制、脱敏展示和审计记录等措施保护数据安全。', 1, NOW(), NOW(), NOW(), 0) ON DUPLICATE KEY UPDATE title = VALUES(title), content = VALUES(content),