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 @
1.3 KiB
1.3 KiB
GET /api/v1/savings/battle — 省钱战绩
所属:Savings 组(前缀
/api/v1/savings) | 鉴权:Bearer | ← 返回 API 索引
入参
无(用户由 token 确定)。
出参
响应 200:SavingsBattleOut
| 字段 | 类型 | 说明 |
|---|---|---|
week_saved_cents |
int | 本周已省(分) |
beat_percent |
int | 超过百分之多少用户 |
streak_days |
int | 连续省钱天数 |
compare_count |
int | 累计完成比价次数(= 真实 compare 上报记录数;无记录为 0) |
说明
下单成交口径(savings_record 源)的战绩字段。compare_count 与 /summary 的 order_count 同源(均 = 真实下单上报记录数)。
⚠️ 2026-06 起停用 demo 兜底:只计真实比价下单上报(
source='compare')。下单上报链路已通(AndroidPriceBotService→POST /api/v1/order/report)。
⚠️ 「我的」页省钱战绩卡已不读本接口:#23 起卡改为比价口径,「完成比价 / 累计发现可省」走
GET /api/v1/compare/stats(comparison_record,比过价就计、不要求下单),「赚取金币」走/wallet/account.total_coin_earned。本/battle(及compare_count/week_saved_cents/beat_percent/streak_days)现仅供订单口径/历史用途,不上战绩卡。