Commit Graph

16 Commits

Author SHA1 Message Date
zetaloop cf639f1bca fix: int64 ID 字段序列化为 JSON string 2026-05-03 05:58:21 +08:00
zetaloop 5ad579f03c fix: 复合主键表改为单字段 id 以支持 ent 完整生成 2026-04-24 07:32:52 +08:00
zetaloop 809dbf2cac fix: 统一所有 RPC 分页校验为 max=100 并补齐默认值 2026-04-24 06:46:40 +08:00
zetaloop 198c761063 fix: 补全 ShopProfile 和 Post 响应中缺失的后端字段
ShopProfile 补上 allowMultiShop/allowIndependentOrders/dispatchMode,Post 补上 pinned/linkedOrderId。这些字段在 RPC proto、数据库和写入逻辑中均已存在,但 API 响应类型和映射函数遗漏了它们。同时补回 community.api 中 CreateCommentReq 的 PostId 字段定义。
2026-04-23 20:36:44 +08:00
zetaloop fbfdedb3ed fix: 复合主键表 shop_players 的 update 改用原生 SQL
ent 的 Update().Where() 对复合主键表会报 "sql/sqlgraph: invalid composite id for update table",这是 ent 框架已知的限制(field.ID 复合主键仅对 edge schema 完整支持)。同表的 Create/Delete/Query 操作不受影响,仅 Update 需要绕过。在 ServiceContext 中暴露底层 *sql.DB 以供 ExecContext 执行原生 SQL。
2026-04-23 16:59:38 +08:00
zetaloop b10d97117e fix: 为移除打手端点使用独立的 path 参数请求类型 2026-04-23 16:29:53 +08:00
zetaloop 83a2f243f4 feat: 添加店铺邀请列表查询接口并修复 responded_at 未写入 2026-04-23 15:54:12 +08:00
zetaloop d153b5cf51 fix: 统一分页请求的 offset 语义 2026-04-23 01:06:58 +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 93679d2ff3 fix: 店铺邀请改为查找打手身份 2026-04-04 07:05:11 +08:00
zetaloop 7dc088eadf fix: shop_players 关系表主键与模型对齐 2026-04-04 07:05:11 +08:00
zetaloop 98aac81b43 fix: 修正打手更新执行缺失与店铺 owner_id 持久化错误 2026-04-04 01:43:02 +08:00
zetaloop 93e6b5609c fix: 各服务 DEV CONF 配置规范化 2026-04-01 20:19:36 +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 d2f33b4b96 fix: api descript 2026-02-28 05:33:16 +08:00