feat(t225): freeze Go ERP protocol contract

This commit is contained in:
QiuSW
2026-07-29 09:21:32 +08:00
parent 11e480773a
commit c2f340d067
13 changed files with 836 additions and 31 deletions
@@ -14,11 +14,13 @@ import (
)
var (
ErrNotConfigured = errors.New("ERP connector is not configured")
ErrSessionRequired = errors.New("ERP session is required")
ErrNotFound = errors.New("ERP freight order not found")
ErrUnavailable = errors.New("ERP connector is unavailable")
ErrProtocol = errors.New("ERP connector protocol is invalid")
// Deprecated aliases keep the temporary Connector behavior compatible while
// the source-neutral Go ERP implementation is introduced in T-225 to T-228.
ErrNotConfigured = domain.ErrFreightSourceNotConfigured
ErrSessionRequired = domain.ErrFreightSourceSessionNeeded
ErrNotFound = domain.ErrFreightSourceNotFound
ErrUnavailable = domain.ErrFreightSourceUnavailable
ErrProtocol = domain.ErrFreightSourceProtocol
)
const maxResponseBytes = 4 << 20