新增通过手机号获取排队信息的内部接口

This commit is contained in:
2026-07-22 12:19:38 +08:00
parent de8e09f7c5
commit 32decdb15c
6 changed files with 114 additions and 1 deletions

View File

@@ -56,6 +56,12 @@ endpoint. It accepts `{ "phone": "..." }` and returns all current active
tickets associated with that phone. It is disabled when `APP_ENV=production`;
replace it with OTP or an external identity interface before formal launch.
`POST /api/internal/status/search` exposes the same active-ticket lookup to
trusted backend services in every environment. It accepts `{ "phone": "..." }`
and only allows direct peers on private or loopback networks. Do not publish
this path through the public Ingress; callers must use the internal service
address. Forwarded client-IP headers are intentionally ignored.
## Tests
```sh