35 Commits

Author SHA1 Message Date
zetaloop 9a32850030 feat: admin 使用固定 ID 并补全全角色权限和演示数据 2026-05-03 08:21:28 +08:00
zetaloop 776ecc479f fix(users-rpc): 移除未使用的 DataSource 配置字段 2026-05-03 07:57:19 +08:00
zetaloop 429a1df32a refactor: 启用 conf.UseEnv 并将 etc 配置统一为 env 占位 2026-05-03 07:57:19 +08:00
zetaloop cf639f1bca fix: int64 ID 字段序列化为 JSON string 2026-05-03 05:58:21 +08:00
zetaloop b415751c87 fix: 脱敏认证请求日志 2026-04-25 06:54:38 +08:00
zetaloop 5348966633 fix: 调整 chat WS/WT dev 接入
WT 目前沿用 JToken 的 JWT 校验;撤销一致性留到后续 WT 专用网关设计。
2026-04-25 06:54:00 +08:00
zetaloop 1936533244 feat: 添加 GetUsersByIds 批量用户查询接口 2026-04-24 06:46:40 +08:00
zetaloop 809dbf2cac fix: 统一所有 RPC 分页校验为 max=100 并补齐默认值 2026-04-24 06:46:40 +08:00
zetaloop d596d41e1a fix: 统一重置密码验证码的 scene 常量 2026-04-23 14:58:25 +08:00
zetaloop d153b5cf51 fix: 统一分页请求的 offset 语义 2026-04-23 01:06:58 +08:00
zetaloop 424b2b1cca fix: 统一管理员认证列表的分页参数为 offset/limit 2026-04-23 01:04:48 +08:00
zetaloop 65787c6583 fix: 管理员认证列表按第一页返回待审批申请 2026-04-23 01:01:47 +08:00
zetaloop b3db04c9cc fix: unify user ID type to string and rename service to users-api 2026-04-22 22:03:49 +08:00
zetaloop 59a60e8126 fix: admin 登录后 JWT 未携带 is_admin 的问题 2026-04-06 12:30:03 +08:00
zetaloop dc076e19ae chore: 清理死代码与空壳中间件
删除 email handler/user/ 和 logic/user/ 下未被 routes.go 引用的
重复 forgotPasswordHandler。删除 jwtauthMiddleware 空壳。
2026-04-05 18:22:48 +08:00
zetaloop 62442a324a fix: 密码重置链路断裂与店铺模板类型不兼容
删除 users-api 的 forgot-password 空壳路由,email-api 的
forgotPasswordLogic 复用 sendVerificationCode 实现。shop 的
UpdateTemplateReq.Sections 从 interface{} 改为 string 以兼容
go-zero 反序列化。ResetPasswordReq.Phone 加 optional tag。
2026-04-05 17:59:56 +08:00
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