Commit Graph

19 Commits

Author SHA1 Message Date
zetaloop f0048f9e12 fix: 游戏创建与打手详情接口未返回数据
AddGamesResp 加 Games 字段,创建后查询回填。Game.Id 加 optional
避免请求解析时要求传 id。getPlayerLogic 初始化 resp 避免 copier
写入 nil 指针。补跑 ent go generate 确保 userfollows schema 与
生成代码一致。
2026-04-05 17:43:57 +08:00
zetaloop 168cec6d57 fix: admin 初始化在数据库未就绪时静默失败
initAdmin 改为后台 goroutine 并重试最多 30 秒,避免 users-rpc
启动时 PostgreSQL 尚未接受连接导致管理员账户创建失败。
2026-04-05 17:30:35 +08:00
zetaloop de32143b6d fix: 用户信息更新返回类型与关注建表缺陷
updateMeLogic 更新后重新查询并返回 User 类型,修复 converter 转换
空响应的错误。proto_string 不再丢弃含空格的字符串。userfollows
ent schema 补上 created_at 的 Default(time.Now)。
2026-04-05 17:04:48 +08:00
zetaloop 4625363d5a fix: admin 审批链路查询条件缺失与网关路由缺失
SearchUserVerifications 查询条件硬编码了 user_id=0 导致 admin 查询
始终返回空列表,改为条件构建模式。envoy 缺少 /api/v1/admin 前缀
路由导致审批接口 404。新增 users-rpc 启动时从环境变量自动初始化
管理员账户。
2026-04-05 16:53:15 +08:00
zetaloop 384471edca fix: 对齐 authz 认证链路 2026-04-05 12:06:39 +08:00
zetaloop d1981c23ab fix: 审核通过后允许切换已认证角色 2026-04-03 23:29:19 +08:00
zetaloop f1baefdf47 fix: 用户信息接口补全 role 字段 2026-04-03 22:34:26 +08:00
zetaloop 7ccb97b2e2 fix: 登录和注册返回完整用户信息 2026-04-03 22:34:26 +08:00
zetaloop 15c940a3e9 fix: GetUserByUsername RPC 查询逻辑 2026-04-03 22:33:49 +08:00
zetaloop 5ff573f8fc refactor: 统一认证响应 2026-04-03 17:46:51 +08:00
wwweww e7970ac25f fix: some api bug 2026-03-31 22:12:06 +08:00
wwweww 19cc7a778c Refactor: Remove deprecated gRPC service files and implement new API structure
- Deleted old gRPC service definitions in `game_grpc.pb.go` and `public.go`.
- Added new API server implementations for objectstory, player, and shop services.
- Introduced configuration files for new APIs in `etc/*.yaml`.
- Created main entry points for each service in `objectstory.go`, `player.go`, and `shop.go`.
- Removed unused user update handler and user API files.
- Added utility functions for context management and HTTP header parsing.
- Introduced PostgreSQL backup configuration in `backup/postgreSql.yaml`.
2026-02-28 18:35:56 +08:00
wwweww 5930fb0dde add: some user api and all api desc 2026-02-27 19:17:01 +08:00
wwweww a0c720eb2f add: user accomplished 2026-02-27 05:42:13 +08:00
wwweww 659168fe32 feat: add authz-adapter service and Envoy ext_authz integration
- Implemented authz-adapter deployment and service for Envoy gRPC authorization.
- Created PowerShell script to generate JWK for JWT authentication.
- Documented the integration of ext_authz with user-rpc.ValidateToken in ENVOY_EXT_AUTHZ_ADAPTER.md.
- Added comprehensive Envoy Gateway configuration guide with JWT authentication and access control in ENVOY_GATEWAY_GUIDE.md.
2026-02-26 06:08:35 +08:00
wwweww 60b6f40f9f add: user auth accomplished 2026-02-26 02:17:07 +08:00
wwweww 300058ad01 add: anowflake email kafka, refa: redis connectg 2026-02-25 01:16:13 +08:00
wwweww fdbcde13b2 add: 2026-02-23 20:36:21 +08:00
wwweww 4898aecd3b add: envoy redis 2026-02-23 15:54:33 +08:00