b23335d5fb
docs: reorganize api docs into categorized subdirectories and fill missing docs - Categorize 77 existing api docs into 16 business-domain subdirectories (auth/ad/wallet/coupon/compare/savings/signin/tasks/invite/user/ device/platform/intent/meituan/other) plus admin/ and internal/ - Split admin/ into 7 sub-resource subdirectories (auth/users/wallet/ withdraws/feedbacks/admins/ad) with 4 single-file docs at root - Create 21 new docs covering 28 previously undocumented endpoints: ad/watch-report, wallet/transfer-auth (3 endpoints), coupon/session+ stats+completed-today+prompt (7), invite/me+invitees+bind+landing-track, user/onboarding (2), platform/flags+ad-config+app-version, intent/step+precoupon/step, analytics/events, order/report, report/submit+records, feedback/config+records, trace/finalize - Add mock request/response JSON examples to all new docs - Create docs/README.md with full category index for LLM navigation - Update docs/api/README.md: fix all links, add new endpoint rows, replace "no doc" markers with actual links - Fix back-navigation links (./README.md -> ../README.md or ../../README.md) in all moved files @
34 lines
1.2 KiB
Markdown
34 lines
1.2 KiB
Markdown
# POST /api/v1/signin/boost — 签到后看广告膨胀金币
|
|
|
|
用户 Day1-Day13 当天已签到后,看完一条激励视频,由穿山甲 S2S 回调固定补发 2000 金币。本接口只用于 S2S 发奖后的确认。
|
|
|
|
## 鉴权
|
|
|
|
需要 Bearer token。
|
|
|
|
## 请求体
|
|
|
|
| 字段 | 类型 | 必填 | 说明 |
|
|
|---|---|---:|---|
|
|
| `ad_ref_id` | string | 是 | 穿山甲 S2S 回调的 `trans_id`。回调需先以 `extra.reward_scene=signin_boost` 完成发奖 |
|
|
|
|
## 响应
|
|
|
|
| 字段 | 类型 | 说明 |
|
|
|---|---|---|
|
|
| `coin_awarded` | int | 本次膨胀补发金币 |
|
|
| `coin_balance` | int | 补发后的金币余额 |
|
|
| `signin_date` | string | 被膨胀的签到日期,格式 `YYYY-MM-DD` |
|
|
|
|
## 错误
|
|
|
|
- `401`: 未登录
|
|
- `409`: 缺少/无效广告回调记录,非本人广告,回调未发奖,当天未签到,Day14,或当天已经膨胀过
|
|
|
|
## 数据写入
|
|
|
|
- 本接口不直接发奖;实际写入发生在 `/ad/pangle-callback` 的 `reward_scene=signin_boost` 分支。
|
|
- 回调写 `signin_boost_record` 新增一行,用 `(user_id, signin_date)` 唯一约束防重复。
|
|
- 回调使 `coin_account` 增加固定 `2000` 金币。
|
|
- 回调写入 `coin_transaction.biz_type=signin_boost`。
|