feat(qaops): 接通网页通讯录持久化同步与后台接管

This commit is contained in:
姚章浩
2026-10-17 17:36:07 +08:00
parent 6adfdcdd4f
commit cc4906b6a9
25 changed files with 1203 additions and 24 deletions
@@ -20,6 +20,12 @@ var ErrOperationRequestConflict = errors.New("operation request conflicts with a
type operationExecutor func(pgx.Tx) (json.RawMessage, error)
// ExecuteOperation lets bounded modules share the durable operation transaction
// instead of caching responses after their business writes have committed.
func (s *Store) ExecuteOperation(ctx context.Context, operationType, operationID, fingerprint string, now time.Time, execute func(pgx.Tx) (json.RawMessage, error)) (json.RawMessage, bool, error) {
return s.executeOperation(ctx, operationType, operationID, fingerprint, now, execute)
}
func (s *Store) RouteCatalogFilesWithOperation(ctx context.Context, request governance.CatalogRouteRequest, operationID string) (governance.CatalogRouteResult, bool, error) {
if err := validateCatalogRouteRequest(request); err != nil {
return governance.CatalogRouteResult{}, false, err