feat: 档口入库码后台批量回写 (#246)
This commit is contained in:
@@ -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 把五个模块的页面路由挂上去。
|
||||
|
||||
Reference in New Issue
Block a user