Files
junhong_cmp_fiber/.scratch/iot-risk-import-voucher-remark/issues/06-order-voucher-multi.md
break c0b9604515
Some checks failed
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Has been cancelled
完成
2026-06-23 11:05:58 +09:00

1.1 KiB
Raw Blame History

Status: done

Parent

.scratch/iot-risk-import-voucher-remark/PRD.md

What to build

将后台创建订单接口的凭证字段从单个字符串改为最多5个字符串的列表

  • CreateAdminOrderRequest.payment_voucher_keystring[]stringvalidate 限制 max=5,每项 max=500
  • OrderResponse.payment_voucher_key(以及所有订单相关响应 DTOstring[]string
  • Order Model 的 PaymentVoucherKey 字段类型改为适配 jsonb 的 pq.StringArray 或自定义 JSON 类型
  • Order Service 中读写 payment_voucher_key 的逻辑同步更新

Schema 变更已由 issues/05-voucher-multi-migration.md 完成。

Acceptance criteria

  • 后台创建订单接口接受 payment_voucher_key []string0-5个元素offline 支付时至少需要1个
  • 订单列表/详情接口返回 payment_voucher_key []string
  • 传入超过5个凭证 key 时返回参数校验错误
  • 现有无凭证的订单wallet 支付)返回空数组,不报错

Blocked by

  • issues/05-voucher-multi-migration.md