feat: add order idempotency
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user