POST /admin/points/batch-earn
管理员操作,一次请求向多个用户发放积分。逐条处理,每条记录独立处理,某条失败不影响其他记录。
积分服务 `bearerAuth` application/json
Referenced Schemas
dto.BatchEarnItem
| Field | Type | Required | Example | Constraints | Description |
amount |
integer |
No |
100 |
|
|
error |
string |
No |
|
|
|
new_balance |
integer |
No |
1100 |
|
|
success |
boolean |
No |
True |
|
|
user_id |
string |
No |
user-001 |
|
|
dto.BatchEarnResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.BatchEarnResult |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.BatchEarnResult
| Field | Type | Required | Example | Constraints | Description |
failed_count |
integer |
No |
1 |
|
|
results |
array of
See dto.BatchEarnItem |
No |
|
|
|
success_count |
integer |
No |
3 |
|
|
dto.BatchEarnUser
| Field | Type | Required | Example | Constraints | Description |
amount |
integer |
Yes |
|
|
|
user_id |
string |
Yes |
|
|
|
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|