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
@@ -30,7 +30,7 @@
| 文件 | 变更 |
|------|------|
| `internal/config/config.go` | 删除 EventBus/SSOT 配置结构体,Redis 保留但仅非核心缓存 |
| `etc/spherical-api.yaml` | 删除 EventBus/SSOT 配置项 |
| `etc/hougai-api.yaml` | 删除 EventBus/SSOT 配置项 |
| `internal/svc/service_context.go` | 重写:移除 go-redis 客户端、RedisBus、StateManager、WriteThroughHelper、ZPopLoop,新建 EventLoop+Worker 并注入 |
| `internal/processor/job_processor.go` | 大幅删减:移除 ReadyQueue、ssotWriter、toolLocker、scheduleMu、ZPop 路径,API 方法改为向 event loop 投递 command,保留 jobRuntime map 和相关查询 |
| `internal/processor/job_runtime.go` | 简化:移除 onStatusSync/ssotVersion/terminalCounted/notifyReady/exchangePairer 回调字段,移除 SetOnCompleteFunc/SetOnErrorFunc/syncSSOTStatus/NotifyReady 方法,保留步骤推进和动作构建 |
@@ -66,7 +66,7 @@
**Files:**
- Modify: `internal/config/config.go`
- Modify: `etc/spherical-api.yaml`
- Modify: `etc/hougai-api.yaml`
- [ ] **Step 1: 从 config.go 删除 EventBusConf 和 SSOTConf**
@@ -88,7 +88,7 @@ type SSOTConf struct {
// SSOT SSOTConf
```
- [ ] **Step 2: 从 spherical-api.yaml 删除 EventBus 和 SSOT 配置块**
- [ ] **Step 2: 从 hougai-api.yaml 删除 EventBus 和 SSOT 配置块**
```yaml
# 删除以下行
@@ -1250,7 +1250,7 @@ git commit -m "refactor: remove Station/SignalWatcher, migrate to Actor model"
- [ ] **Step 1: 确认 Mock.Enable=true**
```bash
grep "Enable:" etc/spherical-api.yaml
grep "Enable:" etc/hougai-api.yaml
```
- [ ] **Step 2: 运行端到端测试**