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
+40
View File
@@ -0,0 +1,40 @@
package cnc
import (
"context"
"errors"
)
var (
ErrMachineNotReady = errors.New("机床未连接")
)
// Read is a stub — FOCAS not yet integrated.
func (m *Manager) Read(ctx context.Context, machineId int, address string) ([]byte, error) {
return nil, ErrMachineNotReady
}
// ReadBool is a stub — FOCAS not yet integrated.
func (m *Manager) ReadBool(ctx context.Context, machineId int, address string) (bool, error) {
return false, ErrMachineNotReady
}
// Write is a stub — FOCAS not yet integrated.
func (m *Manager) Write(ctx context.Context, machineId int, address string, v []byte) error {
return ErrMachineNotReady
}
// WriteBool is a stub — FOCAS not yet integrated.
func (m *Manager) WriteBool(ctx context.Context, machineId int, address string, v bool) error {
return ErrMachineNotReady
}
// RunProgram is a stub — FOCAS not yet integrated.
func (m *Manager) RunProgram(ctx context.Context, machineId int, programNo int) error {
return ErrMachineNotReady
}
// ReadProgramList is a stub — FOCAS not yet integrated.
func (m *Manager) ReadProgramList(ctx context.Context, machineId int) ([]string, error) {
return nil, ErrMachineNotReady
}