Victor_Jay
3df7b2e672
fix: Service 层移除直接持有的 *gorm.DB,引入 Repository Transaction 方法
- ReactionStore/FollowStore/EnergyStore/FavoriteStore 接口新增 Transaction 方法
- EnergyStore.Transaction 支持跨仓库事务(EnergyStore + FundStore)
- ReactionRepo/FollowRepo/FavoriteRepo/EnergyRepo 实现 Transaction 方法
- ReactionRepo 新增 GetPostLikesCount 方法,消除 Service 直查 DB
- ReactionService/FollowService/FavoriteService/EnergyService 移除 db 字段
- EnergyRepo 通过 SetFundStore 注入 FundStore 用于跨仓库事务
- 更新 deps_extra.go 构造函数调用
2026-06-02 16:46:44 +08:00
..
2026-05-31 12:46:06 +08:00
2026-06-02 15:45:54 +08:00
2026-06-02 15:45:54 +08:00
2026-06-02 15:45:54 +08:00
2026-06-02 15:45:54 +08:00
2026-05-31 02:42:27 +08:00
2026-06-01 14:05:47 +08:00
2026-06-02 16:46:44 +08:00
2026-06-02 16:46:44 +08:00
2026-06-02 16:46:44 +08:00
2026-06-02 15:45:54 +08:00
2026-06-02 16:46:44 +08:00
2026-06-02 16:46:44 +08:00
2026-06-02 16:46:44 +08:00
2026-06-02 16:46:44 +08:00
2026-06-01 14:05:47 +08:00
2026-06-02 15:45:54 +08:00
2026-06-02 15:45:54 +08:00
2026-06-02 15:45:54 +08:00
2026-06-02 15:45:54 +08:00
2026-06-02 15:45:54 +08:00
2026-06-02 16:46:44 +08:00
2026-06-02 16:46:44 +08:00
2026-05-31 11:13:32 +08:00
2026-05-27 13:32:45 +08:00
2026-06-02 15:21:37 +08:00
2026-06-01 17:33:59 +08:00