#4e49e
Back
2026/01/07
2 min read

派獎異常處理 - by 派獎紀錄(獎/人)

派獎異常處理 - by 派獎紀錄(獎/人).md
14 additions, 6 deletions
... ... @@ -25,7 +25,7 @@
25 - * PATH: `/api/features/award/compensate/record/<int:record_id>`
25 + * PATH: `/api/features/award/compensate/record`
26 - ```dpr
26 + #### BODY
27 +
28 +| Level | Name | Type/Len | Nullable(*) | Desc |
29 +| ---| ---| ---| ---| --- |
30 +| 1 | record_ids | List[Int] | | List of record IDs to compensate |
31 +
32 +```yaml
27 - POST /api/features/award/compensate/record/3001
33 + POST /api/features/award/compensate/record
34 +# payload
35 +{
36 + "record_ids": [1001, 1002, 1003, ...more]
37 +}
28 - * 201
38 + * 202
29 -| 404 | AwardCompensateError.RECORD_NOT_FOUND | Award record not found | 派獎紀錄不存在 |
30 -| 409 | AwardCompensateError.RECORD_NOT_FAIL | Award record is not in FAIL status | 派獎紀錄狀態不是失敗 |