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
@@ -0,0 +1,13 @@
package domain
import "errors"
// Freight source errors are intentionally transport-neutral. The use case maps
// them to stable sync outcomes without exposing ERP responses or credentials.
var (
ErrFreightSourceNotConfigured = errors.New("freight source is not configured")
ErrFreightSourceSessionNeeded = errors.New("freight source session is required")
ErrFreightSourceNotFound = errors.New("freight source order not found")
ErrFreightSourceUnavailable = errors.New("freight source is unavailable")
ErrFreightSourceProtocol = errors.New("freight source protocol is invalid")
)