Commit Graph

10 Commits

Author SHA1 Message Date
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 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 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 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
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