fix: rebuild MES as compilable go-zero+ent backend (renamed bj_power_mes), restore 3 workstation projects from pristine original, align naming; all Go projects go build clean

This commit is contained in:
SunYF
2026-08-27 10:56:41 +08:00
parent 380715f8a9
commit 371b494c54
523 changed files with 67923 additions and 24758 deletions
+28
View File
@@ -0,0 +1,28 @@
package mock
import (
"context"
"time"
)
// MockMarking implements marking.MarkingInterface with simulated marking.
type MockMarking struct {
delay time.Duration
}
// NewMockMarking creates a MockMarking with default 500ms delay.
func NewMockMarking() *MockMarking {
return &MockMarking{
delay: 500 * time.Millisecond,
}
}
// Mark simulates laser marking with a delay.
func (m *MockMarking) Mark(ctx context.Context, text string) error {
select {
case <-time.After(m.delay):
return nil
case <-ctx.Done():
return ctx.Err()
}
}