
lhmin0604andClaude
8438fea72f
feat(r2): 前端 API 层——地址/设计清单切换到后端接口(阶段2)
- api/address.ts: fetchAddresses/createAddress/updateAddress/deleteAddress/
setDefaultAddress;region[] ↔ province/city/district 双向转换唯一落点
- api/design.ts: fetchDesignList/createDesign/updateDesign/deleteDesign/
deleteDesigns;状态映射 DRAFT↔undesigned、SUBMITTED↔designing、
PROCESSING↔processing、DONE↔ordered;一条设计=一条清单(items 固定 1 元素,
title=productName,productIcon 不上传由页面按 productId 兜底)
- types/index.ts: DesignItem.status 补 'processing'、productIcon 改 optional、
AddressItem 补 createdAt?;全部消费点已确认兼容(均有兜底)
- docs/r2-workflow.md: R2 工作流程与阶段0 契约确认记录
验证:build:weapp 通过;Node 打桩 Taro.request 转发本地 3091 后端实测
13 项全过(region 往返/状态映射/designData 保留/越权 403/无效 token 401)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-09-12 03:10:51 +08:00
..
2026-08-10 01:56:09 +08:00
2026-08-08 03:57:47 +08:00
2026-08-10 01:56:09 +08:00
2026-08-10 01:56:09 +08:00
2026-09-12 03:10:51 +08:00
2026-08-08 03:57:47 +08:00
2026-08-10 01:56:09 +08:00
2026-08-10 01:56:09 +08:00
2026-08-10 01:56:09 +08:00
2026-09-12 03:10:51 +08:00
2026-08-08 04:26:44 +08:00
2026-08-10 01:56:09 +08:00
2026-08-08 04:26:44 +08:00
2026-08-10 01:56:09 +08:00
2026-09-12 03:10:51 +08:00