阶段十:完成 Go Server 注释基线清零

This commit is contained in:
Christ committed 2026-08-15 04:56:57 +08:00
1 parent 6257fad453
commit c47271ae9c
64 files changed
+4217 -30552

No files matched your search

+1
View File
@@ -8,6 +8,7 @@ import (
// withTransaction 在 Server 应用层统一创建、提交或回滚数据库事务。
// 调用方只描述事务内的数据库操作,不再直接管理事务生命周期。
// withTransaction 负责withTransaction相关处理。
func (s *Server) withTransaction(ctx context.Context, work func(*sql.Tx) error) error {
// repository 是当前 Server 装配的事务执行边界。
repository := s.transactionRepository