新增扫码中间件支持网络型扫码枪键盘注入,AGV 对接从 WMS 迁至 MES 统一管理;新增拧紧不合格人工处置与 PLC 对账机制,优化退库单关联与工位终端功能,同时清理旧 AGV 任务表,完善数据库与配置项。
23 lines
672 B
Go
23 lines
672 B
Go
package svc
|
|
|
|
import (
|
|
"io/fs"
|
|
|
|
"bj_power_workstation/internal/config"
|
|
"bj_power_workstation/internal/mes"
|
|
"bj_power_workstation/internal/pdfcache"
|
|
"bj_power_workstation/internal/store"
|
|
"bj_power_workstation/internal/syncer"
|
|
"bj_power_workstation/internal/tightening"
|
|
)
|
|
|
|
// ServiceContext 服务上下文:配置 + 本地存储 + MES 客户端 + 同步器 + PDF 缓存 + 前端静态资源 + 拧紧枪 OP 接入
|
|
type ServiceContext struct {
|
|
Config config.Config
|
|
Store *store.Store
|
|
Mes *mes.Client
|
|
Syncer *syncer.Syncer
|
|
PdfCache *pdfcache.Cache
|
|
WebFS fs.FS // go:embed 的 web/static 子文件系统
|
|
Tightening *tightening.Manager
|
|
} |