feat: add order idempotency

This commit is contained in:
2026-01-08 16:31:51 +08:00
parent b6c661fb3d
commit 8ac82aaeb0
2 changed files with 23 additions and 1 deletions

View File

@@ -9,6 +9,8 @@ type OrderCreateForm struct {
Quantity int `json:"quantity"`
// UserCouponID 用户券ID可选
UserCouponID int64 `json:"user_coupon_id"`
// IdempotencyKey 幂等键(同一业务请求需保持一致)。
IdempotencyKey *string `json:"idempotency_key"`
}
type OrderCreateResponse struct {