PUT /admin/wallets/coupons/{coupon_id}
更新指定优惠券
钱包服务 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
id |
path |
string |
Yes |
|
|
|
优惠券ID |
Request Body
Schema: dto.UpdateCouponRequest
| Field | Type | Required | Example | Constraints | Description |
code |
string |
No |
|
|
|
expires_at |
string |
No |
|
|
|
min_spend |
string |
No |
|
|
|
name |
string |
No |
|
|
|
type |
string |
No |
|
|
|
value |
string |
No |
|
|
|
Referenced Schemas
dto.CouponCreateDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.CouponCreateResult |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.CouponCreateResult
| Field | Type | Required | Example | Constraints | Description |
code |
string |
No |
SUMMER2026 |
|
优惠券码 |
coupon_id |
string |
No |
cpn_abc123 |
|
优惠券ID |
currency |
string |
No |
CNY |
|
货币 |
expires_at |
string |
No |
2026-12-31T23:59:59Z |
|
过期时间 |
status |
string |
No |
active |
|
状态 |
type |
string |
No |
discount |
|
类型 |
value |
string |
No |
10.00 |
|
价值 |
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|