feat: 档口入库码后台批量回写 (#246)

This commit is contained in:
chengma
2026-08-15 17:08:17 +08:00
parent 6b30594f4c
commit f8f22a15c7
21 changed files with 708 additions and 134 deletions
+3
View File
@@ -13,6 +13,7 @@ import (
"database/sql"
"net/http"
"net/url"
"sync"
"time"
"github.com/gin-gonic/gin"
@@ -29,6 +30,8 @@ type Handler struct {
onlineThreshold time.Duration
aiSecrets service.AISecretStore
aiPolicy service.AIEndpointPolicy
// innerCodeApplyMu 保证真实顺运宝回写批次串行执行,避免共享会话和远端写入并发。
innerCodeApplyMu sync.Mutex
}
// Register 把五个模块的页面路由挂上去。