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.6 KiB
1.6 KiB
新手引导状态(onboarding 族)
所属:User 组(前缀
/api/v1/user) | 鉴权:全部 Bearer | ← 返回 API 索引
按(账号, 设备)维度跟踪新手引导完成状态,跨卸载重装持久。运营可在 admin 删记录触发重走。
GET /onboarding/status — 查新手引导是否已完成
已登录用户启动时查:该(账号, 设备)走过引导没。false → 客户端应重走。
入参(query)
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
device_id |
string | ❌(≤64 位) | 硬件级 ANDROID_ID;空 = 按未完成处理(不误跳过) |
Mock 请求:
GET /api/v1/user/onboarding/status?device_id=android_abc123def456
出参
响应 200:OnboardingStatusResponse
| 字段 | 类型 | 说明 |
|---|---|---|
completed |
bool | 该(设备+账号)是否已走过新手引导 |
Mock 出参:
{"completed": true}
POST /onboarding/complete — 标记新手引导完成
走完新手引导时调一次。按(当前账号, device_id)落一条完成标记,幂等(重复调用不报错)。
入参
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
device_id |
string | ✅ | 硬件级 ANDROID_ID(与登录请求一致) |
Mock 入参:
{
"device_id": "android_abc123def456"
}
出参
{"ok": true}
说明
- 替代原
force_onboarding(按用户)→ 改设备维度后,运营删记录即触发重走 - 幂等:重复标记不报错
device_id为空时status一律返回未完成