# Backend Design: ECR-049 WeChat Auth + Consult Gateway | Field | Value | |-------|-------| | ID | BD-2026-049 | | Status | **Approved** | | Coding | **In progress** | | Migration | `000058_wechat_auth_gateway` | ## Boundary ```text POST /api/v1/auth/wechat { code, encryptedData, iv } → existing SessionResult users.wx_openid UNIQUE · wx_unionid · java_platform_user_id user_sessions.java_access_token ANY /api/app-api/* → JAVA_BASE/app-api/* (Go Bearer → Java Bearer) ANY /api/admin-api/* → JAVA_BASE/admin-api/* Java POST /app-api/oauth/internal/issue-mini-app (X-Internal-Key) Identity: wx_openid = t_platform_user_account.account (mini_app) phone = t_platform_user.mobile ``` ## Out Module migrate · Java decommission · Admin auth · auto ECR-050