feat(qaops): 接通网页通讯录持久化同步与后台接管
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user