30 lines
1.2 KiB
Markdown
30 lines
1.2 KiB
Markdown
Status: done
|
||
|
||
## Parent
|
||
|
||
`.scratch/iot-risk-import-voucher-remark/PRD.md`
|
||
|
||
## What to build
|
||
|
||
将退款申请接口的凭证字段从单个字符串改为最多5个字符串的列表:
|
||
|
||
- `CreateRefundRequest.refund_voucher_key`:`string` → `[]string`,validate 限制 `max=5`,每项 `max=500`,required(至少1个)
|
||
- `ResubmitRefundRequest.refund_voucher_key`:`*string` → `*[]string`(重新提交时可选替换)
|
||
- `RefundResponse.refund_voucher_key`(以及所有退款相关响应 DTO):`string` → `[]string`
|
||
- Refund Model 的 `RefundVoucherKey` 字段类型改为适配 jsonb 的类型
|
||
- Refund Service 中读写 `refund_voucher_key` 的逻辑同步更新
|
||
|
||
Schema 变更已由 `issues/05-voucher-multi-migration.md` 完成。
|
||
|
||
## Acceptance criteria
|
||
|
||
- [ ] 创建退款申请接口接受 `refund_voucher_key []string`(1-5个元素,必填)
|
||
- [ ] 重新提交退款接口的 `refund_voucher_key` 可选,传入时替换全部凭证
|
||
- [ ] 退款列表/详情接口返回 `refund_voucher_key []string`
|
||
- [ ] 传入超过5个凭证 key 时返回参数校验错误
|
||
- [ ] 传入空数组时返回参数校验错误(至少需要1个)
|
||
|
||
## Blocked by
|
||
|
||
- `issues/05-voucher-multi-migration.md`
|