使用指南 / User Guide

普通用户 · 社区基地方 · 管理员 — 中英双语 / Bilingual

NextStop 使用指南 / User Guide

中英双语。面向三类使用者:普通用户社区与基地方管理员。 Bilingual. Three audiences: Visitors, Communities & Spaces, Admins.

线上站点 / Live site: https://nextstop.pages.dev


1. 普通用户 / For Visitors

中文

English


2. 社区与基地方 / For Communities & Spaces

中文

English

开放只读 API / Public read-only API

方法 / Method路径 / Path说明 / Description
GET/api/health服务与数据库健康检查 / Service + DB health
GET/api/cities已发布城市列表 / Published cities
GET/api/communities?city=<slug>社区列表,可按城市过滤 / Communities, optional city filter
GET/api/events已发布活动列表 / Published events
GET/api/search?q=<关键词>&limit=<1-20>跨城市/社区/活动搜索 / Search across all three

提交类接口 / Submission endpoints:POST /api/submissions/{join|stay|community|event},请求体为 JSON。 返回统一为 { "ok": true, "data": … }{ "ok": false, "error": { "code", "message" } }


3. 管理员 / For Admins

中文

English

说明 / Note:后台目前用单一令牌鉴权(pre-auth 阶段的过渡方案),尚无每用户登录 / 角色权限; 真正的邮箱/OAuth 登录与会话角色是后续计划项(见 docs/backend-plan.md P3)。 The console currently uses single-token auth (a pre-auth stopgap); per-user login and role checks are planned (see docs/backend-plan.md P3).