feat: 完成产线与仓储系统多模块迭代升级
本次迭代覆盖MES与WMS核心业务: 1. 新增接驳台托盘传感器读取与AGV对接能力 2. 完善工单排产、备料流程与权限体系拆分 3. 优化看板接口与前端路由、样式 4. 新增操作日志、库存盘点与角色保护逻辑 5. 修复代理地址、BOM保存等已知问题
This commit is contained in:
@@ -32,6 +32,17 @@ type MesConfig struct {
|
||||
Token string `json:",default=Hardman_2026"` // 调 MES 内部接口的 X-API-TOKEN
|
||||
}
|
||||
|
||||
// AgvConfig 海康 AGV(RCS-2000) 调度系统对接
|
||||
// 未配置 appKey/appSecret/RCS 地址 或 EnableMock=true 时,使用 mock 客户端(模拟下发成功/到位),便于离线联调。
|
||||
type AgvConfig struct {
|
||||
EnableMock bool `json:",default=true"` // 是否模拟(未接真实 RCS 前保持 true)
|
||||
BaseURL string `json:",default=http://127.0.0.1:1010/rcs/rtas"` // RCS 服务前缀,如 http://10.10.10.10:1010/rcs/rtas
|
||||
AppKey string `json:",default=unset"` // RCS 颁发给业务系统的应用标识
|
||||
AppSecret string `json:",default=unset"` // RCS 应用私钥
|
||||
CarrierCode string `json:",default=DEFAULT"` // 默认载具/托盘编号(选填)
|
||||
PollInterval int `json:",default=10"` // 任务状态轮询间隔(秒)
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
rest.RestConf
|
||||
Postgres PostgresConfig
|
||||
@@ -39,6 +50,7 @@ type Config struct {
|
||||
Internal InternalConfig
|
||||
Redis RedisConf
|
||||
Mes MesConfig
|
||||
Agv AgvConfig
|
||||
}
|
||||
|
||||
// RedisConf Redis 连接配置
|
||||
|
||||
Reference in New Issue
Block a user