PUT /admin/point-rules/{id}
管理员操作,部分更新积分规则字段,仅更新请求中提供的字段(name、event_type、points、multiplier、daily_limit、total_limit、enabled)。
积分服务 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
id |
path |
string |
Yes |
|
|
|
规则ID |
Request Body
Schema: dto.UpdatePointRuleRequest
| Field | Type | Required | Example | Constraints | Description |
daily_limit |
integer |
No |
|
|
|
enabled |
boolean |
No |
|
|
|
event_type |
string |
No |
|
|
|
multiplier |
number |
No |
|
|
|
name |
string |
No |
|
|
|
points |
integer |
No |
|
|
|
total_limit |
integer |
No |
|
|
|
Referenced Schemas
dto.PointRuleDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.PointRuleResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.PointRuleResponse
| Field | Type | Required | Example | Constraints | Description |
created_at |
string |
No |
2026-01-15T10:30:00Z |
|
|
daily_limit |
integer |
No |
3 |
|
|
enabled |
boolean |
No |
True |
|
|
event_type |
string |
No |
daily_checkin |
|
|
expiry_days |
integer |
No |
365 |
|
|
id |
string |
No |
01ARZ3NDEKTSV4RRFFQ69G5FAV |
|
|
multiplier |
number |
No |
1.5 |
|
|
name |
string |
No |
每日签到 |
|
|
points |
integer |
No |
10 |
|
|
priority |
integer |
No |
1 |
|
|
tenant_id |
string |
No |
tnt_example_001 |
|
|
total_limit |
integer |
No |
100 |
|
|
updated_at |
string |
No |
2026-04-10T14:20:00Z |
|
|
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|